| |
| |
| |
|
Page: 1 2 3
Comments:
<0> anyone know why parent.document.companyform.reset() isnt working from within an iframe on the same page as the form?? <1> alert(parent.document.companyform); and say what you get. <0> havent tried it like that, i did parent.document.getElementsByTagName('form')[0] and that showed up but as soon as id add reset() to it, it would say thats not a function <1> parent.document.forms['companyform'].reset(); <0> yep, it gives me the [object HTMLFormElement] and then says formobj.reset is not a function <0> :P <0> btw im doing formobj = parent.document.companyform; alert(formobj); formobj.reset(); <1> Let me guess.. <1> You have something on your page with name or id="reset"? <0> DAMNIT! <1> name="submit" and name="reset" ... see it all the time. :-) <0> *sigh* <0> you're right <0> thank you! <1> Np. <2> howdy!
<3> Can you run js inside <script> tags, as well as remote .js files in same html page? <4> yes <3> can I reference functions inside the remote .js from the script tags? <4> if it load before, yes <3> ex- <Script language = "javascript" src="test.js"> <3> document.onclick = Test; <5> language is deprecated, use type="text/javascript" <3> </script> <6> < <3> my script doesn't work <6> puto <3> does it not load like this ht311? <3> Test is inside test.js <4> try to put your line inside test.js and see <4> i am sure it will work if you do that in onload <3> nope, does work <3> doesn't <3> wait..maybe its my filename <3> heh..one sec <3> nope <3> still doesn't work <4> then is other problem you have <3> I tried the document.onlick = test in both the script tag and .js <3> function Test(e) { <3> alert("Click at x = " + mX + " and y = " + mY); <3> } <5> case <4> and window.onclick or document.body.onclick <7> yello <3> what does the (e) do? <3> in Test(e) <4> event in moz <4> read about dom event <6> **** <7> con someone go to http://bbeam.engineering.utsa.edu/interface/ inside internet explorer <7> keep getting syntax and object expected errors <3> it all works inside script tag <4> stefen: read about onload <5> apparently showVideo is undefined <5> *cringe* --> onMouseDown="javascript: <7> lol <7> i know <7> <--n00b just trying to get this done... not an excuse just a get away <7> anyway, i think that showVideo is not defined because I get a syntax error on line 4, where i include the source javascript where that is defined <7> i've tried absolute addressing (http://bbeam.engineering.utsa.edu/interface/fns/scripts.js) but i still get the syntax error <7> i bet it's something really stupid <4> const???????????????????????? <4> yes, it is <7> lol vars i guess? <7> i had them as vars <7> that was it <4> and, no reason to do documemt.write <7> for the showData func? <4> i bet you didn't write that <4> that is so old .... <7> lol <7> nop <7> i didn't... but i figure'd it'd made sense if someone use an atari to access the web page? <7> ;) <7> i'll get rid of it
<8> hm <7> by the way, just for curiosity.. what would you have done instead of onMouseDown <7> i'll need to afk, but have a good night and thanks for the help <9> hellow <9> can help me someone <9> ? <9> can help me? <10> iepuras_20: ask your question <10> Hello iepuras_20 <1> I don't know until you've told what your problem is. <9> i have an javascript <10> lol <9> that script show the ip adresse <9> but on my site don`t show the ip <9> why? <1> Because javascript cannot get the IP address on its own and your host probably doesn't support the method which is used to get it. <9> ok <1> SSI most likely. <9> thanks <9> at javascript,internet,com show my ip <10> I never knew javascript can show the ip <10> i thought it was something server side <9> ok <1> It is, VaranG|aN <9> i undestend <9> thanks <1> The script uses SSI to put the IP into a javascript variable. <9> i show the source <1> SSI = Server Side Includes <9> ok <9> how i can use that on my site SSI <1> That is something you have to ask your host. <9> ok <1> If it's a free one they probably don't allow it at all. <9> i undestend <9> thanks <11> is there a way i can pop up an alert box without it being triggered by the user. ie. i'm writing a form, and after i've received input, i'd like to pop up an alert box saying thanks <9> ok <1> Brb <12> hi guys <12> can you tell me how can I set array with values in constructor <12> i mean <12> var a = new Array(); a['a'] = 'b'; a['c'] = 'd'; <10> var arrayobj = new arrayobj[2]; ? <10> ah <10> hmmm <12> how can I do this in constructor <12> like var a = new Array( a ???, b ???) ? <10> var a = new Array() { a,b,c,d } ? <12> hm <10> Hello Sir_J_ btw <12> VaranG|aN, hi <12> VaranG|aN, it doesn't work :( <12> look at this http://rafb.net/paste/results/xgMbMG43.html <1> Tsk. <12> tsk ? <1> Don't use 'javascript:' in your code <1> And I'm not sure, but I don't think you can define that in the constructor. <10> why not Pilum? <10> what the reason for not using 'javascript:' <10> btw Hello Pilum <10> ? <12> hmm <12> really ? <1> Because you should use event handlers. <10> like <10> onclick ? <1> Yes. <12> it doesn't matter <10> hmm <10> but thats an href <12> how can I set array with values <1> <a href="nojs.htm" onclick="foo(); return false;">Correct way</a>
Return to
#javascript or Go to some related
logs:
convert HEX to DEC+c++ #AllNiteCafe #linux #AllNiteCafe #chatzone #AllNiteCafe disunur #php moon rise EST
#linux
|
|