QuickBase jQuery/Ajax call puzzler

Jakeey1

New Member
I have puzzled over this QuickBase jQuery/Ajax problem for the better part of two days. Consider this jquery code running inside $(function()...:\[code\] <script type="text/javascript"> $(function() { $.ajax({ type: "GET", url: "https://www.quickbase.com/db/<mydbid>", // <- returns error //url: "http://pfs.fedcap.com/testdata.xml", // <- returns xml data: { act:"API_DoQuery", query:"{7.EX.235445}", apptoken:"<myapptoken>" }, dataType: "xml", error: function(xhr,status) { alert("error"); }, success: function(xml) { alert("OK"); } }); }); </script>\[/code\]As noted, the url pointing to QuickBase returns an error, but the url pointing to the xml file returns the xml as expected. But here's the kicker: the xml file (testdata.xml) was created by pointing my browser directly to the specified url: https://www.quickbase.com/db/<mydbid>?a=API_DoQuery&query={7.EX.235445}&apptoken=<myapptoken> and saving the results to testdata.xml. It seems to me the jquery ajax call SHOULD produce the same results as the testdata.xml file. But it does not.The Firebug xml pane shows that the call when executed against the QuickBase site returns "XML Parsing Error: syntax error Location: moz-nullprincipal:{3e0d38f1-0e36-4adb-965e-d0e7d68ab0cb} Line Number 1, Column 1:Reload the page to get source for: https://www.quickbase.com/db..."What am I overlooking? Any thoughts?
 
Back
Top