how to get url parameter?

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

t4nu
Ebase User
Posts: 305
Joined: Thu Jul 02, 2015 8:32 am
Location: Indonesia

how to get url parameter?

#1

Postby t4nu » Tue Aug 02, 2016 7:08 am

Hi,
If I want to get the url parameter, how can I do it?
The example I got that using window.location.... seems cannot be used in ebase.
Thanks in advance for the help.
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Tue Aug 02, 2016 8:31 am

window.location is client-side (browser) javascript, it won't work on the server.

If the URL parameter is a form field with the URL Parameter property checked you can just use the field value e.g. fields.parmxxx.value.
For the language, which is a special case, you use form.language
For anything else you can use client.request.getParameter("parmxxx")
0 x

t4nu
Ebase User
Posts: 305
Joined: Thu Jul 02, 2015 8:32 am
Location: Indonesia

#3

Postby t4nu » Tue Aug 02, 2016 8:35 am

Thank you very much, Jon.
I got what I want now.
Jon wrote:window.location is client-side (browser) javascript, it won't work on the server.

If the URL parameter is a form field with the URL Parameter property checked you can just use the field value e.g. fields.parmxxx.value.
For the language, which is a special case, you use form.language
For anything else you can use client.request.getParameter("parmxxx")
0 x


Who is online

Users browsing this forum: Bing [Bot] and 14 guests