| |
| |
| |
|
Page: 1 2 3
Comments:
<0> hey everyone <0> i want to change my ( var year = date.getYear(); ) for a string <1> Isn't it one? <1> Or is it an integer? <0> maybe.. <0> im not sure <0> but i changed idea <0> i need to separate it <0> like 2,0,0,6 <1> You should use getFullYear() btw <1> Else you risk ending up with 106 instead of 2006 :-) <0> i know hehe.. <1> Look up substring() <0> thats why i want to cut it <1> Or substr() <0> to keep only the 06
<0> ok thanks <1> Brb <2> Is there some way to get the client side events for a control using reflection ? <1> Reflection? <2> Errr.. Is there a way for me to get all the client side events for a function, dynamically. <2> OnClick, OnFocus, OnKeyPressDown, etc. <2> wow, minus the word function.. Bare with me, im drunk <2> function = control <1> Sober up then. <2> We have an application builder, and we need to support custom controls <2> So I'd like to be able to get a list of the available client side functions/events, for a particular control <2> Using some generic method that can be applied to any control. <1> http://www.quirksmode.org/js/introevents.html <3> http://www.oceanworksuk.net/images/custom//Birmingham_post_article.jpg <4> hehe, don't know what to say :D <3> yeah ****in awfull picture <3> lol <4> you are reading my mind :D <5> good evening <5> http://www.andrewdupont.net/2006/05/18/javascript-***ociative-arrays-considered-harmful/ <6> yeah, sure, whatever <5> just supposed it to be interesting <4> yes, may be, but I never did that anyway;) <6> if people would just read the freaking manual..... <5> [Torgo] -> what manual? ecma262? <5> ht311, neither did I :) <6> good starting place <5> [Torgo] -> where was it told there that we shouldn't use array in ***ociative way? <5> I read it quite thoroughly <6> _damien, where was it stated that I wanted to argue with you? <5> ok ok <6> go piss in a corner <5> rough <7> crappy article <6> indeed <5> fatbrain, why crappy? <7> whoever wrote it should change his name to cptn. obvious. <4> nothing really new. <6> trying to be controversial to try to hide the fact thay his library doesn't play nice with others <6> so he points the blame elsewhere -- boring <4> but this is what happening outside in the world. I read about people whin about IE don't JS console this morning .... <4> I just don't understand what is in people mind, I have my own consolde before ms release the debugger. <5> ht311, how does your console works? is it a js object that just puts smth in a div? <4> I use textarea before. plus a stupid eval <7> only problem with using arrays (or some other intrinsic object) as key-value "array" is that you enumerate its keys using a for(p in o) { ... } <5> ht311, eval? what are you doing with eval? <4> no, long time ago, for the console only, you are not suppose to do that nowaday, learn to use a proper debugger <5> just wondering <6> there still are valid uses for eval <5> I don't try to say eval is evil :) <5> just trying to understand <4> he not suppose to knowthat :) <8> thus, i need to re-write the line, without any quotes. is that possible? <4> know something call script tag? <8> i'm not really an expert in javascript, but even with a script tag, wouldn't I still need to use quotes?? <1> Heard of the term "escaping a character"? <8> Pilum, I can't escape the character. I'm not writing the code. I just type in the text in my CMS. And my CMS does not let me put in quotes, it just removes them. <1> Then edit your CMS <8> it is not mine, my company's IT department did it. I can't modify it. <1> Then bitch at them. <8> isn't there a way to replace the quotes with something else? Like a hex code or something?
<4> open a support ticket for them <4> it really depend on your cms <8> isn't there a way to replace the quotes with something else? i mean, isn't there another code for " ' "??? <6> you're approaching this from the wrong angle <1> Entirely. <6> the js is fine <8> [Torgo], I know that. The thing is I need to find a way to re-write that, without any quotes. Is that possible, or not? <4> as i said, write a new function inside a sript tag, so that you don't need to use quote in the attribute <4> of course, i rather act lazy and hand off the problem to the IT dept. <8> yes, but the function would still require the use of quotes <9> ht311: i get hilite iis undefined, where hilite is a function name which definately is defined <4> if it said is undefined , it is undefined, happen before onload? <4> yianna^: jsut talk in the channel pls. can you open up the template and edit it directly? <4> call your IT department <8> no, i just have a textarea where i insert my text. <8> so in this text i need to put some javascript <8> i can put HTML stuff there with no problems, but this time I need to put some javascript and I'm having problems <4> you can try various ways of escaping character. but i think the point of your cms is not letting people add javascript. <8> ok, any ideas on how to escapeing the ' and the " ? <8> can i replace them with some sort of HTML/HEX code? <4> \ something <8> \ something is for PHP <8> not all CMS are written in PHP you know... <4> of course not. CMS are written by CMS itself. <9> no its not before onload <4> pieg_: you have it online? <9> can i pm you the addy ? <4> k <10> is there a way to make a playing video stop using an "submit button" ?? <11> hey guys <11> can anyone help me please <6> how ***ist <11> basically i created rollover buttons in dreamweaver and it produces automatically javascript <11> the problem is that <11> when i run the internet explorer <1> That you use dreamweaver. <6> you can stop right there <11> i get the popup blocker <10> hehehe <10> pebkac <11> and i dont want that to block the contents of my website <11> since the users that view the website will get annyoed <1> Then write a decent script. <11> what can i do? <10> pebkac <11> i dont know how to write javascript <1> Then learn. <11> i just wanted to ask someone if he/she has the solution to this problem <1> I just told you the solution. <11> man i dont want to learn javascript <11> stop giving me a hard time <1> Then I suggest you get another job. <12> lol <12> Stav: I never used dreamweaver in my life.. but if its dreamweaver that its causing it that I suggest try without it <12> it has nothing to do with javascript actually <12> that = than <9> ht311: i really appreciate (or how this was spelled) <4> np. I was away <9> anyway you can just refresh and see the debugging result <4> still a lot of error when highlight e.g. zmien is null call not an object exception <9> i im not getting this o.O <4> http://blogs.msdn.com/ie/archive/2004/10/26/247912.aspx <9> you're getting errors in ie ? <4> yup <9> i turned on the debbuger and still nothing <9> maybe ill read that to the end <4> there is a display script error check <9> yeah, no errors anymore <9> yeeehaaa <9> does it highlight fast ? <4> nope, and mouse out is not perfect to turn off the highlight <9> id doesnt higlight fast ???? <9> what is god for that then ? <9> good* sorry
Return to
#javascript or Go to some related
logs:
#MissKitten baga+bagashi #chatzone #linuxhelp livecd mount sata drive raid #AllNiteCafe #gentoo #chatzone #chatzone helo gagica
|
|