I'm having trouble with accessing remote content with a greater than
2k. I've sucessfully tested that 1.6k works and 2.1k fails. I'm using
the gadgets.io.makeRequest() method and trying to display the raw text
result of the query.

When I check the javascript errors from a failed request, I find a
syntax error which mentions a pair of parentheses (), which is
confusing because there are no parentheses in my data anymore
(initially, it was all wrapped in a pair of parentheses).

Here is my test program's html/javascript:

<div id="results">test<br /></div>

<script type="text/javascript">
gadgets.util.registerOnLoadHandler(initPage);

function initPage() {
        getContent();
}

function getContent() {
        var url = "http://76.74.252.152/cgi-bin/facets.cgi";;
        var params = {};
        params[gadgets.io.RequestParameters.CONTENT_TYPE] =
gadgets.io.ContentType.TEXT;
        gadgets.io.makeRequest(url, insertContent, params);
}

function insertContent(obj) {
        document.getElementById("results").innerHTML = obj.text;
}
</script>

Is there any way around this 2k limit? I need to load some large data
sets dynamically. If it makes a difference, the data I'm loading is
JSON data.

Also, I've lowered the size of my cgi file output so that I can
continue development work until I find a way around the 2k limit.

thanks,
|christophe
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iGoogle Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Gadgets-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to