среда, 28 октября 2009 г.

<form> in Gadget

http://social.msdn.microsoft.com/Forums/en/sidebargadfetdevelopment/thread/a7a1c511-0614-479c-b860-811c192913fa

Have a look at the XMLHttpRequest example in this thread:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1725983&SiteID=1

 

If you change the form so that when the submit button is clicked you call a function to process the request (either put an onSubmit handler in the form, or change the submit button to type="button" with an onClick handler) you can generate your own POST request. When the results come back you can pick out the section of the response data that you need and display that within your gadget (I assume the response data is a full html page, so you could possibly use a regex to get just the section between the body tags)

 

Regards,

Keith.

Комментариев нет:

Отправить комментарий