SitePoint Sponsor |
|
User Tag List
Results 1 to 1 of 1
-
Jun 4, 2009, 21:25 #1
- Join Date
- Sep 2008
- Location
- hyderabad
- Posts
- 179
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Javascript Dialog Box Problem in a FRAME
Hi,
I'm using 3 frames in a PHP page, header, main menu, side navigation.
I need to alert user when his/her session is about to end, i did that and now i'm showing the dialog box with yes/no/ buttons,
My problem is i'm displaying tht javascript dialog box in main menu frame only,
i need to display that in the entire frame blocked.
Like BlockUI.
Here is my script for tht.
Code HTML4Strict:<?PHP include "authn.php"; ?> <html dir='ltr'> <head> <link rel="shortcut icon" href="images/tlogo.ico"/> <meta name="generator" content="HTML Tidy, see www.w3.org"> <title>Navigation Page</title> </head> <script language="JavaScript"> var frame = '<FRAMESET ROWS="121,*"><frame name="UniversalHeader" title="Portal Header" scrolling="no" frameborder="0" noresize src="leftmenu.php"><FRAMESET COLS="223, *"><FRAME name="NAV" frameborder="0" framespacing ="0" scrolling="auto" marginheight="0" marginwidth="0" target="_blank" SRC="leftnavigation.php"><FRAME name="TargetContent" scrolling="auto" frameborder="0" marginheight="0" target="_blank" SRC="MainMenuframe.php"' ; var pos = document.location.href.indexOf("?http://"); if (pos>0) { frame += document.location.href.substr(pos+1); } else { frame += 'dc_toc.html'; } frame += '"></FRAMESET></FRAMESET>'; document.write(frame); </script> </html>
can anyone please help me out, how to use this Block UI feature without changing my javascript program.
Code JavaScript:<script type="text/javascript"> document.write(getWarning()); </script>
Code HTML4Strict:<div id="warningDiv"></div> <img src="images/load.gif" onLoad="initTimer();" >
PHP Professional turned ASP.NET Professional
Bookmarks