[jQuery] Re: How to post HTML data in jQuery using $.ajax() method?

2009-06-16 Thread James
Yes, please define "not working". The problem most likely lies in what is returned here: var pageData = document.getElementById("MainDiv").innerHTML; to be used in the $.ajax() call. On Jun 16, 6:44 am, Rosa Spina wrote: > brian ha scritto: > > > Define "not working". That's a bit vague. Also,

[jQuery] Re: How to post HTML data in jQuery using $.ajax() method?

2009-06-16 Thread Rosa Spina
brian ha scritto: Define "not working". That's a bit vague. Also, where are you calling your function from? Can you confirm that it is being called? Something like this might work for you: function PostHTMLContentTOServer() { $.ajax({ url: "MyData.aspx",

[jQuery] Re: How to post HTML data in jQuery using $.ajax() method?

2009-06-16 Thread brian
Define "not working". That's a bit vague. Also, where are you calling your function from? Can you confirm that it is being called? Something like this might work for you: function PostHTMLContentTOServer() { $.ajax({ url: "MyData.aspx", type: "POST",