@# Quotes DB     useful, funny, interesting





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



Comments:

<0> there was a path generator for domapi3
<0> html-channel have a doodle thingy
<1> booya
<0> heh
<2> *yawn*
<2> tihi
<3> any way to access a div or span by its cl***? getElementById or TagName doesn't work
<2> Grrrrrr-: not really.
<3> meh
<2> Grrrrrr-: You'd have to use some js to that.
<2> do that*
<3> any hints? i made it work by doing childnodes until im at the right div, but if i change my markup everything will change
<3> i was looking for an not ugly way to do it
<2> not really...
<2> 2sec I'll check something.
<3> kk



<3> hmmm
<3> it seems i can access cl***name of my nodes
<3> should do it
<2> http://dean.edwards.name/my/cssQuery/
<2> heh, perhaps not what you were looking for :P
<2> I just checked what the website contained...
<2> guess I should have done that before pasting the url
<3> yeah thanks anyway
<3> I think I answered my own question :)
<3> ill just check for the right div names with .cl***name
<3> should do it
<3> still, they should have made a function to do that :(
<2> ya ^-^
<3> ill go to sleep now :) thanks for the help
<2> you'r welcome, sleep tight.
<4> HI
<4> someone knows why when I get html code from a DataBase (mysql) and i do echo $DATABASE_VALUE;(in php) it works but when i do (javascript) var value2 = <? echo $DATABASE_VALUE; ?>; i get an error?
<4> but var value2= '<p> something</p>'; works fine :S
<5> you probably need to quote it and escape quotes withi nit
<4> you mean &lt; for <
<4> ?
<4> i tried htmlentities but nothing
<5> try var value2 = '<?php echo str_replace("\n", "\\n", addslashes($DATABASE_VALUE)) ?>';
<4> hum
<4> ok
<5> you may need to replace \r with \\r too, if you have any of them in the satabase
<4> i can show the value echo $DATABASE_VALUE and later look to VIEW SOURCE of my explorer not?
<4> to look for \n ...
<4> DAMM
<4> [RoBorg] you are the king XD
<4> thx alot
<5> np :)
<2> hehe
<6> wats funny
<7> hi ppl. can i ask about ajax here?
<8> If you wish.
<7> Pilum: i am newbie in ajax. i`m trying to use php with ajax. just wanted to know what is the best way working with forms in ajax. cuz when i use method post and writing url for example action.php it is not gettign my variables from form.
<7> sorry for my bad english. if u didn`t understand i will try to explane more clear
<8> The PHP is just written as if you were using a regular form.
<8> As for the ajax code, I'd rather see your code than guess what you're doing.
<7> ok. i have form and there r some input boxes there. when i click submit button i wanna submit it using ajax. mean getting values from inputboxes and inserting them to my db.
<8> (You still haven't told me what I need to know. :-))
<7> Pilum shortly hoe to send values in form using ajax
<8> So, you don't know how ajax works at all, is that it?
<7> variables*
<7> may be so
<8> http://developer.apple.com/internet/webcontent/xmlhttpreq.html
<7> Pilum: yea i know basics. i just wanted to know to i need to write all variables ?id=blah&do=blah&and so on??? no way to make it work as php does. i mean just clicking submit subbot and in action file it tooks all variables it by itself
<7> submit button*
<8> Of course.
<8> You must use a type="button" and get all the values yourself.
<7> damn:( thats bad :P
<9> hello everybody !
<10> ayyyyyy!
<9> I've a JS problem.... I've created a form with 2 fields... the first one is a text field called "qty" and the second one is a text field "subtotal".... subtotal = qty x price... and when I change the qty, the subtotal is not updated... how to solve that ?
<10> do you use onchange or do you have a button that calls the function?
<9> and the js function is simple :
<10> don't flood the channel
<10> paste your code to a pastebin such as http://www.nomorepasting.com
<9> only 2 lines :)



<10> k
<9> 1 remaining :)
<0> furtive: morning
<10> hi ht311
<9> window.document.form['order1'].elements['subtotal'].value = (Valqte * 17.85) + 'EUR';
<9> that's all !
<0> furtive has been asking you how you call it!
<10> yeah, paste your code to a pastebin
<10> btw, it's document.forms
<10> with an 's'
<10> and you don't need to specify window at the begining of it
<9> yes I forget it here
<10> all the more reason to paste code
<9> I put a command on the qty field : onchange="u_qty(this.value)"
<9> that's all
<9> nothing on subtotal field
<0> onchange only fire when onblur happen
<9> furtive, I gave the code :) no flood :)
<10> but you're only telling half the story\
<0> whatever, we still don't know what your problem is
<9> the problem is simple when I put a value on qty, the value on subtotal is not updated
<9> subtotal = qty * price
<10> i don't care anymore, i'm trying to help you and you're not making it easier.
<0> the quality of the questions are going downhill this week
<9> well I put the whole mess on pastebin !
<10> and we're supposed to be psychic and know where it is? or when you did it? paste the link
<9> see : http://www.club80.fr/simushop.php
<9> you'll see the pb !
<0> http://www.catb.org/~esr/faqs/smart-questions.html
<9> try to change the quantit
<9> the sous total does not be updated
<0> there is script error in your file
<0> see, nothing related to what you are describing
<9> a script error happens when I try to update the quantit field
<0> Function u_qty???????????????????
<0> geeze, is function
<9> I gave the code line for that function
<9> only one line of code
<9> window.document.form['order1'].elements['subtotal'].value = (Valqte * 17.85) + 'EUR';
<9> that's all
<11> time waster
<11> you were right about th4e o
<11> about the blur too
<0> this week has been like this. don't know what happen to this gerneration of noob
<0> getting the new vista
<10> meh
<2> the feb build?
<0> yup
<2> cool
<0> 5308
<0> have the side bar and gadget
<0> want to load it on the htpc and see
<2> ht311: write a short review for me :)
<0> 2 lines when i am done with it :)
<2> :) I read an article about it, and looked at 53 screenies, it looked win-xp:ish :(
<0> yes, it is ,so far, i like about the address bar in explorer
<0> other stuff now sure yet, it is just not good enough for me to switch it for long term yet
<0> may be after beta2
<2> well, hopefully before the release... :S
<12> does anyone have a solution to removing whitespace nodes in a XMLDocument?
<0> scan the childNodes and call removeChild?
<12> right, but what do i match the nodes with
<12> i know the tagName is undefined, but the nodeName is a #text
<12> i dont want to remove good text node
<12> nodes^
<13> Can't you just call....normalize()?
<13> Or is that an HTML DOM one... I forget
<13> Check the nodeValue is blank if you're going to do the childNodes loop method, then you won't kill the good nodes
<12> what i've noticed is that the node is just a bunch of \t's and \n|\r's, though im having a hell of a time creating a regexp to remove them from the front and end of a string to see if the string ends up empty
<12> thats the thing, nodeValue isnt blank, it has those characters
<0> jsut match for those charaters with regex then
<12> i've spent the past 4 hours working on the regexp
<12> i have to work in 3 hours and i've no sleep yet


Name:

Comments:

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






Return to #javascript
or
Go to some related logs:

ipod video with linux
DesiDream.tk©
funnyjunk
#linuxhelp
#windows
#skype
#AllNiteCafe
pzaully
SABIH BRA
the oldest and most numerous class of animals



Home  |  disclaimer  |  contact  |  submit quotes