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

Forum statistics

Threads
473,733
Messages
2,569,440
Members
44,830
Latest member
ZADIva7383

Latest Threads

Top