mouse over and new page

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have a mouseover event on a control, is there a way of opening another
asp.net webform and having it close automatically when the mouseoff even
occurs?

I can easily open a new window but cant figure out how to make it close
automatically on the mouseoff event. I think I need to wrap the page in a div
and dynamically hide and display it.

Any ideas?

Thanks
 
I can easily open a new window but cant figure out how to make it close
automatically on the mouseoff event. I think I need to wrap the page in a
div
and dynamically hide and display it.

You can't "wrap a page in a div"... pages can contain divs, divs can't
contain pages...

You could certainly copy all of the controls from the second page into a div
on your first page and then use DHTML to hide and unhide it. This will give
the appearance of a popup without actually being one...
 
Yes sorry, that was a stupid statement.

The problem I think I will have is that the pop up page needs to retrieve
data from the database based on parameters I pass into it. So I dont think
this will work from what you suggest.
 
The problem I think I will have is that the pop up page needs to retrieve
data from the database based on parameters I pass into it. So I dont think
this will work from what you suggest.

That's correct, and if you had mentioned that in your original post, I would
not have suggested it...
 
you could use an absolutely positioned IFRAME. set the source of it when
you mouse-over, with your database parameter (or whatever), and update its
Top and Left position at the same time so that it appears correctly on the
page. the mouse-off event can hide the iframe.
not great for Mac/Linux compatibility but that may not matter to you.

tim
 
Back
Top