views:

23

answers:

1

Hi,

I am trying to use the jquery get statement:

$.get(urlAddress+".asmx", { question: quest },
  function(data){
    alert("Data Loaded: " + data);
  });

I don't know how to specify the method and how to get data

The HTTP headers are giving a 200 message (Ok) but I'm not getting any data back.

Any help please?

A: 

You'd have to use a local proxy page to pull in the url if it's a cross-domain request, or use JSON.

For example, if I wanted to pull in google.com I send it to a local /proxy?uri=http://google.com and that grabs the content, returns it to me.

meder
I tried JSON and had no luck with it
Lily
That's a very, very vague comment lacking information. Details please? You replied in 7 mins, seems like a rush and maybe you didn't read up on how to use it properly. Why not just go the server-side proxy route?
meder
I had tried JSON prior to just the get method...should I post the code here or in my question? Maybe (most probably) I was doing somehtng wrong. I want to run this eventually on the iphone which is why the client-side would be ideal. (my quick replies are due to my constant refresh rate on this page ;) )
Lily
What about my proxy question?
meder