• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1081
  • Last Modified:

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/
0
wldrbit
Asked:
wldrbit
1 Solution
 
amit_gCommented:
Try

top.frames[1].$.blockUI();

or

top.frames[1].changeLanguages();
0
 
wldrbitAuthor Commented:
top.frames[1].$.blockUI(); worked perfectly for the jQuery call
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now