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.
how to get url parameter?
Moderators: Jon, Steve, Ian, Dave
-
- Ebase User
- Posts: 305
- Joined: Thu Jul 02, 2015 8:32 am
- Location: Indonesia
-
- Moderator
- Posts: 1342
- Joined: Wed Sep 12, 2007 12:49 pm
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")
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
-
- Ebase User
- Posts: 305
- Joined: Thu Jul 02, 2015 8:32 am
- Location: Indonesia
Thank you very much, Jon.
I got what I want now.
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: No registered users and 18 guests