View Single Post
Old 03-25-2009, 03:07 PM   PM User | #5
ohgod
Regular Coder

 
ohgod's Avatar
 
Join Date: Jun 2008
Location: Ohio
Posts: 579
Thanks: 6
Thanked 69 Times in 69 Posts
ohgod is on a distinguished road
ooohh... don't attach your parameters to your url string. the url string should just be your target file. you CAN technically do it that way i think... but i'd suggest following the api docs. instead of using parameters = "true" (which isn't right) use parameters: 'ID=<%=request("ID")%>comment=comm&name=myname'

the returned text will be in transport.responseText

so

Code:
var ajaxc = new Ajax.Request('/bc/krnlAddComment1.asp',{
method: 'get',
parameters: 'ID=<%=request("ID")%>comment=comm&name=myname',
onSuccess: function (transport)
{ 
alert(transport.responseText);
}
});
http://www.prototypejs.org/api/ajax/request

Last edited by ohgod; 03-25-2009 at 03:10 PM..
ohgod is offline   Reply With Quote