Return to previous page VB Script?
Hi All,
I am creating a Silverlight site that is working in conjunction with a regular website.
Basically (on the regular website) a person searches Health Inspections information for a restaurant, and they can click on a "Map" button that will take them to the Geocortex site.
However, we need to add a button in the toolbar that will return the person to their previous page (the Health Inspections page they were at when they clicked on 'Map').
I can't figure out a way to do this besides executing a custom Workflow that runs a VB Script.
Online I found the simple VB code: window.history.back
When I run the workflow I get the error "Aborted exception: "window" is not declared. It may be inaccessible due to its protection level."
If anyone has any suggestions or ideas I would really appreciate the help.
Thank You!
Laura
-
Hi Dan,
Thanks for the reply.
The 'Back' URL will always be different, since it will be different people searching different things every time.
There is no consistant point of origin, so because of this I can't use NavigateCurrentWindowToUri and point it to just 1 URL.
The one-liner simple custom command for the SL viewer seems my best bet, but i'm not sure where to embed or use the code you provided?
Any help would be really appreciated.
Thank You,
Laura
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar