Hey,

That happens when you are not URL encoding the string passed in http request.
please use the encodeURI() function in JS on the POST variable you are passing..
more on it here-> http://www.w3schools.com/jsref/jsref_encodeURI.asp
Thanks

 

~@@[EMAIL PROTECTED] 

http://aakash-bapna.blogspot.com 


> Date: Thu, 24 Apr 2008 05:08:15 -0700
> Subject: [OpenSocial] Re: Post & Get(Very Urgent)
> From: [EMAIL PROTECTED]
> To: [email protected]
> 
> 
> 
> Hey Guys,
> I m getting -
> Missing or malformed url parameter
> Error 400
> 
> when I send POST request at some url.
> 
> wht is this????wht is the solution for this?????????????
> 
> Plz Help me..............
> 
> Thanks in advance
> 
> On Apr 24, 9:53 am, "Meenu Gupta" <[EMAIL PROTECTED]> wrote:
> > Is it possible to fetch data posted by my application at some url/file (e.g.
> > - *http://www.thalasoft.com/engine/system/admin/login.php)  by
> > $_POST?????????*
> >
> > On Wed, Apr 23, 2008 at 9:31 AM, Meenu Gupta <[EMAIL PROTECTED]>
> > wrote:
> >
> > > THanks to all.I'll try all above examples.
> >
> > > On Tue, Apr 22, 2008 at 8:53 PM, Aakash Bapna <[EMAIL PROTECTED]> wrote:
> >
> > > > Hi Stephane,
> > > > The makeRequest() function doesn't generate the code for input boxes,
> > > > buttons. You have to add the code for html for them your selves;
> >
> > > > here is the code that should give you input box, button.
> >
> > > > *<?xml version="1.0" encoding="UTF-8" ?>
> > > >  <Module>
> > > >  <ModulePrefs title="Thalasoft Admin Login">
> > > >  <Require feature="opensocial-0.7"/>
> > > > </ModulePrefs>
> > > >  <Content type="html">
> > > >  <![CDATA[
> >
> > > >  <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;
> > > >  };
> >
> > > > </script>*
> > > > **
> > > > *<input type="text" name="test" id="textbox" size="10"/>*
> > > > *<button onClick="javascript:makeNormalRequest();">Start test</button>*
> > > > *<div id="content_div">response text comes here</div>
> > > >  ]]>
> > > >  </Content>
> > > >  </Module>
> > > > *
> >
> > > > Thanks
> >
> > > > ~Aakash Bapna
> > > >http://aakash-bapna.blogspot.com
> >
> > > > ------------------------------
> >
> > > > > Date: Tue, 22 Apr 2008 06:45:34 -0700
> > > > > Subject: [OpenSocial] Re: Post & Get(Very Urgent)
> > > > > From: [EMAIL PROTECTED]
> > > > > To: [email protected]
> >
> > > > > 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:
> > 

_________________________________________________________________
Make i'm yours.  Create a custom banner to support your cause.
http://im.live.com/Messenger/IM/Contribute/Default.aspx?source=TXT_TAGHM_MSN_Make_IM_Yours
--~--~---------~--~----~------------~-------~--~----~
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