| |
| |
| |
|
Page: 1 2
Comments:
<0> Because in your case, "this" is the window object. <1> ok, but then can I use resultSPAN.onmouseover = function() { handle_client_tab_mouseover(resultSPAN); } ? <1> I tried it and doesn't work <1> if I want to use this way (my way - not the best) then what should I put instead of the "this" ? <0> resultSpan. <0> But you shouldn't do it that way. <1> but even if I use resultSPAN, it does not work <1> and it does not work the way sou said it either (I mean the correct one without any parameters in this case) <0> Then you have an error in your function.
<1> I know! <0> Show me your function then. <1> I create the object, then I add it into another div which is on the html page <1> and I do this by resultSPAN.outerHTML <0> Heh. <0> There is no outerHTML. <1> which does not show the onmouseover event :( <0> Not in the standards anyway. <1> yes, there is, but not for the event <0> No, there isn't. <1> :\ <0> It's an IE proprietary property. <1> I found it on w3school some time ago <1> but then how should I do it? <0> appendChild <1> let's say I have divObj ... how do I add the resultSPAN to it? <1> ahh <1> and how can I erase it afterwards? <0> Same way you erase any object. <1> (the resultSPAN from the divObj) <1> :p <1> and how is that? <0> divObj.removeChild(resultSPAN); <1> off... <1> you are right... <1> this w3school is quite organised, but still...I was searching for these methodes before in the HTML DOM / document ... and they were not listed <0> w3schools is a nice place to start, but it's far from complete, and it's also very IE biased. <1> what do you use when you search for something? <0> Define "something" <1> something you don't know or don't remember <0> ... <0> A string? An object? A file? <0> A sock? <1> a method or property
<0> Google? <1> ok <1> thought there is a better place than w3school <0> Actually, I generally search the sites I pasted earlier. <2> Hi, if I setup a div with specifics height and width and use "overflow-x: auto" if the content becomes bigger then the specified size, the scrollbars will show up... Is there a way to detect that ? <1> Pilum, if I have var a = new Array(); or a = []; can I add attributes to it? like a.version = 0; ? <0> Yes. <1> null == undefined ? <0> null == null. <2> anyone for my scrollbar question ? <3> http://flickr.com/photo_zoom.gne?id=187504246&size=o <1> Pilum, is it possible to simulate an event? <1> like I have some action/function for mouseover...and if another action on another obj triggers, I want to trigger the mouseover for the 1st obj <1> function xy() { jsObj.onmouseover(); } <4> Are there any hidden gotchas if use setTimeout in an ajax function? Something like setTimeout( "myAjaxRequest.open('POST', myURL, true);myAjaxRequest.send(myParams)", 1000); ? <5> i don't think so, ajax apps often do auto refresh or auto save, i guess they must be using a settimeout <4> hmmm.. <6> hope that is not a real line of code from your app <4> not a real line of code no since I'm still thinking about it. Why? What would you suggest I do differently? <4> whoops, too late <4> ht311 you mentioned a couple of hours ago that you hoped my setTimeout( ajax.open/ajax.send ) code wasn't something I really planned on using. Woul dyou say why and point me towards a smarter way to do it? <6> it is better to just put those code in another function, then setTimeout(somefunc,1000); <6> so you want to need concat a string with variables or using global var in the string <6> plus using a string there is like trigging eval, which is not good <6> err/you want/you don't <4> I see. thanks! <4> don't know why I didn't think of that myself. I'm allready calling the ajax stuff from another function. I can put the timeout in there instead :-) <4> if I have myVar pointing to a DOM element myVar = document.getElementById('somename'); And I have var temp which also points to some DOM element. What's the best way to determine if myVar and temp are both pointing to the same element? <6> myVar.id ? <4> I won't always have an element with an id <6> you can try with ==, but i don't know <7> === <4> if( myVar === temp ) { //point to same } ? cool! <4> thanks guys <8> can some one help me to make .. the some smiles like this .. : http://www.freewebs.com/www_abyse_tk/index.html <8> i mean only the opener .. <8> when you click its open that little window .. <6> it is a css positioned div, it just call something like mydiv.style.display =""; when you click the button. learn css and html first
Return to
#javascript or Go to some related
logs:
#linuxhelp #javascript #AllNiteCafe #linuxhelp #AllNiteCafe #linux KIF TBOSS #php _Mcshield.exe
#AllNiteCafe
|
|