| |
| |
| |
|
Page: 1 2
Comments:
<0> how do i make an onclick work for just text <0> an <a> works fine in firefox but not IE <0> same with a <div> <1> hello, can you like, invoke an auto click using JS ? <2> element.click() <1> i mean, for example, on body load, click something on x,y coordinates <1> ok ill research that <1> thx <3> is there any way of removing the value of an input type file other than formobj.reset(); ? <4> don't thnk so. file inputs are notoriously unscriptable. <3> damn.. il need to save other values in array, clear the form, then put back my values <5> sapphic <5> @find sapphic <6> you lesbo lover <5> @find sapphic <5> @find karupsha
<5> @find cyth <5> lol <7> hm <7> what you doing? <6> he is looking for a lesbian lover <5> goddamn /amsg works all servers ;\ <5> sorry 'bout that <8> ok, ***uming i have a div "main" and i want to dynamicly load an HTML page into it when a javascript button is clicked, other than using the innerHtml property, what method can i use to 'put' the page HTML in that div? <8> i'm using the following code right now to insert plaintext: <8> newDiv.setAttribute("id",element); <8> newDiv.appendChild(document.createTextNode(http.responseText)); <8> divParent.replaceChild(newDiv,oldDiv); <9> document.write ("...." ? <8> doesn't that clear the entire document? <9> I think it does, yes <8> well that's no good <8> i just want to clear the div <9> you are talking about treating a <div> page like a frame, right? <8> yes <10> why dont u just removeChild() <8> SufiBlade - well, if i weren't intending to replace the content in that div i would <10> then its better to just hide it <10> and make it appear when the content has been replaced <8> ok <8> that's not related to my question, however <10> there's no other way <10> innerHTML, appendChild or document.write <9> right. Invisible <div> then make it visible <9> otherwise you are better off using frames, or if a dynamic PHP page <8> so there's no way around innerHtml <9> don't think so <11> can someone point me in the right direction to create an image preloader with javascript <11> im fairly new to javascript but I program with java and actionscript which are very similar to js <11> oo <10> yeah actionscript is just like js <11> well most object oriented languages are very similar <11> c# is kind of similar <11> same with delphi, but as and java are really similar to js <10> you can search for preload image functions on google <11> well i was hoping more for a javascript reference for using images <11> i much rather write something on my own to help me learn better <11> or theres just the image object and thats it <10> i think ur better off seeing what others are doing and then see if u can improve it <11> alright <11> ill check it out <11> thanks <11> do u use any sort of ide when writing javascript? <10> none <10> sometimes dreamweaver but thats just like notepad <12> okay so I want to send request.onreadystatechange = function <12> But i want function to be a variable, with a function name. <12> How can I do this. <11> what do you mean <10> eval() <11> can i do mystring+=additiontothestring in javascript? <11> im not sure if thats a valid operator <13> is there a function to return a full xmldocument as a string <13> equivalent to xmldoc.loadXML("text"); but the goal is to read the xmldoc as a string <14> hi <15> can ayone tell me whats wrong wtih my code? <13> pastebin it
<15> can someone help me with this code: http://pastebot.nd.edu/532 <13> instead looping all the time to check if the image is loaded, check if its loaded every X miliseconds with setTimeout or setInterval function <15> really? <13> you wont be able to use the document.write() function tho, as it can only be called before the end of the onload <15> oh <15> well how can i display status like that <13> heh <13> if i would not have crashed my firefox, id be writing you an alternative right now :P <13> give me 2-3 mins <13> its gonna be ready <15> alright <15> sounds cool <15> :) <13> posting to pastebin... <13> kinda slow tho <13> http://pastebin.ca/86855 <13> something like this shoud work better... <13> i didnt test it by the way <15> thanks a lot <15> ill check it out <15> thanks a lot :) <15> i gotta go <15> ttyl :) <15> bbl <16> there is a way to write to <div> </div> text by onclick? <17> Yes. <16> http://pastebot.nd.edu/538 << someone know what worng here? <18> Hi, a little problem here.. <18> onclick=\"javascript:document.location=startdate.value;\" <18> startdate being an text input <19> onclick="location.href = document.myformname.startdate.value" <18> kewlz. Trying <18> My java is rusty. <19> it is javascript <17> Javascript is not java. And 'javascript:' should not be used in code. <18> mm <18> onclick=\"location.href = document.ordon.startdate.value\" <18> no errors, but doesn't do anything <18> nvm, its my HREF=void that is conflicting <17> Heh. <17> <a href="#foo" onclick="location.href = document.ordon.startdate.value; return false;"> <18> I did that:) <18> Pilum <18> What do I do if my text input is not in a FORM? Because, where it is, I have to make the form style display:inline because its returning lines.. And under firefox, display:inline doesnt work so is there a way using some getelementById to do this without using a form? <19> it will work, give the field an id. i don't recall form is a block element <17> Bull**** <17> display:inline; works just fine in Firefox <17> But what you really want to do is remove margins. <18> No it doesn't:\ Lotsa forums about it <17> Lots of ignorant idiots out there too. <18> marigns? Oh.. like margin-top:0 etc ? <17> Yes. <18> It is still returning one line after all 4 margins set to 0 <18> <form style='margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;' name='ordon'> <19> because the element before is a block element? <17> style="margin: 0; padding: 0;" <18> Ok <18> Trying <18> Still returning one line <18> Same result on both IE and FF. One line is returned <17> What do you mean by that? <18> text text text text <18> form is here <18> when it should be <18> text text text text <form is here> <17> You have standards compliance? <18> Yes <17> Ah yes. <18> display:inline makes it, but only for IE <17> I've never had any problems with display:inline; in Firefox. <18> http://godlikenerd.com/weblog/2005/03/24/firefox-inline-block-frustration/ <19> it is talking about inline-block ........... <18> The one talking about display:inline is only if french <18> Is there just a way to make it without a form element around my text input
Return to
#javascript or Go to some related
logs:
Xzistent modprobe -v ide-detect debian problem #MissKitten #linux exclaimed holy barracuda #AllNiteCafe scorpaen (fiance
biznich is the shiznit #chatzone #linux
|
|