Starr Duskk
asked on
WebService Retrieval of Jquery Post Data
I have a jquery.post of data:
How do I create the web service that retrieves this data and loop through it to retrieve the key value pairs? I know the below is wrong. thanks!
function sendData(url) {
var data = {
"Value1": "This",
"Value2": "That"
};
jQuery.post(url, data);
}
sendData("/sendData.asmx/RetrieveData");
How do I create the web service that retrieves this data and loop through it to retrieve the key value pairs? I know the below is wrong. thanks!
<WebMethod> _
Public Function RetrieveData(xml As String) As String
Dim this As String = xml
Return "successful pass: " & xml
End Function
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I've requested that this question be closed as follows:
Accepted answer: 0 points for BobCSD's comment #a39536511
Assisted answer: 250 points for patil786's comment #a39527327
Assisted answer: 250 points for xuserx2000's comment #a39527979
for the following reason:
found solution
Accepted answer: 0 points for BobCSD's comment #a39536511
Assisted answer: 250 points for patil786's comment #a39527327
Assisted answer: 250 points for xuserx2000's comment #a39527979
for the following reason:
found solution
ASKER
I found my solution only works from the same domain. Ugh.
After posting it and trying cross-domain it doesn't work.
So I am trying the handler. Having problems with it. But maybe closer. Seems to be the way to go for cross domains.
thanks!
After posting it and trying cross-domain it doesn't work.
So I am trying the handler. Having problems with it. But maybe closer. Seems to be the way to go for cross domains.
thanks!
ASKER
Open in new window
My imports are:
Open in new window