@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2



Comments:

<0> }
<1> but it returns an error.. saying that the variable is undeclared
<1> i mean "undefined"...
<1> it's like user id's, the variable only gets defined as soon as a user visits the site
<1> so the variable will be var pageVisitorId="" to var pageVisitorId="8674585"
<1> and whenever i put the try to verify... it either says that pageVisitorId is undefined or is not an object.. ??? how come
<1> put the *variable
<0> you're doing something wrong
<0> may i see the code?
<1> ok
<2> hello
<3> I have <div id="myDiv"><ol><li>foo</li><li>bar</li>...</ol></div> . Is there an easy way to iterate over all the <li>s?



<1> <script language="javascript"> var banned=pageVisitorID; function verify(){ if(banned=="768596"){ alert("sorry you can't enter"); window.location="http://www.google.com";}}
<1> that's an example... an else statement wouldn't work.. just bec the initial value of that variable is ""
<0> where is pageVisitorID declared?
<1> it's declared on the bottom of the source
<1> the host declares it....
<0> uh, it has to be declared before the "banned" variable is set
<0> try this
<1> ah ok...
<0> var banned;
<0> window.onload = function() { banned = pageVisitID; verify(); }
<1> where will i put that?
<0> anywhere
<1> on the <head>
<0> yeah
<1> so if id use my function... i won't have the declaration of variables no more right?
<1> exacube... the declaration of the pageVisitorId is after the </html>
<0> doesn't matter
<1> ok i'll try again
<1> tnx
<1> exacube
<0> ?
<1> it doesn't work...
<0> show me your code
<0> pastebin.ca
<1> <script language="javascript">
<1> window.onload = function(){
<1> banned = pageViewerID;
<1> verify(); }
<1> </script>
<1> <script language="javascript">
<1> function autolock(){
<1> alert("Sorry you are banned here!");
<1> autolock()
<1> }
<1> function verify(){
<1> if(banned=="3512588"){
<1> autolock()
<1> }
<1> else if(banned=="3512580"){
<1> autolock()
<1> }
<1> </script>
<1> there
<0> jesus christ
<0> don't ever paste in here
<0> paste it in htttp://pastebin.ca
<0> -t



<0> uh
<0> you have </script>
<0> and then right after that, a <script language="javascript">
<0> what's the point in that?
<0> and you haven't declared banned variable
<0> you have to declare it first
<0> outside the function
<1> what do u think?
<0> heh
<3> ironic that he was looking for info on how to ban people
<4> lol
<0> lol
<0> well, more like prevent banned people from entering, but whatever.. don't wanna ruin the joke
<0> OH GOD WHAT HAVE I DONE
<4> lol
<4> Hello ht311
<5> hi
<5> the cat know how to change the nick ...
<5> nah, you just want a long weekend
<6> shhh
<6> s/\/me/my/
<3> I have var e = document.forms['myform'].elements['myCheck']. Why doesn't if( e.selected == 'true' ) work?
<3> oh duh
<3> nothing like answering your own questions eh?
<5> is .checked
<5> the value is a boolean, not a string
<3> ah yes, thank you
<3> I have a long-running loop in a page. I tried wrapping it in document.body.cursor = "wait"; for( <long loop> ){...} document.body.style.cursor = ""; but it doesn't seem to work. Am I doing something wrong?
<5> define what doesn't work
<3> the cursor doesn't change to an hourgl*** while the loops runs
<5> usually, the UI only update after the function is finished
<5> try setTimeout on the changing the cursor
<6> for some reason i thought changing cursor style had to be bound to an event.
<3> hmm... just tried document.body.style.cursor = 'wait'; in a simple <script> tag and FF tells me that document.body has no properties... so I guess I can't do it that way. Would you give me an example of what you mean re: setTimeout? (you mean setTimeout(1 second) -> set cursor?)
<5> no it is not bound to a event
<5> you wait unit the document loaded in your test?
<6> sukotto: you have to wait until onload
<3> I didn't wait.
<6> remember what elvis said
<3> viva las vegas?
<6> "Only fools rush in"
<6> thank you very much!
<5> hehhehe
<3> onlything is that the loop runs as onclick="myFunc()"
<3> hmm... creating a showCursor() function and calling it before myFunc doesn't seem to do it either
<5> setTimeout(showCursor, 100);
<3> that's got it setting the hourgl***, thanks ht311!
<4> no one here uses Javascript with ASP.NEt 2.0 callback?
<6> nope
<7> how do i write the database location in java
<7> String url = "jdbc:odbc:book";//database url
<7> where should i keep the datab***e
<5> don't pm me, this is #javascript not #java
<8> ht in da house


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #javascript
or
Go to some related logs:

Macedonija chat
passwd: Authentication token manipulation error gentoo
#AllNiteCafe
mendekx
#c++
jghgkj
frauda westernunion
#linux
girles models
g php editor svn debugger



Home  |  disclaimer  |  contact  |  submit quotes