R2i DotNetNuke® Forum

R2i wants you to have the opportunity to ask questions, post reviews, help others or just rant and rave about DotNetNuke® or any of the R2i Modules and Skins. Our team spends hour upon hour, day after day, working on custom DotNetNuke® modules and services; please feel free to ask us anything.
 
URLREFERRER ??
Last Post 01 Jan 1900 05:00 AM by . 3 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Informative
telecontrolUser is Offline
New Member
New Member
Posts:26

--
10 Dec 2006 11:12 PM  

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

bgatesUser is Offline
Basic Member
Basic Member
Posts:196

--
12 Dec 2006 02:33 PM  
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<br>Business Intelligence Force, Inc. (<a href="http://dnn.bi4ce.com"><b>bi4ce</b></a>)
telecontrolUser is Offline
New Member
New Member
Posts:26

--
12 Dec 2006 05:27 PM  
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

telecontrolUser is Offline
New Member
New Member
Posts:26

--
12 Dec 2006 11:46 PM  
Found a solution for my problem... thx
You are not authorized to post a reply.

Active Forums 4.1
 

New York, NY • Baltimore, MD • Vienna, VA • St. Louis, MO • Seatle, WA • 410.327.0007 • info@R2Integrated.com

Bookmark & Share Bookmark and Share