Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

finding ticked checkboxes and updating the database from another frame

Status
Not open for further replies.

allinoneprogrammer

Programmer
Dec 29, 2008
7
Hi

The checkboxes are in one frame. The button is on another frame.

The layout of the web page looks like this

_______________________________________
Frame
_______________________________________________

[] Checkboxes bound to array .... more than one

Frame
_______________________________________________
Button Frame
_______________________________________________


I have a list of vb checkoxes that are bound to vb table.

At the moment I have a button in the same frame as the checkboxes which finds the ticked checkboxes and updates the database.

I want to be able to update the checkboxes by having the submit button in a separate frame.

Thats what it uses to find the ticked checkboxes: Page.FindControl("Form1").FindControl("tblPubl").F indControl(tickSel.ID)

How can I do the same but using another frame to find the ticked boxes.

Can anyone help me please. It would be appreciated.
 
you need to tell it the frame name.
Something like:
window.top.frames[1].document.getElementByID("Label1").innerText = window.top.frames[0].document.getElementByID("Textbox1").value

Example only. Try googling "getting checkbox value from framed page".


Ordinary Programmer
 
I will have to try the above.

But can anyone give me an answer, I need to know by today please.

Thanks.
 
The solution for my problem I found out.
I wanted to click a submit button which was in another frame.
So I hide that button using style="visibility:none;" on the button attribute.

On the frame that I called the submit button when I clicked on another button I put this javascript.

onclick="parent.frames[1].document.getElementByID('BtnSubmit').click();"

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top