468,507 Members | 1,576 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,507 developers. It's quick & easy.

mouse over and new page

NH
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
Sep 15 '06 #1
4 1295
"NH" <NH@discussions.microsoft.comwrote in message
news:F1**********************************@microsof t.com...
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...
Sep 15 '06 #2
NH
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.

"Mark Rae" wrote:
"NH" <NH@discussions.microsoft.comwrote in message
news:F1**********************************@microsof t.com...
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...
Sep 15 '06 #3
"NH" <NH@discussions.microsoft.comwrote in message
news:CC**********************************@microsof t.com...
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...
Sep 15 '06 #4
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

"NH" <NH@discussions.microsoft.comwrote in message
news:CC**********************************@microsof t.com...
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.

"Mark Rae" wrote:
>"NH" <NH@discussions.microsoft.comwrote in message
news:F1**********************************@microso ft.com...
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...

Sep 15 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by punkin | last post: by
1 post views Thread by DJ WIce | last post: by
4 posts views Thread by Videos 4 Sale | last post: by
4 posts views Thread by Prateek | last post: by
19 posts views Thread by wmanzo | last post: by
reply views Thread by NPC403 | last post: by
3 posts views Thread by gieforce | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.