SpecialURL to pick which web page to show or to set Property?

I get a Server 505 error and know I’m screwing this up.

How would I manage to set a parameter in my app to the special URL text?

So, you want to set a parameter calling SpecialURL ?

You can do that with Post, or using a URL parameter.

URL Parameter example:

http://myapp.com/special/?Parameter1=Paul&Parameter2=Peter&Parameter3=John http://127.0.0.1:8080/special/?Parameter1=Paul&Parameter2=Peter&Parameter3=John

Then use http://documentation.xojo.com/api/web/webrequest.html#webrequest-getparameter

For instance

System.debuglog Request.GetParameter("Parameter1")

Amy, I shared this in the Discord chat but wanted to make sure it didn’t get lost. Here’s my attempt at a WebStyle to match your buttons: https://www.dropbox.com/s/sczys0sk09sol2n/AmyButton.xojo_binary_project?dl=1

I see you changed the title.

In SpecialURL, you don’t have access to WebPages. The best you could do is to post an HTML page.

However, if what you want is to open the app at a given page, you can use a parameter in the URL just the same, to open a given page. Such as

http://127.0.0.1:8080/?Page=MyPage

Use http://documentation.xojo.com/api/web/websession.html#websession-urlParameter to read the parameter, in Session Open, and display the proper page accordingly.

A combination of all of these things as mentioned above has helped me accomplish my goal.

[code]If Self.URLParameterCount > 0 Then
Dim parameterName, value As String
For i As Integer = 0 To Self.URLParameterCount - 1
parameterName = Self.URLParameterName(i)
value = Self.URLParameter(parameterName)
If parameterName = “page” Then

  If value = "WebPage2" Then
    
    Session.landingpage = 2
    
  End If
  
End If
WebPage1.TextArea1.AppendText(parameterName + " = " + value + EndOfLine)

Next
End If[/code]

In the Shown event of the main web page that first opens, I polled the Session variable with the following code:

If Session.landingpage = 2 Then WebPage2.Show End If

And et voila! Page shown successfully.

My module is here:

familysuccessapps.com

Now add the following to the back-end of the URL above:

/cgi-bin/ptest123/ptest123.cgi?2=oldcityws@gmail.com

  • the forum software adds in a bunch of text within the link if I post the whole link not split apart.

To test this - register a dummy account at familysuccessapps.com - it’s nothing other than a login and registration, plus confirmation MsgBox that you have entered a correct user ID and password. Then you can try this module to see that it will greet you by the name you’ve registered an account in.

This code basically makes it possible to call an app within an app so that users are only using the modules as they are needed. I am hoping that this will reduce the memory size needed on the server bc there are literally thousands of people expected to use this site.

-_____-