| |
| |
| |
|
Page: 1 2 3 4
Comments:
<0> ciao and thanks again <0> hello again ^^ <0> i have a new problem :( <1> lol <1> you remind me of me when i first started this stuff <0> :( always problems <1> so what's wrong now <1> what's wrong with your bed <0> i have a problems with variable with spaces <0> Unterminated String Constant <0> anyone can help me ? <0> well , i'll be back ;) <2> Hello. <2> Hello? <3> I have several checkboxes named chk1, chk2, chk3,... I want to find out which ones are checked. the problem is that i do not know how many of these there are. How shold i check for the nughest one? <3> nughest = highest
<2> Use a for () {} loop. <2> Use the childNodes.length as a delimiter. <3> I figured by myswlf . while (document.getElementById('ttt'+nn)) {nn++}; <2> Good figure. <4> hello. I'm new to JS, i'd like to use it so that if i hover over a table row it'll change to a (transparent) color of choice, can anyone please point me to the right direction. Thanks <4> ah, i think found something: http://devcorner.georgievi.net/articles/javascript/highlight-row-css/ <3> just a minute <3> sykerz: onMouseOver="this.style.backgroundColor = '#ff0000'" <4> Toka: cool, thanks. <3> and same OnMouseOut <3> just change the color value <3> np <3> I remember one I asked this question on this channel. Not very long ago though :) <4> heh... everyone starts from somewhere. Thanks again. <0> hello ^^ <0> i have an error in my JS <0> Unterminated Sting content <0> huhu ?? <5> Djanov: You forgot to terminate your string. <5> "startofstring but no ending double-quote; <0> i'm getting the value from a php variable <0> if the variable is : hello it works <0> if the variable is : hello all it dones't work <0> because of space in value <0> how can i solve it ? <5> You cann't have spaces in your variable names. <5> var message = "Hello all"; // you ***ign "Hello all" to a variable named message <0> i get variables like that: <0> href=javascript:showFullSize('$imagepath','$trombipromo[nom]','$trombipromo[prenom]') <0> showFullSize is my js file <5> what's nom / prenom ? <0> name surname <0> they are in a table <5> you most likely want $trombipromo.nom <0> if $trombipromo[nom] value is hello there is no problem <0> if $trombipromo[nom] value is hello all there is a problem <0> how can i solve that ? <0> please <5> I don't know what the problem is. <5> why do you enclose the $.... with ' '? <0> NeoFuture told me to do it <5> ok, is $imagepath a JavaScript variable? <0> ofcourse <0> it's my path for my image <5> then they shouldn't be enclosed in ' ' <0> if i don't put '' i don't get the variable <0> so i need to use '' <5> no <5> if that's the case then you'r doing something very wrong. <0> but without the '' nothing works <5> as I said, then you've done something very wrong. <5> like the [nom] instead of .nom <5> that's wrong too. <0> $trombipromo.prenom <0> variables with no space don't work now <0> nothing works <5> Djanov: You'r not listening, you'r script is fubar <5> It's not about the ' ' <0> i listen you <5> it's something else, you shouldn't enclose that in ' ' <0> href=javascript:showFullSize('$imagepath',$trombipromo.nom,$trombipromo.prenom);
<5> nor should you use [] <0> as you said <5> you still have $imagepath inside '' <5> and you have that in the href= and you'r using javascript: <5> that also wrong <5> <a href="whatever" onclick="showFullSize($imagepath, $trom..., $tomb...); return false;">bleh</a> <0> but my href is in the showFullSize JS <5> what? <0> href=javascript:showFullSize($imagepath,$trombipromo.nom,$trombipromo.prenom); <0> don't work <0> how can i get a string value in JS ? <0> fatbrain ? <5> you don't put javascript in the href attribute <5> nor do you use javascript: <0> but mu href value is in $imagepath <5> I don't understand what you mean. <0> i will give you my code and explain <0> this is my link to open a photo in new window <0> href=javascript:showFullSize('$imagepath','$trombipromo[nom]','$trombipromo[prenom]' <0> imagepath is the location + name of the photo <0> the other 2 variables will bu used as Title in that new window <5> Djanov: I can't help you. <0> showFullsize function is here : <0> http://pastebin.com/584747 <0> please have a look i will explain <0> have you see ? <0> ? :( <6> Hiya guys :-) <0> hello i need help <0> please <7> Maybe you should explain your problem then... <0> ahhh <6> first rule to a discussion channel <0> href=javascript:showFullSize('$imagepath','$trombipromo[nom]','$trombipromo[prenom]' <6> 1: Read the topic <6> 2: Don't paste code in the channel <0> :) <0> even if it's one line ? <6> 3: Go to the webpage from topic and read the rules on there (which includes a pastebin) <0> well <0> in the code i gave you <7> 4: Listen to advice given to you. <7> Which you don't seem to do. <0> i'm <0> and i apologies for my mistakes <7> Then why are you making the same mistakes as last night? <6> those rules goes for ANY programming discussion channels <0> yes chief ! <0> so can i explain my problem now Mr. Ops ? <6> mocking us don't exactly help you does it <0> i never mock <0> i'm serious <0> and i respect you <7> Then stop the nonsense and get to the point. <0> ok ! <0> well in the line i pasted you <0> i send those 3 variables to a JS function <0> i don't have a problem with $imagepath <0> the problem is on <0> $trombipromo[nom] and $trombipromo[prenom] <6> are you mixing php with javascript? <7> Of course it is. <0> is those variables are like = hello it owrks <0> works* <0> is those variables are like = hello world it don't works <7> You're trying to access the incorrectly. <0> i have a Unterminated string Content <7> www.php.net/array <0> because of the space in the Value i suppose <0> that is my prob <6> Djanov: STOP!! Listen to whats asked <6> Djanov: You were asked if you mixed php with javascript.. no answer.. but Pilum told me you were.. <0> yes, i p*** php variable into JS <6> then you were shown a webpage.. no questions asked.. GO TO THE PAGE and READ it!
Return to
#javascript or Go to some related
logs:
#java #MissKitten #java ubuntu no volume control gstreamer plugins devices found Arcane.Outsiderz.Com
gharwiena linux live cd backtrax kernel 2.4.31 gentoo emerge #windows #AllNiteCafe
|
|