| |
| |
| |
|
Page: 1 2 3
Comments:
<0> "The with statement should not be used." <- agree with that one at least. :-) <0> "eval is Evil" <- and that <1> yup <1> I didn't use === and !== that much <0> True, sometimes one is forced to consort with the devil, but it's wise to avoid it. :-) <0> Format conventions seem to be pretty close to mine, but I don't agree 100% to them. <0> "Indent 8 spaces" ugh
<0> I hate people who use spaces for indenting. <2> this is the part of our code standard I never followed <0> "Use of tabs should be avoided because (as of this writing in the 21st Century) there still is not a standard for the placement of tabstops." <0> In my view that's exactly what makes tabs so good. <0> Many editors allows the user to define how wide, in spaces, a tab should be. <0> Adjust to your own liking. <0> I do set my tabs to 4 spaces usually though (which is the amount the article suggests for indentation :-)) <2> Pilum: that implies that you don't use spaces as well, though :) <1> i use both,but at the end i p*** to the formatter and put everthing to tab :) <0> :-) <3> pilum whats the method of retrieving the value of a div's display status, if you ***ign it with: document.getElementById(myvar).style.display = <0> document.getElementById(myvar).style.display == <1> read the .style.display back <3> oh i stuck that in: window.alert(document.getElementById(myvar).style.display); <3> ive got: <3> function toggle1(myvar) { <3> vartwo = document.getElementById(myvar).style.display); <3> window.alert(vartwo); <3> } <3> and: <div style="display:none" id="christmas" name="christmas"> <3> when i run javascript:toggle1('christmas'); it doesnt alert :o <3> btw sorry <0> Use a pastebin next time. <3> ye shouldve done that :s ive just got so many windows open... trying to do quite a few things at once :/ <3> anyway i dont see any syntax errors there, as far as i know :| <0> There is one <0> display); <3> hm i was under the impression alert(document.something.here); was valid?
<0> Yes, and? <3> i.e. since its a piece of code you want to disclude the the quotes or apostrophes <0> The alert is not the problem <3> so in what way is display); invalid? theres the closing parenthesis (required) and semicolon (required) ? <3> oh **** <0> The closing parenthesis does not belong there - especially when you don't have an opening one <3> ahaha <3> sorry :* <3> sweet, success <0> And don't ever use "javascript:" <3> okz <1> it is funny to see someone try to win an argument on syntax error <3> ht311, ive been moving a lot of lines around and for some reason thought ....display was in the middle of a window.alert(); <3> ;( <1> it is very obvious there is an error, and you try to convince us that is valid :D <3> well in my head i was convinced an opening parenthesis needed to be closed :P <1> only if there is one <3> i know, thought there was :d wasnt thinking <4> value.replace(/[^0-9]+/, ''); is not supose to replace all non-0 to 9 character? <3> no, you need to specify a global match <3> //g <4> ok thanks <3> /\D/g may work, duno what flavor of regex javascript uses <3> hmm <3> how do you prevent a link from being selected when its clicked :o <4> how do i can debug in internet explorer? <4> eurr <4> how can i.. ? <2> losthimself: download a copy of microsoft script debugger <4> ok thanks
Return to
#javascript or Go to some related
logs:
#chatzone #linux titla tequila #c++ she_has_no_time.mp3 #linux yum com_err library #mirc #linux #php
|
|