It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

Javascript

Javascript

Postby jayagowri on Mon Sep 17, 2007 6:49 am

Hi..am implementing 'do not show this again' functionality using jsp and javascript. The parent page opens a popup on click of an image but the popup is opened through the script 'submodal.js' that shows only the div part as popup. it has a 'ok,''cancel' and a checkbox.
When the user clicks on check box the status should be remembered and it should not open the popup next time when the user clicks on the same image.
Am not able to get the checkbox status in the parent as there is no child parent relationship between the popup and the parent window.

Please help me in getting the solution for this problem.

Thanks in advance.
jayagowri
 
Posts: 2
Joined: Mon Sep 17, 2007 6:45 am

Postby bobbyblades on Mon Sep 17, 2007 6:29 pm

the checkbox has to be accessible you just have to figure out how to get to it, if it's in the parent window: parent.somefunction(); the function can be any function you create which could return either true or false indicating the checkbox is checked or unchecked.
User avatar
bobbyblades
50+ Club
 
Posts: 85
Joined: Fri Aug 24, 2007 8:38 pm
Location: hawaii or bust

Postby jayagowri on Tue Sep 18, 2007 3:55 am

Thanks for the reply...

I have check box in the popup...I could get the status in the popup but not the parent.Even if i get it how does it work in session?
jayagowri
 
Posts: 2
Joined: Mon Sep 17, 2007 6:45 am

Postby bobbyblades on Tue Sep 18, 2007 6:20 pm

I'm not sure what the problem is, if you have a div popup, what parent are you talking about? you can access everything in the document by calling window if your checkbox is not in another window/frame then there is no need to call parent because parent is the current top level window your allready in. I don't have a clue what session your talking about, a cookie? a PHP Session? if your talking jsp I don't use jsp, so I can't help you with that one.
User avatar
bobbyblades
50+ Club
 
Posts: 85
Joined: Fri Aug 24, 2007 8:38 pm
Location: hawaii or bust


Who is online

Users browsing this forum: No registered users and 9 guests