homepage Welcome to WebmasterWorld Guest from 54.211.73.232
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
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

5+ Year Member



 
Msg#: 4199226 posted 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

5+ Year Member



 
Msg#: 4199226 posted 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.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved