Navigator Web Sessions

The use of specific JADE features and proposals for new feature suggestions
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Navigator Web Sessions

Postby ConvertFromOldNGs » Fri Aug 07, 2009 10:45 am

by Hido Hasimbegovic >> Sun, 29 Oct 2000 23:51:37 GMT

Robert's suggestion might be worth a try. I had a similar problem with XSL transformation of an XML file.
For example, XML had an element with attribute called "serverPath" and value http://127.0.0.1/jade/jadehttp.dll?MyApp) . XSL translates XML document to HTML and inserts serverPath attribute as ACTION attribute of FORM element. XSL for some reason clips anything after the ? mark in serverPath off, so that my ACTION becomes http://127.0.0.1/jade/jadehttp.dll?- sans pipe name!. This obviously didn't work, so what I had to do is embed the pipe name as a hidden field inside the form. Eg. <FIELD TYPE="HIDDEN" NAME="MyApp" VALUE="">. Clumsy, maybe, but it works great.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Navigator Web Sessions

Postby ConvertFromOldNGs » Fri Aug 07, 2009 10:45 am

by Stephen Persson >> Mon, 30 Oct 2000 3:16:02 GMT

If I remove the ShopKeeper portion of the url, then how does Jade know which application (& therefore schema) is to handle the request?
We currently have 3 web applications running from our server (from 3 different schemas). If I remove the ShopKeeper portion its not going to know which one should handle the request. I could have my ShopKeeper app trying to be processed by the WebPortal app.
Hido's response therefore totally confused me!
'...so what I had to do is embed the pipe name as a hidden field inside the form. Eg. <FIELD TYPE="HIDDEN" NAME="MyApp" VALUE="">'
Which app first of all handled the request and looked up the hidden field "MyApp" to find out which app SHOULD have handled the request?!

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Navigator Web Sessions

Postby ConvertFromOldNGs » Fri Aug 07, 2009 10:45 am

by Hido Hasimbegovic >> Mon, 30 Oct 2000 2:28:53 GMT

If you have form like this:

<FORM NAME="Entry" ACTION=http://127.0.0.1/jade/jadehttp.dll? METHOD="GET"> <FIELD TYPE="HIDDEN" NAME="ShopKeeper" VALUE="">
<FIELD TYPE="TEXT" NAME="Name" SIZE="10" MAXSIZE="10"> ...etc..
<FIELD TYPE="BUTTON" NAME="submit">
</FORM>

Your http string will be: http://127.0.0.1/jadehttp.dll?ShopKeepe ... teredvalue& etc .. etc .. This first argument (ShopKeeper) is the pipe (or application) name. Don't worry about the '=' sign after ShopKeeper - it will work.
If you need an example of how this works in XML/XSL, drop me a line.

Cheers,

Hido

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Navigator Web Sessions

Postby ConvertFromOldNGs » Fri Aug 07, 2009 10:45 am

by Stephen Persson >> Mon, 30 Oct 2000 23:12:38 GMT

I see what you are meaning now, but I can't use the GET method - it must be the POST method due to the number of fields being passed back (url will be longer than the max allowable length), plus I don't want to have credit card details sitting in as part of the url.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Navigator Web Sessions

Postby ConvertFromOldNGs » Fri Aug 07, 2009 10:45 am

by Stephen Persson >> Tue, 31 Oct 2000 2:59:01 GMT

SOLVED!!
The problem was an extra parameter within the FORM tag.
We had:
<form method="post" enctype="text/plain" action="https://www.e-comservices.co.nz/webapps ... eeper&Chec kout" name="CreditCardDetails">

By getting rid of the enctype="text/plain" part it worked fine.

We were using this when the action was "mailto" (emails the result to someone instead of back to the server)
Putting the enctype="text/plain" put each field on a seperate line, instead of one big line, making the email easier to read.
This didn't work when submitting to Jade though. IE was smart enough to still make it work but Navigator wasn't.

Thanks


Return to “Feature Discussions”

Who is online

Users browsing this forum: No registered users and 11 guests