Link to home
Start Free TrialLog in
Avatar of wldrbit
wldrbit

asked on

Calling a javascript function between seperate pages inside a frameset.

I'm using jQuery library and ASP 2.0. I've been forced to use frameset for my project and I need use an external javascript function to block the UI (called blockUI()).

So I have the Default.aspx and that has two frames within that files called rightFrame.aspx and leftFrame.aspx. What I'm trying to do is to block the whole UI with some text. It's acceptable to block only the rightFrame.aspx using the jQuery blockUI function but the function call, always come's from the leftFrame.aspx. I've tried to do something like:

$(parent.frame[1].document).blockUI();

but that didn't work, so i made a function called changeLanguages() inside the rightFrame.aspx that calles the blockUI on itself but now I can't use the classical javascript to call it.

Does anyone know how I call a jquery function on to a parent frameset page (default.aspx) and/or to call the selectLanguage() function from the leftFrame.aspx

Here's a link to the blockUI page: http://www.malsup.com/jquery/block/
ASKER CERTIFIED SOLUTION
Avatar of amit_g
amit_g
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of wldrbit
wldrbit

ASKER

top.frames[1].$.blockUI(); worked perfectly for the jQuery call