Hi all,
I'm working on ASP pages and I need some javascript to be done. I was thinking you might help me out with this :
here's the problem
I dynamically add forms to my html page ( search results ) and I need to send the form when the user clicks on the link of the form.
here's the code I've been working around so far
I'm using a counter for the form name. and send it to the FormSubmit Function. Well as you can expect the eval line doesn't work. it says it expects a ";" and none is missing. Is there a way to get a reference to an object dynamically ?..Code:function FormSubmit(FormToSend) { var Str; Str = "Document."+FormToSend; SendingForm = eval(Str); SendingForm.submit(); }




Reply With Quote