homepage Welcome to WebmasterWorld Guest from 107.22.70.215
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
redirect and load page with new variables
LouiseMarie




msg:4199228
 10:26 am on Sep 9, 2010 (gmt 0)

Hi

I have a page that loads with certain divs hidden for the generic use of the page but I need to create a function that requires some divs to be shown if the page has been access from a particular url.

From reportgenAddL-chooseB.aspx there is an onclick function:

function fncAddLChosenB() {
window.location = 'clientPL.aspx';
}

when it loads clientPL.aspx from this onclick I need to create an onload function thats makes the following happen:

function fncLoadAddLChosenB() {
document.getElementById("fadedbg").style.display = 'block';
document.getElementById("addLPopup2").style.display = 'block';
}

Is it possible add a variable that checks if it's come from reportgenAddL-chooseB.aspx during the load so that I can add the style change to view the normally hidden divs?

thanks in advance

 

LouiseMarie




msg:4199231
 10:29 am on Sep 9, 2010 (gmt 0)

Or if there is a way to built it into one function this would be better, so that the one function redirects to the page and tells it to changes the style of the elements at the same time.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved