Darren
04-09-2008, 06:05 PM
First, came here a while back with Ajax questions and so far everything is going great. My intranet site seems to be working perfect. Thanks for the assistance to date.
Well, I now have a feature that I'm not quite sure how to add. Let me begin by saying that I think my site is following a pretty standard methodology... user submits to the server using a javascript function ajaxSubmit(), server side application processes the request and sends back an xml response, client side javascript function processCallBack() parses the xml and performs various actions (such as display new page, alter contents on current page, fill form fields, display pop up, whatever).
I have a new need--the ability to send the user an email and have a link in the email to jump to a particular page and begin an action. I'm not sure how to construct the link in the email. The following things don't work:
www,mysite,com/cgi/application.cgi?parms=many
no surprises here. the xml response just displays in the browser window, it doesn't get processed through the function processCallBack().
javascript:ajaxSubmit('www,mysite,com/cgi?parms=many')
again, not a surprise. doesn't run because we're not in a page that has loaded my javascript file. just returns the error "object required".
Sadly, the only solution I can think of is to add an html ability to my application (I'd much rather be able to just re-use the xml response).
Is there an elegant way to accomplish what I'm trying to do here?
Thanks in advance,
Darren
Well, I now have a feature that I'm not quite sure how to add. Let me begin by saying that I think my site is following a pretty standard methodology... user submits to the server using a javascript function ajaxSubmit(), server side application processes the request and sends back an xml response, client side javascript function processCallBack() parses the xml and performs various actions (such as display new page, alter contents on current page, fill form fields, display pop up, whatever).
I have a new need--the ability to send the user an email and have a link in the email to jump to a particular page and begin an action. I'm not sure how to construct the link in the email. The following things don't work:
www,mysite,com/cgi/application.cgi?parms=many
no surprises here. the xml response just displays in the browser window, it doesn't get processed through the function processCallBack().
javascript:ajaxSubmit('www,mysite,com/cgi?parms=many')
again, not a surprise. doesn't run because we're not in a page that has loaded my javascript file. just returns the error "object required".
Sadly, the only solution I can think of is to add an html ability to my application (I'd much rather be able to just re-use the xml response).
Is there an elegant way to accomplish what I'm trying to do here?
Thanks in advance,
Darren