I'm also trying to display a form in a social app but I have a problem

The page is fetched fine and displayed, but the form input fields are
not displayed.

The gadget source code:

<?xml version="1.0" encoding="UTF-8" ?>
<Module>
  <ModulePrefs title="Thalasoft Admin Login">
    <Require feature="opensocial-0.7"/>
  </ModulePrefs>
  <Content type="html">
  <![CDATA[
    <div id="content_div"></div>
    <script type="text/javascript">

    function makeNormalRequest() {
      var params = {};
      params[gadgets.io.RequestParameters.CONTENT_TYPE] =
gadgets.io.ContentType.TEXT;
      var url = "http://www.thalasoft.com/engine/system/admin/
login.php";
      gadgets.io.makeRequest(url, response, params);
    };

    function response(obj) {
      var str = obj.text;
      var html =  str.substr(0, 10000);
alert(html);
      document.getElementById('content_div').innerHTML = html;
    };

    makeNormalRequest();
    </script>
  ]]>
  </Content>
</Module>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenSocial Application Development" 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/opensocial-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to