@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet


Comments:

<0> ops
<1> ^-^
<0> I mis-read what it is there
<0> my bad :P
<2> is there any property that lists all the the other properties of on object
<2> ?
<2> for example function blah() { this.xx = 0; this.yy = 1; } var a = new blah; a.properties[0] == 'xx';
<2> ?
<2> what is for (var i in obj) accessing?
<1> sk8ing: hooold.
<2> ok :)
<1> sk8ing: You have to use for(var p in a) { ... } to *enumerate* its properties.



<2> ya, I wrote a small function that returns the Nth element
<1> sk8ing: function objectProperties(o) { var a = []; for(var p in o) if(o.hasOwnProperty(p)) a.push(p); return a; }
<1> the Nth element?
<1> Define 'element'.
<2> it's an object
<1> and how would you *get* the Nth element from an object?
<2> so I'm doing something like function(o, index) { var j = 0; for (var i in o) { if (j == index) return o[i]; ++j; } }
<1> ah
<1> Ok.
<1> so, "the Nth property of an object."
<2> yes, I'm expressing myself pretty badly
<3> How do you reference a textfield value for firefox? For example, this works in IE, but not firefox, onClick=add(cName.value) with cName being the name attribute of the textfield.
<2> if onclick is like "<input onclick" then you can do onclick="add(this.value)"
<3> no, the onclick is a button and its sending the value of a textfield above it
<2> document.forms['formName'].elements['cName'].value
<1> afk
<3> thats okay to put in the function call?
<2> yup
<3> and that will work in IE also?
<2> in most browsers
<3> k, thanks
<2> np
<4> anyone good @ PHP
<2> you're on a channel full of php developers and you're asking in here?
<5> hey can we p*** variables to a .js include?
<6> yoo
<7> re
<1> *yawn*
<8> amm someone knows why its not workin? http://pastebot.nd.edu/264
<1> hm
<1> strange.
<1> fyi, you shouldn't use []-characters in name attribute
<8> amm so remove the "-" ?
<8> <option value="MOUSE L">MOUSE - Left</option>
<8> <option value="MOUSE L">MOUSE Left</option> ?
<1> No, the [], but that's not what causing the problem.
<8> amm .. so ?
<9> anyone knows how to get these variables p***ed to a <script type="text/javascript" src="script.js?var=X"></script>
<10> Why would you?
<10> When you include the file, it will work as if it was inline...
<10> So you can access it directly.
<11> Pilum: it would download locally the file?
<11> Hello Pilum, ht311
<10> Huh?
<11> src="script.js" ... the browser downloads it locally /
<11> ?
<10> To the cashe yes of course.
<10> *cache
<11> to the cache ? what do you mean? in the internet temporary files?
<10> ...
<11> ?
<10> Even mom knows what a cache is.
<11> :(?



<11> the browser maybe uses a separate cache?
<11> its called "browser cache"?
<0> it tap into mybrain and use my cells as temp. storage
<11> ok understood
<11> if someone modifies that downloaded .js file.. will the site download that file again or just use the modified file ?
<2> var x = new Array; x = new Array; will the first instance be deleted? or do I have to do x = null; before asking for a new object?
<0> VaranG|aN: depend on the browser setting
<0> sk8ing: if no one is hold the first instance, it will collected by gc after.
<2> cool
<2> thanks
<11> browser setting ?
<11> what?
<0> learn your browser more
<12> hello
<10> Hello.
<12> hi pilum
<12> i have a question please help
<10> How?
<10> You haven't asked it yet...
<12> how do i post variables without using the submit button on a form?
<6> Pilum : Guess it :)
<12> lets say javascript
<12> :)
<10> Either through the query string or make a script to submit a (hidden) form.
<9> document.getElementById('your_form_id').submit();
<10> That's just silly, boiss.
<9> silly?
<12> cant do on query string
<12> too much information to p***
<10> document.forms['your_form'].submit(); <- faster and more efficient
<10> Then do the hidden form thing. Or ajax.
<9> im always having trouble finding back objects without using getElementById()
<10> You need more experience then.
<10> You should use the collections when available.
<9> document.forms works on IE / FF / safari ?
<10> Yes.
<12> document.forms['myform'].submit(); redirects me to the right url
<9> cool! learnt something today.
<12> but the vairable value is lost
<10> Is it stored in the form though?
<12> yep
<10> Sounds odd.
<12> <form name="myform" action="PostReply.asp" method="post">
<12> <input name="Message" type="hidden" value="Hello" />
<12> <input name="Button" type="button" value="Button" onclick="move()"/>
<12> </form>
<12> and this is what i have on the next page
<12> <%
<12> message = request.form("Message")
<12> response.write(message)
<12> %>
<12> any idea pilum?
<10> From the little I know of ASP, it looks right.
<12> lol
<12> i dont mean the asp man
<10> Nothing wrong with the form.
<12> ok
<12> <script language="JavaScript">
<12> var time = null
<12> function move() {
<12> document.forms['myform'].submit();
<12> }
<12> //-->
<12> </script>
<12> that is my move function


Name:

Comments:

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






Return to #javascript
or
Go to some related logs:

#teens
c++ asm int3
#linux
Servetheworld Control panel
#linux
shemael
What is Susan Hampshire's surprising disability ?
#linux
lkontra
#AllNiteCafe



Home  |  disclaimer  |  contact  |  submit quotes