| |
| |
| |
|
Page: 1 2 3
Comments:
<0> hey huys, i want to ***ociate a function with an onmouseover event but i want it to run continuously while the mouse is over the hotspot <0> does anyone know how can i do this? <1> setTimeout <1> ir ut was setInterval ? <1> i always cant recall <0> that will make it run once after a set amount of time <0> settimeout that is <0> setinterval sounds intereesting, let me give it a try <1> yeah <1> and you check if the mouse is still over the hotspot if yes you involve the function again and again and again <2> is there a way to get the whole HTML code of the page in which a javascript code is executed? document.body.innerHTML returns the body's HTML code. <1> document.html. ? <2> i don't think document.html exists <0> notsdci: I think that's what you're looking for <0> document.getElementsByTagName('head')[0].innerHTML <0> that'll give you the head part, plus the body which you can already get, there's your whole html code
<2> weastdom, I need all other tags as well, like meta, script, etc. And I need the HTML code to be exactly as it was written on the server side. <0> then you can do some sort of file read and get it line by line <0> not sure if you can do that with js though <2> i think i can do it with xmlhttprequest, but I was trying to avoid double loading the page <0> good luck <2> thanks <3> Hi ! <3> i'm a french beginner in web developpement <3> i create an xhtml page <3> http://pastebin.ca/318999 <3> i create a menu on the bottom of my xhtml page <3> to animate this menu i use a javascript file <3> http://pastebin.ca/319001 <3> but when i click on an entries of this menu, nothing append <3> like javascript don't exist <3> i use firefox 1.5 on my debian testing <3> i add that i have the javascript option actived on my browser <3> somebody can help me ? <1> Bronsky: will be the best when you just link up to the page youre working on <3> sorry ? <1> you are sorry fof what ? <3> i don't understans that you say <1> then learn english <4> ouch <5> lol <6> I'm new in javascript and I want to learn . Can someone give me an script that I can use like this :i have a form with a textfield on a page . when I click submit I want it to get you to : something.com/what_you_have_entered_in_the_textbox <6> anyone ? <4> <form action="something.com" method="post"><input type="text" name="something"/><input type="submit"/></form> <4> give us a minute to answer, will you? <7> heh <3> not problem [Torgo] <6> ok [Torgo] sorry <6> [Torgo] ... <6> [Torgo] ... can you give me some ideea at least ? <4> i gave you the freaking code <8> I think the answer was above <8> and he put all the correct tags with the closing stuff <6> i think taht you did not understand <8> could be on the other hand that he's a html parser :) <4> indeed i did. <6> what_you_have_entered= the text you wrote in the text field <4> YOU simply asked the wrong question <6> soory <6> my mistake <6> what_you_have_entered= the text you wrote in the text field <4> then name the field as such <6> so if you enter in the textfield badboyu then when you click submit it should take you to something.com/badboyu <6> so if you enter in the textfield [Torgo] then when you click submit it should take you to something.com/[Torgo] <6> got the iddea ? <7> That's exactly what he answered. <4> no, he wants to alter the action attribute onsubmit <7> With his code, when you click the submit button, it will take you to the web page you entered. <7> Oh <6> [Torgo] sorry for my bad english ... <6> <4> no, he wants to alter the action attribute onsubmit <7> Then you will need some Javascript. For instance, when you click submit, it calls a Javascript function which will change the "action" attribute of the form. <6> exactly <7> So badboyu, your form is ready ? <6> yes <7> for exaemple, <form name="form1" action="www.something.com">
<6> ok <7> then your submit button <input type="submit" name="submit" onClick()="ChangeAction()"> <7> Now, when you click on the submit button, it will call the Javascript function that will change the form action. <7> the function should be something like: <7> function ChangeAction() { document.form1.action = "www.something.com/" + document.form1.your_textfield_name.value; } <7> Hope it helps. <6> i will test it now <6> doesn't work <6> dom-_- <9> Well, you have to be more precise badboyu. <9> What does not work, and what is your code ? <6> function ChangeAction() { document.form1.action = "http://www.something.com" + document.form1.itemu.value; } <6> </script> <6> <form id="form1" name="form1" method="post" action="http://www.something.com"> <6> <p>Item number : <6> <input name="itemu" type="text" id="itemu" /> <6> </p> <6> <p> <6> <input type="submit" name="Submit" value="Submit" onClick()="ChangeAction()" /> <6> </p> <6> </form> <6> it takes me to something.com <6> but it doesn not change to something.com/badboyu <6> or whatever i enter in the textbox <9> Okay, but at least it opens the good website. <6> yes <9> Okay just a sec. <6> ok <6> dom-_- <6> strage <6> on mozilla firefox in works <6> but in internet explorer it doesn't <6> I'm running windows vista <4> make sure you are running through a webserver <9> It should work... <6> ok <6> thank you very much for your help <9> No prob, I suggest you use Firefox if it doesn't work with I.E. <9> It works here, so maybe you should update, or maybe it doesn't work with the new Internet Explorer 7 <1> o ktorej bedzxiesz w szkoleno nie kolejny tylko to zmienia postac rzeczy <1> oups <1> sowwy this was supposed to be elsewhere <10> pieg <10> u should know better lol <1> what i should know better ? <10> [01:01] <1> o ktorej bedzxiesz w szkoleno nie kolejny tylko to zmienia postac rzeczy <10> lol <10> speaking googleook in here <1> no <1> it was 2 sentences <1> to 2 different persons actually <10> im playing lol <1> youre drunk <11> Hey, would anyone know why when I use window.open it opens the right page but the original page always goes back to the root directory? <11> I want a link to open a new window and that's it. <11> but using the window.open method it does this just fine but the original page goes backwards for some reason. <11> I'm a tad rusty and trying to figure this out and struggling.. heh <12> hello <13> hi.. is there any way to prevent my js files from being downloaded? <14> Same way you prevent any file from being downloaded. <12> nope <14> Put it in an area the browser can't reach. <12> the script won't be able to use it any longer <14> Indeed. <13> bummer.. <12> nevecd, JS is a client side language <12> which means <12> client has to download the script to execute it <12> makes sense doesn't it? :) <13> even server-side ? <14> JS isn't server-side. <14> Not uniless you run netscape's web server. <12> JS is not server side, PHP is. That's why you can't see the PHP source on the client side <13> hmm so any other options I can use? Something compliable?
Return to
#javascript or Go to some related
logs:
#AllNiteCafe Goldwyn hermaphrodite #chatzone #linux #php lindvdcss undefined reference to 'OpenThread' #linuxhelp #chatzone imagecreate 300dpi
|
|