Parent - Child back to parent javascript thingybob

M

mark

I have a page that has a button that opens a child window with a search
function.
The search funtion contains a datagrid with a button column - this all works
fine,
the bit thats giving me a headache is onclick I need to close the child and
reopen the parent
with a passed variable.

i can get it to work so it opens a new parent, but id rather it reused the
old parent

eg this is what im using atm :-

clientscript = "<script
language='javascript'>window.location.href='Index.aspx?sendid=" &
e.Item.Cells(0).Text & "';</script>"

id also like to close the child if i could

cheers

mark
 
M

mark

nm i fixed it with :-

Response.Write("<script>opener.location.href('Index.aspx?sendid=" &
e.Item.Cells(0).Text & "');self.close();</script>")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top