@# Quotes DB     useful, funny, interesting





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



Comments:

<0> use \ within strings, to esacpe whatever quote you are using, either single or double
<1> oh so got to do both ok
<1> thx
<2> yow im having a setTimeout prob
<2> im calling it from inside another function p***ing a div element to it...
<2> but im not p***ing it by the id.
<2> im p***ing by reference ( eg. document.getElementsByTagName('div') )
<2> anyone can help me?
<3> Fernando, why don't you use getElementById() ?
<2> well
<2> there could be two of them on the page
<4> i think u can fetch its id after calling it by tagName
<2> but it doesn't have an id
<2> are there any other references i can have?
<5> Anyone around this hour of the night?
<4> by name



<2> i have the cl*** name
<5> $i = '1'; I have a loop that adds to $i. After this loop, I need to do: document.write(document.form1.Field+$i+.value); How do I have $i as a value input? It isn't working with +$i+
<2> document.write(document.form1['field'+i].value)
<2> SufiBlade: by name?
<4> yes, but im not sure about the support across browsers Fernando
<2> oh sorry subfreeze that was wrong
<5> Fernando: It worked when I did $i. :)
<5> works in FF and IE
<2> you should add an "element" => document.write(document.form1.elements['field'+i].value)
<2> oh ok
<4> Fernando, i meant support for 'name' :P
<6> hi
<6> someone know why when i receive a javascript message alert my page reload ?
<5> miamo: Whatis the alert?
<2> SufiBlade, object.name ?
<6> alert("please enter your name.");
<5> miamo: Because your page wants to know your name. It's not physcic.
<4> im not sure...getElementsByName
<6> SubFreeze ???????/
<4> or use the cl***name
<2> only on IE
<5> miamo: your webpage has a virus, and it wants to know your n ame.
<2> lol
<2> yes SufiBlade im using the cl***Name
<6> SubFreeze see my code http://pastebin.com/590399
<5> Fernando: The reason I had that Q is to be able to append variables ($i) to a variable name, to get the value of that named variable. formatNum(total+$i,2), etc.. etc.. How would I append $i to the end of a variable name?
<5> miamo: I see it saying things in french.
<2> subfreeze
<6> yes
<2> var = 'myVar'+i
<2> eval('var = "value";');
<5> Fernando: I'm not pre-defining the variables. :) They're dynamically generated pending form items.
<2> "How would I append $i to the end of a variable name?"
<2> oh i misunderstood you
<5> :)
<6> SubFreeze ????
<5> miamo: Which french line of text = "what is your name"?
<2> eval("document.write(document.form1.Field"+$i+".value)");
<5> ok, so I need to eval it.
<6> SubFreeze alert("Vous devez entrer votre mot de p***e actuel.");
<6> line 20
<5> miamo: I need to see all of the HTML, too. The form element is blank for the p***word value, so it's alerting you to enter a value.
<5> thanks Fernando
<2> :)
<6> SubFreeze http://www.clubreseau.com/staging/editpswd.php test the page
<6> click on button sauvegarder
<2> hey sufi
<6> you will see the page reload
<4> yes
<2> where were we..
<5> miamo: I see, you're not doing a return false; if there is an error.
<2> well you see, x = document.getElementById('something')
<5> so it's alerting, and submitting the form, anyway
<2> oh scratch that
<6> where i have to do return false;
<5> miamo: After each alert() error
<2> what im doing is, obj = document.createElement('div');
<6> if you see my code http://pastebin.com/590399 I have on all alert
<2> then im trying to p*** 'obj' to a setTimeout
<2> but it doesn't recognize it
<5> miamo: I don't see a return false;. If you hit the button, it will submit, even if frm.submit() is not hit in your function, because the button is a submit button.



<2> miamo
<6> yes
<2> <form onsubmit="return yourFunc();">
<5> "type="submit" needs to be type="button"
<5> Fernando: That, too, but I figured changing the button would work. :)
<5> since the function submits if there is no error
<2> ya
<2> well yourFunc will either be true or false right
<2> downside of a button is, he can't press enter on a textfield to submit the form
<4> hmm sorry i have no idea about that, Fernando
<2> ok thanks sufi
<6> SubFreeze i put type="button" and now when I click nothing ??????/
<5> miamo: do you get an error?
<6> it tell me all the time my name is not good
<5> 1 moment.
<2> ok sufi
<2> i manage to know where the error is
<5> wow, your html needs help. 1 minute miamo
<2> its with p***ing the variables from object methods
<5> miamo: I can't understand french. :) Go back to how it was, with submit(), listen to Fernando when he said change your action, and add return false() items to your errors.
<4> yes, but did u find the solution?
<2> nope. :(
<2> just learning oop..
<2> you wanna see the code sufi?
<6> <form onsubmit="return false() yourFunc();">
<2> miamo, dont return false yet
<2> just return yourFunc()
<6> ok
<6> same problem
<2> you decide to return true or false inside your function
<2> sufi 1 sec
<5> Fernando: eval("$hours = document.form1.Hours"+$i+".value)");
<5> alert($hours);
<5> ergh, I hate newlines -- the above didn't work. :) no alert, no error.
<2> subfreeze, you a perl/php guy?
<5> you got it
<2> :D
<2> me too
<5> lol
<2> i used to put dollar signs on my variable lol
<5> your not supposed to?
<5> $$Variable = newvalue.$i; <== I miss that.
<2> well, its not taht
<5> err, $newvalue.$i
<2> you're not supposed to
<2> ;)
<5> ;)
<5> alright, how'd I mess up the JS?
<2> http://pastebin.com/590411
<5> Fernando: Looks fun.
<2> :D
<2> what im making
<2> http://snippets.ramon.ph/select/
<5> Fernando: Don't worry, I get to dive into the JS/Ajax world here soon. :)
<2> hehe
<5> Fernando: Check my co-worker: http://www.beauscott.com/
<2> ok
<2> :*
<2> he for real?
<2> :)
<5> yes
<2> nice
<5> he's good.
<2> i see so too
<5> he does out UI AJAX items at work. I'll be picking it up here real soon.
<5> .. our
<2> oh ok
<5> Fernando: Any idea what I can fix in my feeble attempt at a script?
<2> im the UI Ajax guy at work
<2> whats up?
<5> eval("$hours = document.form1.Hours"+$i+".value)");
<5> alert($hours);
<5> what's wrong with that? no alert.
<2> 1 sec


Name:

Comments:

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






Return to #javascript
or
Go to some related logs:

mmencoder linux
#mirc
#networking
relaydelay +ubuntu
failed to partition selected disk
#linux
L-SPJUN
#MissKitten
hovig irc
bennyhillslovechild



Home  |  disclaimer  |  contact  |  submit quotes