| |
| |
| |
|
Page: 1 2 3
Comments:
<0> that's what I thought first time I saw it too :P that it blocks the displaying :D <1> ? <0> display: none; to hide it <1> no, block type display vs inline <0> display: block; to show it <1> oh, were talking about differant things <1> thanx <0> :) <0> let me see if I have a menu around here <0> ah, wait <0> never mind <2> Does anyone know of a good website with advanced syntax, such as variables being ***igned a function call almost like a function alias? <0> what do you mean? <0> a = function(x) { alert(x); } a('dsfds'); ? <2> I want to ***ign obj.onmouseover to be the function call sat(arg1,arg2,arg3). <0> obj.onmouseover = sat;
<0> the first argument will be the event <2> I have the arguments too. <3> onmouseover = function(E){sat(E, ....)}; <2> ahh that helps <2> Do you know a site that discusses strange syntax like this? <2> I have been searching for quite awile now. <3> strange? <2> Well, not basic. <3> pick up the o'rielly book <0> if you use it in a loop it won't work too well, the last set of arguments will be used for all events <3> huh? <2> thanks <3> np <0> for (i = 0; i<9; i++) obj[i].onmouseover = function(E) { sat(E, i) } <0> all onmouseover events will be called with i=8 <3> no <3> that creates a closure <2> Why? <2> That ****s. <3> and why on earth would you do that anyhow ;) <0> I'm preatty sure it does, I had this problem 2 days ago <0> I wanned to color a the cells of a table <3> that exact example would overwrite the event each time <0> on the mouseover event <3> so yes, 8 would be p***ed <2> what if I am using the i as an index for an array ? <3> that's fine <2> obj.onmouseover = function(event,name_container,counties[i]){sat(event,name_container,counties[i])}; <3> the introduction of a new lambda function will p*** the full scope along <3> yup <0> lambda function? <3> google it <3> and closures <2> oMG <2> dude <2> you are awesome <2> i have always wondered what this way of coding was called <2> wow this syntax is crazy looking <0> it's kinda self explanatory :) <2> Oh well, I never knew what it was called. <0> neather did I <4> should read this http://javascript.crockford.com/ <5> every single one <5> all on the path to guru status <6> are you a js only programmer? <2> wow <2> awesome!!!!! <4> and get a license of domapi to read he code <5> :P <4> ;) <5> ht311, you not using the rss feed? <5> i hardly ever visit the main site anymore :P <4> heh, nope, still not used rss reader, i like to read sites with the old fashion way <5> i agonized over that layout, appealing to both first and frequent visitors <5> if you have a better idea though, let me know <4> ok <5> time for Lost <4> i know what happened ;) <6> who is douglas crockford? :) <4> he "created" json <6> ok, he is not a IRC person, is he?
<4> don't think so, not now <7> hi there <7> anyone herE? <0> probably <7> I want to know how can make the forms come to my email in Javascript <7> ? <0> you can't <7> welll there must be some solution <7> ? <0> yeah, use a server-side scripting language <7> can u guide me more in thaT PLZ <7> ? <0> #php <0> php.net mail() function <7> but the page i want to do this is in javascript, would this work properly? <0> ... javascript is client-side (it runs on the user's computer) <0> and you can't use it to send mails <0> you can send mails only from the server cuz it's yours <8> linuxall: you can make it appear in the users email client so all the user has to do is press "Send" <8> that's HTML, not JavaScript <7> hm..... yes something like send or submit <7> but i tried <form....mailto <7> its not working <8> what exactly are you trying? <8> <form action="mailto:email@example.com"> should work. <8> It's been years since I did that, so I'm not sure. <7> its something like login and p***word <7> so? <8> ...? <8> Please, keep it in the channel <8> preferably, even, take it to #html <8> :) <8> http://www.z0rz.net/~demonen/javascript/test.html <-- Changing colors works in FireFox, but not in Internet Explorer. Does anyone know why? <8> test.js for the JavaScript, btw. <9> Doesn't work here. <8> What browser? <9> Firefox <9> Firefox/1.0.7 <8> Oh ok. 1.5.0.1 here, works well. <8> Odd. <8> I'm obviously doing something wrong... but what? <8> I don't get any error messages, so it is happening, it just dosn't have the effect I want. <9> Just out of curiosity... why declare the loop variable for a for-loop outside the loop? <8> Don't know, I was following an example. <8> Where else would I declare it? <8> for (var hi_cn; <8> ? <9> Yes. <9> Best to declare variables in the scope they're being used. <8> I agree. <8> Changed it. <8> Thanks :) <8> The odd thing is that it dosn't give any errors... I fear I'm using something that is poorly supported in IE, but google hasn't yet turned up any warnings as to the functions I'm using (setAttribute, childNodes etc) <8> I used node.style.color instead <8> http://www.z0rz.net/~demonen/javascript/test.html <-- Works now <9> Still all black on hover here. <8> hover? <8> it's supposed to change onclick, but currently there's something broken so it dosn't return false... <8> There, now. <9> Ah. Onclick. Right <9> Yay. <6> how to write a function that will run on pageload? onload=function () { ....} <6> ? <9> window.onload = function() { .. <6> doesnt work <6> window.onload = function () {function stylizeTables () {...}} <6> actually, i want to run a function when the page loads <9> You don't define the new function in there... <6> ahh got it <6> thanx <9> http://www.html-channel.com/pastebin.php?id=3 <- like that <6> got it :)
Return to
#javascript or Go to some related
logs:
dwejjaq.com
#AllNiteCafe skyblog nopre
#linuxhelp #javascript How do I tell what OS I'm running in C++
jeromedeperlinghi redhat 3 set default gateway multihomed #teens #java
|
|