View Single Post
Old 04-17-2007, 03:42 PM   PM User | #17
david_kw
Senior Coder

 
Join Date: Nov 2006
Posts: 1,000
Thanks: 0
Thanked 0 Times in 0 Posts
david_kw will become famous soon enough
Grats and welcome. :) I'm not total sure what you mean by "unafraid i cant call the ajax from any ather way then that way".

But just in case it is useful, you could also get the form with

alert(document.forms['aform'].type.value);
alert(document.getElementById("aform").type.value);

which would let you do send the name in as a parameter to a function.

Code:
function showUser(str, frm)
{
.
.
.
url=url+"&type=" + document.forms[frm].type.value;
.
.
.
}
david_kw
__________________

www.eXfer.net
david_kw is offline   Reply With Quote