Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
mimicking the custom menu item
Hazzie
Hi,
I have a custom menu item which pops up a cgi window. This produces a list of current jobs based on a branch. The user can do various things then by choosing an option next to a job. This re-loads the cgi window (same script) and the user can then choose another set of options which reloads the same cgi script. However once they have finished they want to be taken back to the first screen but not by closing the window and reselecting the custom menu option.
The two ways i know of is javascript history.go(-x); and window.location.href="****.****.****";
However, the first goes back but doesnt reload the screen (users would prefer not to have to press F5 to get latest content). The second reloads the screen but looses all the cgi variables that get attached to the cgi task when called as part of the custom menu item.
So can i mimic the call of the custom menu item with a button on a my last page so the initial page is called and all the cgi variables are included?
hope that makes sense.
Cheers,
Hazzie
TS 5.5.2 on NT.
Find more posts tagged with
Comments
rollo
How about a JavaScript form submission with a flag set (hidden form field perhaps) so that it shows the first screen populated with the variables? You'd have to change the CGI to accomodate it but presumably that wouldn't be a problem.
tvaughan
Yeah, I've done this exact thing in the past with a search custom menu item. After the results are returned, there's a "Perform Another Search" button that submits a form in which all of the cgi->{form}{"****"} elements have been listed as hidden elements.
When the user clicks the button and submits the form, the custom menu item doesn't know the difference. . . for all it knows, the user is kicking the cgi off from the main TeamSite gui.
Tom
Adam Stoller
For what it's worth - TeamSite::CGI_lite provides a nice little method for simplfying this procedure (hidden elements for all existing form data): get_implicit_data_tunnel_html()
Do a perldoc on TeamSite::CGI_lite for more details...
--fish
(Interwoven Senior Technical Consultant)