| |
| |
| |
|
Page: 1 2
Comments:
<0> well, I return, {id:'', name:'', other_field:''}, ... <0> then I iterate through the length and do: ret += "<a href=..."; <1> Let me put it another way: how big are they? <0> ok, I just finished the benchmark. using the array of objects is faster.
<0> thanks Pilum <1> Np hehe. <0> :] <2> Hmm, I fixed my ajax search script, and now I'm trying to make it work only after the user types enter. I think I managed to do that... but how do I stop the browser from processing the enter key and submit the form ? <1> onsubmit="return false;" <2> Pilum, can I do it without modifying the html mark-up? <1> document.forms['formname'].onsubmit = function() { return false; } <2> thanks <0> Znuff: or simply change input type="submit" to input type="button" <0> also type="image" works the same as "submit". <3> quit, bye <2> Pilum, doesn't quite work :-/ the form gets submitted after all <0> Znuff: <0> Znuff: or simply change input type="submit" to input type="button" <2> http://pastebin.ca/321739 <- HTML; http://pastebin.ca/321736 <- JavaScript <2> apocn, I don't even have a submit button
<0> Znuff: do you have an image button? <2> nope <0> obsubmit="return false"> <0> ... <2> yeah, tried that too <0> change this for: onsubmit <2> oh, fsck <0> I mean, your code is wrong <0> :] <2> didn't notice the typo o.O <2> works now <0> okk <2> btw, why wouldn't document.forms['livesearch'].onsubmit = function() { return false; } work, and onsubmit="" works? <0> it should work the same <2> all I get is document.forms.livesearch has no properties <1> Premature execution.
Return to
#javascript or Go to some related
logs:
#chatzone #mirc What colour is produced by the complete absorption of light rays ?
Drag objectopenGL cum sa dai flood #linux #linux gays-sory #linux hanka for a hunk of cheese
|
|