how to specify URL for REST submission to google

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

how to specify URL for REST submission to google

ilango_g
Hi
I am trying to use the following URL as follows:
I am trying to pass the URL 'q' by having an element q and assigning it a value after ?.

<xforms:submission id="submit" action="http://www.google.com/search?hl=en&instance('DataResponse')/fe:q=afdaffdfaffafffd&btnG=Search" method="get"  

What is the preferred to refer to a query parameter q in the URL.

thanks
ilango
Reply | Threaded
Open this post in threaded view
|

Re: how to specify URL for REST submission to google

Erik Bruchez
Administrator
You can either submit an instance where each element is the name of  
the parameter:

<foobar>
   <q>afdaffdfaffafffd</q>
   ...
</foobar>

or you can use AVTs:

   action="http://www.google.com/search?
hl=en&amp;q={instance('foobar')/q}&amp;btnG=Search"

-Erik

On Jul 3, 2008, at 2:34 PM, ilango_g wrote:

>
> Hi
> I am trying to use the following URL as follows:
> I am trying to pass the URL 'q' by having an element q and assigning  
> it a
> value after ?.
>
> <xforms:submission id="submit"
> action="http://www.google.com/search?hl=en&instance('DataResponse')/fe:q=afdaffdfaffafffd&btnG=Search 
> "
> method="get"
>
> What is the preferred to refer to a query parameter q in the URL.
>
> thanks
> ilango
> --
> View this message in context: http://www.nabble.com/how-to-specify-URL-for-REST-submission-to-google-tp18268656p18268656.html
> Sent from the ObjectWeb OPS - Users mailing list archive at  
> Nabble.com.
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws