passing parameters in the URL line

MiServer is Dyalog's APL-based web development framework

passing parameters in the URL line

Postby ray on Thu Jun 18, 2015 5:14 pm

I noticed in the MiServer documentation:
>Put http://localhost:8080/reverse?Name=Beethoven into the URL line
of your browser:


How can I access the content of the data after the ? in APL from my Render function?
Ray Cannon
Please excuse any smelling pisstakes.
User avatar
ray
 
Posts: 221
Joined: Wed Feb 24, 2010 12:24 am
Location: Blackwater, Camberley. UK

Re: passing parameters in the URL line

Postby MBaas on Fri Jun 19, 2015 8:47 am

{default}Get'Name' should return the value you're looking for.
There also is a _PageData-namespace which should give access to Request, querystring etc., but I've never needed to dig there...
User avatar
MBaas
 
Posts: 156
Joined: Thu Oct 16, 2008 1:17 am
Location: Gründau / Germany

Re: passing parameters in the URL line

Postby ray on Sat Jun 20, 2015 1:16 am

      Get'name'
or
      _PageData.name
does the trick. The parameter has been "lower-cased", that is why
      Get'Name'
does not work.

Thanks so much for your help.
Ray Cannon
Please excuse any smelling pisstakes.
User avatar
ray
 
Posts: 221
Joined: Wed Feb 24, 2010 12:24 am
Location: Blackwater, Camberley. UK

Re: passing parameters in the URL line

Postby hotair on Sat Jun 20, 2015 4:16 pm

Reading your fine print might have helped. (grin)
hotair
 
Posts: 5
Joined: Fri Nov 27, 2009 3:21 am


Return to MiServer

Who is online

Users browsing this forum: No registered users and 1 guest