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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sending header: location with target

Status
Not open for further replies.

y2k1981

Programmer
Aug 2, 2002
773
IE
I've got a list of to-do items, they get displayed in an iframe, which has a button called complete - which changes some fields in MySQL. Then I want to send a header to re-request the to-do list, but obviously it opens in the iframe instead of the parent. how can i get it to load in the parent isntead? i guess i'll have to use javascript, but can't figure out how. can anybody help?
 
You will get expert answers in the JavaScript forum.
You are talking about two actions here. You say the button triggers a change in MySQL -> that means it needs to call a server side script to make the changes.
It now completely depends on what the server side script outputs as result to the iframe.
The sent content can contain a JavaScrip snip that sets the parent frame's content to the desired URL. Look at frame relationships. This is all I can offer quickly.
 
Yeah sorry, my original post was written in a bit of a hurry too. There is no output from the server side script (ie PHP) because I'm sending the header instead !! However, I've just realized a while ago that because I'm using div's to make the iframe's visible, I'll have to dynamically redraw the table afterwards, otherwise it would still show an item which is closed. So I'm off to the JavaScript forum !!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top