| |
| |
| |
|
Page: 1 2
Comments:
<0> what does the appendChild means? <1> it adds a child element to an object <0> an element cannot be directly added like document.createElement ? <1> nope, that just creatas it <1> you'll have to add it after you create it <1> *creates <1> any idea how I can hide the fact that I'm loading data from the server in the background? <1> like ajax does? <2> you won't get the answer even you ask 100 times <2> i do know a way <1> you do? :) <1> but I won't get the answer? :)) <2> "write your own browser" <1> at least there is hope <1> oh, cool <3> lawl
<0> sk8ing: you have to learn Ajax I think <1> yeah, I think so <0> I use AJAX but microsofts one <0> the CallbackReference <1> CallbackReference? <1> what's that? <1> I know what's a callback function <0> document.appendChild(document.createElement('img_Fire').src = "./Images/Weapons/fire.JPG"; ---- whats wrong with this ? <1> ); <1> you forgot a ) <1> tho <1> it shouldn't work <1> it will return "./Images/Weapons/fire.JPG" <1> to appendChild <0> ? <1> document.appendChild(document.createElement('img_Fire').src = "./Images/Weapons/fire.JPG"_)_; <1> and it's not correct in my view <1> cuz src is a string <1> and operator = <1> should return "this" <1> => you have document.appendChild("./Images/Weapons/fire.JPG"); <1> but I don't know that much js... I don't know if this rule applyes in here <1> ah <1> and img_fire is not an element <1> x = document.createElement("img"); x.name = "img_Fire"; x.src = "thatsource.jpg"; document.appendChild(x); <0> IC very much thankful <2> var e =document.createElement('img');e.src = "./Images/Weapons/fire.JPG";document.appendChild(e); <0> about callbackreferences btw its found in the ASp.net 2.0 <1> ah, I see <0> to a control add javascript attributes <2> oh, damn window scroll <1> :) <1> .net requires too much resources <1> that I don't have <1> I'll keep away from .net at least for another 2-3 years <0> it wasn't displayed ...though no errors were given <1> hmm... are you sure the path is correct? <1> hmm... isn't there a way to send a real object as response to an ajax call? <1> or I'm stuck with serializing stuff by myself? <4> make a text-input active by clicking a href, thats javascripting? <5> sure <4> im not sure if its a good or a bad thing to do, but its for a form-validation, when errors show - the error-message activates the spesific input <4> onclick <5> just be sure to check it on the server too, in case js is turned off <4> the form-validation itself? <5> yes <5> never rely on js <4> oh yes its properly secured <4> so I just put a id to the input, and do a onclick="do-stuff" on the href? <4> its supposed to works almost as a <label for=""> <4> something like onclick="document.formname.inputname.focus();" ? <6> hello buddys <6> who knows a good tag editor for javascript <6> more good than altova ? <1> tag editor? <7> Hi, i've got this problem triggering an event programatically with the el.click() call. <7> I have this DIV that i, div.innerHTML = "<a id="x" onclick="dosomething">; <7> Later i do a document.getElementById('x').click(); but nothing happends, checked by having an alet in the function that onclick calls. <7> So i wonder, is it possible to build a DOM like that and fire an event? <8> Are you sure the generated <a> is working at all? <7> Yes, it is displayed in the page and i can manually click it (with mouse).
<7> But, maybe i should build the <a> with document.createElement("A"); instead? <8> That's what I'd do, anyway. <8> Mind you, I'm no expert <8> not by far :D 2 weeks into JavaScript <8> Do you have an URL to the page? <8> Maybe I can spot the problem. <7> Nope, we're behind firewall. <7> thanks anyway, ill just test it more. <4> pastebin <7> nah, its too complex scripts to ask for anyone help. takes to much time so get into. <7> hm, doesnt el.click() work in ff? get "el.click is not a function" <7> http://rafb.net/paste/results/RW5Xya72.html <7> stripped down the problem code. <7> See that the onclick event happend after one mousedown and one mouseup, maybe i should try to el.mousedown();el.mouseup(); ? <8> Why don't you make a function out of whatever happens when you click, and call that function instead? <8> onclick="callFunctionHere()" <8> callFunctionHere () { /*do useful stuff*/ } <8> Is there any way I can request that the browser executes an external command? This, ofcourse, is a security risk, but can I ask the client/user for permission? <7> I need the event object for positioning. <8> scaver: P*** the event? <8> calFunctionHere(event) <8> ? <7> hm? <7> thinking of maybe trying to get rid of the event object, and position it relative to elements. <8> I don't know, but most other objects can be p***ed as arguments. <7> anyway, i havent made the code and it looks like a rats***. think i'll try to do a complete rewrite of that part of the system. <8> I allways end up doing that, no matter the language :) My code usually has enough occurances of "FIXME" to scare off Bill Gates <8> It's usually because I code before I think. <9> Hi, I have a page that has a number of select boxes on it with each box having id = selection[x] where x is a number. Is there a way to use javascript to go through and get me a reference to each of these boxes so that I can check if they are "checked" or not? <7> Hm, is it possible to raise the mousedown/mouseup events needed to fire the onclick handler of an element? so i can programitcally fire the event with, el.click() <7> The problem is that the onclick is generated with a mousedown/mouseup sequence. <7> What object detection can i use to determine IE 6 or less? need it to know where to apply alphaimageloader to fix PNG issue in IE. <7> don't want to use the navigator object. <7> document.all exists in Opera, but not i FF. hm. anyone? <7> Isnt it some properties that only IE implements? <7> var isIE = document.all != null && ! window.opera; <7> Any problems with that one? works in ie, ff and opera. <7> setTimeout(cancelHideQuestionHelp = false, 500); how do i set that variable 500ms later? <7> "myVar = value" ? <7> hm, are events "threaded"? <7> my script seems to only be working when i have some alerts to slow down the process. <1> scaver: call a function with setTimeout() <1> and then recal setTimeout() on the same function <8> or setInterval? <8> mind you, setInterval will fire again and again until stopped. <8> hey vebbe{LA} <8> bye vebbe <10> is there a function in JS that checks a string if it matches a regex? or searches a string for a regex? <8> somestring = /regularexpression/; <8> somestring.match(someothermatch) <8> if (somestring.match(thisvariableneedstomatch)){ <10> thanks Demonen <8> anytime <11> if I have a bunch of variables that consist of c#(c1, c2, c3, c4)- how do I set y = #? <11> i need y to be equal to the number afther c <11> y = x.charat(1) <11> thanks:-P <12> how would I grab the previous url and reload/refresh it. <5> history.go(-1) <12> that simple? <5> no <5> requires 400 more lines <12> it doesn't reload the url..just back one. <12> is there a refresh and reload? <2> i don't think that is possible. security issue <13> Is there a way to have javascript dynamically highlight multiple items from a multi-enabled HTML select list? I tried googling, but maybe I'm not looking for the right thing. <13> Actually I am thinking I just don't have the right function. I've got the looping and everything else done. I just can't figure out the code to pick multiple items. <12> hmm...think I got a work around. <12> Thanks anyways torgo <2> LLAMAHERDER: loop the myselectElmRef.options , in each option there, set the .selected = true or false accordingly <13> So that will highlight more than one at a time then? <13> If that can indeed select more than one, then I must be doing something else wrong. :) That's what I tried right off the bat but it just does one. I'll keep plugging away. <13> Thanks for the info ht311. <2> you need to enable multiple selection on the select
Return to
#javascript or Go to some related
logs:
enron embezelment cockraoch and disease distcc over dsl #asm #teens ir-razzet florin salam- iar am puso otto dirlewanger #skype What is the capital of the Canadian province of Ontario ?
|
|