Hi Manish

First of all, may I ask why are you using gadgets.io.encodeValues twice in
every make POST request function?

Raman


On Mon, Sep 29, 2008 at 12:11 PM, manish tewari <
[EMAIL PROTECTED]> wrote:

> now it is showing error in this line:<script language="javascript">
>
>
> and here is the full code. I am not able to find out any problem .It is
> showing that for the functions I have created ,it is not able to creat the :
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <Module>
>   <ModulePrefs title="iSingTestMan2">
>  <Require feature="opensocial-0.7" />
>
>
>   </ModulePrefs>
>   <Content type="html">
>       <![CDATA[
> <script src="
> http://opensocial-resources.googlecode.com/svn/samples/tutorial/tags/api-0.7/gifts_1_friends.js
> "/>
>
> <script language="javascript">
>  <script type="text/javascript">
>
> function makePOSTRequest() {
>   var params = {};
> var postdata = {
>     data1 : "name",
>     data2 : "psw"
>   };
>  postdata = gadgets.io.encodeValues(postdata);
>   params[gadgets.io.RequestParameters.METHOD] = gadgets.io.MethodType.POST;
>   params[gadgets.io.RequestParameters.POST_DATA] =
> gadgets.io.encodeValues(postdata);
>   var url = "http://ising.in/oapp/orklogin.php";;
>   gadgets.io.makeRequest(url, response, params);
> };
>
> function response(obj) {
> document.getElementById("login").innerHTML = obj.text;
> };
>
>
>
> <!--
>
>         function makePOSTtop10Request()
>         {
>          alert('1');
>            var params = {};
>  var postdata = { type :"latest"};
>   postdata = gadgets.io.encodeValues(postdata);
>          params[gadgets.io.RequestParameters.CONTENT_TYPE] =
> gadgets.io.ContentType.TEXT;
>  params[gadgets.io.RequestParameters.POST_DATA] =
> gadgets.io.encodeValues(postdata);
>            var url = "http://ising.in/oapp/top10-js.php";;
>            gadgets.io.makeRequest(url, response, params);
>          alert('2');
>          };
>
>         function response(obj)
>         {
>         document.getElementById("top10").innerHTML = obj.Text;
>         };
> -->
> </script>
> </script>
>
>         <table cellspacing="0" cellpadding="0" width="100%">
>          <tr>
>          <td rowspan="2" valign="top" align="left">
>          <div id="header">
>          <img src="http://ising.in/oapp/images/logo.png"; />
>                         <br/>
>                         &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
>          <a href="#"><font
> style="color:green;font-family:vedana;font-size:12px;font-style:normal;">FROM
> MOBILE ALSO</font></a>
>          </div>
>          </td>
>          <td colspan="3" valign="top" align="right">
>          <div id="navigation" align="right">
>          <a href="#"><font
> style="color:#335aeb;font-family:vedana;font-size:12px;font-style:normal;">My
> Songs</font></a><font size="2">|</font>
>          <a href="#"><font
> style="color:#335aeb;font-family:vedana;font-size:12px;font-style:normal;">Popular
> Tags</font></a><font size="2">|</font>
>          <a href="#"><font
> style="color:#335aeb;font-family:vedana;font-size:12px;font-style:normal;">Profile
> Setting</font></a><font size="2">|</font>
>          <a href="#"><font
> style="color:#335aeb;font-family:vedana;font-size:12px;font-style:normal;">Home</font></a><font
> size="2">|</font>
>          <a href="#"><font
> style="color:#335aeb;font-family:vedana;font-size:12px;font-style:normal;">Browse</font></a><font
> size="2">|</font>
>          <a href="#"><font
> style="color:#335aeb;font-family:vedana;font-size:12px;font-style:normal;">Logout</font></a>
>                         <br/><br/>
>                     </div>
>          </td>
>          </tr>
>          <tr>
>          <td align="right" valign="top">
>          <div id="Signup" align="right">
>          <font
> style="color:#434446;font-family:vedana;font-size:12px;font-style:normal;">New
> to iSing?</font> <br/>
>          <a href="javascript:void(0)"
> onClick="makeSignUpRequest('Signup')"><span style="color: green;
>  text-decoration;underline:">SignUp</span> </a><br/>
>          <font
> style="color:#434446;font-family:vedana;font-size:12px;font-style:normal;">It's
> free and best.</font>
>          </div>
>          </td>
>          <td valign="top">
>          <div id="login" align="right">
>                         <span style="color:black;"><font
> style="color:#e74a4a;font-family:vedana;font-size:12px;font-style:normal;">Login
> Here:</font></span><br/>
>          <font
> style="color:#434446;font-family:vedana;font-size:13px;font-style:normal;">User
> Name:</font><input name="name" type="text" id="name" value=""/><br/>
>          <font
> style="color:#434446;font-family:vedana;font-size:13px;font-style:normal;">Password:</font><input
> name="psw" type="password" id="psw" value=""/><br/>
>          </div>
>          <div id="button" align="right">
>          <a href="javascript:void(0)" onClick="makePOSTRequest()"><img
> src="http://ising.in/oapp/images/login-button.png"/></a>
>          </div>
>          </td>
>          </tr>
>         </table>
>         <div id="errormsz" align="center" valign="top">
>             Welcome to the new world of iSing
>         </div>
>         <table cellspacing="0" cellpadding="0" width="100%">
>          <tr>
>          <td valign="top">
>          <div id="upload" align="left">
>          <font
> style="color:#000000;font-family:vedana;font-size:13px;font-style:normal;font-variant:normal;vertical-align:top;">Upload
> songs iSing:</font>
>                         <br/>
>                         <font size="1" color="gray">(Supported formats mp3,
> wma, amr)</font><br/>
>          <input name="txtsong" type="file" size="20"/>
>          </div>
>                     <br/>
>          <div id="search" align="left" style="border-style:
> double;border-color:#ecf0f6">
>          <font
> style="color:#434446;font-family:vedana;font-size:13px;font-style:normal;vertical-align:top;
> border-style: double;border-color:#ecf0f6 ;">Search iSing Songs:</font><br/>
>          <input name="txtsong" type="text" size="20"/>
>          <a href="javascript:void(0)" onClick="makesearchRequest()"><img
> src="http://ising.in/oapp/images/search-button.png"/></a>
>          </div>
>          </td>
>          <td>
>          <div id="list-box" style="border-color:#666363 ;">
>          <div id="top-lists" align="right"> &nbsp;&nbsp;&nbsp;
>          <a href="javascript:void(0)"
> onClick="makePOSTtop10Request('played')"><font
> style="color:#335aeb;font-family:vedana;font-size:14px;font-style:normal;vertical-align:top;
> border-style: double;border-color:#ecf0f6 ;">Top 10 Played</font></a>
> &nbsp;&nbsp;&nbsp;
>          <a href="javascript:void(0)"
> onClick="makePOSTtop10Request('rated')"><font
> style="color:#335aeb;font-family:vedana;font-size:14px;font-style:normal;vertical-align:top;
> border-style: double;border-color:#ecf0f6 ;">Top 10 Rated</font></a>
> &nbsp;&nbsp;&nbsp;
>          <a href="javascript:void(0)"
> onClick="makePOSTtop10Request()"><font
> style="color:#335aeb;font-family:vedana;font-size:14px;font-style:normal;vertical-align:top;
> border-style: double;border-color:#ecf0f6 ;">Top 10 Latest</font></a>
> &nbsp;&nbsp;&nbsp;
>          <a href="javascript:void(0)"
> onClick="makePOSTtop10Request('MySongs')"><font
> style="color:#335aeb;font-family:vedana;font-size:14px;font-style:normal;vertical-align:top;
> border-style: double;border-color:#ecf0f6 ;">MySongs</font></a>
> &nbsp;&nbsp;&nbsp;
>          <a href="javascript:void(0)"
> onClick="makePOSTtop10Request('iSing')"><font
> style="color:#335aeb;font-family:vedana;font-size:14px;font-style:normal;vertical-align:top;
> border-style: double;border-color:#ecf0f6 ;">All iSing</font></a><br/>
>          </div>
>          </div>
>          <div id="top10" align="right" style="border-style:
> double;border-color:#ecf0f6 ;">
>                     </div>
>          </td>
>          </tr>
>         </table>
>
>
> ]]>
>   </Content>
> </Module>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" group.
To post to this group, send email to opensocial-orkut@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to