Join our DNN Community    (Newsletter, Tips, Tricks and Forums for DNN Skins & Modules)

 


 
Microsoft Gold Certified Partner - DNN Benefactor

DotNetNuke Powered! 


Friday, December 05, 2008 Register · Login · Contact · Search:  
Company Solutions Portfolio Contact
Forums
Toolbar
Forum for discussing the Toolbar module. Questions, comments, reviews and configurations.
Subject: URLREFERRER ??
You are not authorized to post a reply.
 
Author Messages
telecontrol
Welterweight
Posts:26

12/10/2006 6:12 PM Alert 

Hi,

I am new to using the Bi4ce modules and spent hours trying to get it work. Maybe I have overseen something ....

I am trying to do something simple I thought. I have two tabs I navigate back and forth. The first contains a link to the second and the second should have a toolbar wiht a back button. I thought I can use the link action on the button and simply but in [URLREFERRER] and it would navigate back to the first tab where it came from. I had put in other system values like [PORTALPATH] which work fine, so there has to be a replacement done somehow. However I can´t get this working.

Any idea what I am doing wrong? Am I trying something that´s not working at all? I am not using the breadcrumb from bi4ce.

Thx,
Andy

bgates
Heavyweight
Posts:197

12/12/2006 9:33 AM Alert 
Toolbar does not have all of the system variables available to it the way that ListX does. Fortunately, Javascript provides exactly what you need. Change your Toolbar Button to an Action Type of Script, and use this script:
if ( document.referrer != '') { document.location = document.referrer; } else if ( history.length > 0 ) { history.back(); }

document.referrer works great if you arrived at this page via a postback. history.back() is as though the user clicked the Back button in their browser.

Bob Gates
Business Intelligence Force, Inc. (bi4ce)
telecontrol
Welterweight
Posts:26

12/12/2006 12:27 PM Alert 
Thank your for the response. I accidentially stepped upon that type of solution by myself.

As a beginner it is still a mistery to me where I can use Javascript and or where ACTION tags etc. are available and where I cannot use them at all. i.e. setting a session variable within a toolbar button "script", is this going to work at all?

Is there a thumb rule (other than trial and error) that helps a List-X novice?

Thx, Andy

telecontrol
Welterweight
Posts:26

12/12/2006 6:46 PM Alert 
Found a solution for my problem... thx
You are not authorized to post a reply.
Forums > Bi4ce.Modules > Toolbar > URLREFERRER ??



ActiveForums 3.6
Latest Post
 
At R2integrated (formerly Bi4ce), we take support seriously.  That's why we support our customers and DNN community with daily monitoring from our experienced engineering team.  We ask that the first step taken is to read the relevant documentation and support forums prior to submitting any questions that may already be available or have been answered.  We ask that you review the documentation that we provide for our products before posting a question.

The Forums are for our customers to chat, exchange ideas and strategies, and submit feedback.  Please be sure to perform keyword searches for previous related forum responses.

To be helpful when submitting a new item, please include the following: 
  1. DNN Version
  2. Module Version
  3. Admin Log Viewer Information
  4. Environment detail: Operating system, .NET framework version, database and version, IIS version, Browser version (if appropriate)
We always try to respond quickly and monitor the forums daily during business hours (EST).  Occasionally, requests for a specific project requirement may not apply for the free support offered. For project specific support please submit via our Information Request form.

Thank you for using our Forums.

Click here to register for the Forums
 
© 2008 by R2integrated (formerly Bi4ce) | DNN® is a registered trademark of DotNetNuke Corporation