473,472 Members | 2,145 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

MouseOver in Webapplicaitons

hi,

I have searched for a while in MSDN for this subject but all I ended up was
mouse-events in Windows applications, isn't there an easy way for
web-applications.

Thnx in advance,

Best Regards,
Jul 5 '06 #1
7 3592
Unless I'm way off here, I think you can use the same events and event
handlers and .NET will understand then for Web Apps too. BTW, by web
apps, I'm assuming you mean ASP.NET since you posted in a C# group.

I know there are some classes that are specific to Windows Forms, but I
don't think the mouseover event is one of them.

Try writing the code using "normal" methods and see if that works for
you.

Tanju wrote:
hi,

I have searched for a while in MSDN for this subject but all I ended up was
mouse-events in Windows applications, isn't there an easy way for
web-applications.

Thnx in advance,

Best Regards,
Jul 5 '06 #2
Hello Tanju,

ASP.net and JavaScript could handle MouseOver event.
I don't quite understand what the problem is. Could you descibe it more wide?

TI have searched for a while in MSDN for this subject but all I ended
Tup was mouse-events in Windows applications, isn't there an easy way
Tfor web-applications.
T>
TThnx in advance,
T>
TBest Regards,
T>
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Jul 5 '06 #3
Hi,

The controls provided by asp.net are server side based, hence they provide
no handling for clients events like those from the mouse
You can easily add it using Javascript, you can use the Attributes
collection to add client behavior:

aImageButton.Attributes.Add("onmouseover","js_func tion_forhover()");

this will send to the browser something like:

<input type="button" id="aImageButton" onmouseover="js_function_forhover()"
>

--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Tanju" <Ta***@discussions.microsoft.comwrote in message
news:7D**********************************@microsof t.com...
hi,

I have searched for a while in MSDN for this subject but all I ended up
was
mouse-events in Windows applications, isn't there an easy way for
web-applications.

Thnx in advance,

Best Regards,

Jul 5 '06 #4
Hello Michael ,

I meant that *by means* of asp.net you can handle your js

MNHello Tanju,
MN>
MNASP.net and JavaScript could handle MouseOver event. I don't quite
MNunderstand what the problem is. Could you descibe it more wide?
MN>
T>I have searched for a while in MSDN for this subject but all I ended
T>up was mouse-events in Windows applications, isn't there an easy way
T>for web-applications.
T>>
T>Thnx in advance,
T>>
T>Best Regards,

---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Jul 5 '06 #5
Thank you all for helping me and so sorry for replying too late,

Actually I'm coming from Windows desktop enviroment and ı have used pascal
language (such as Borland delphi) effectually so far. To create a event
handler in delphi is very easy task, just double-clicking at
"object-inspector" leads you to the source code view and you can do whatever
you want, having such experience makes me think that there should be an
easy-way similar in MS Studio like in Delphi. But probably the all these
issues are contradicting with the nature of web-programing (server-client
side), it seems that there is no better way than writing script for handling
events in web -applications.
Best Regards,
"Ignacio Machin ( .NET/ C# MVP )" wrote:
Hi,

The controls provided by asp.net are server side based, hence they provide
no handling for clients events like those from the mouse
You can easily add it using Javascript, you can use the Attributes
collection to add client behavior:

aImageButton.Attributes.Add("onmouseover","js_func tion_forhover()");

this will send to the browser something like:

<input type="button" id="aImageButton" onmouseover="js_function_forhover()"
>


--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Tanju" <Ta***@discussions.microsoft.comwrote in message
news:7D**********************************@microsof t.com...
hi,

I have searched for a while in MSDN for this subject but all I ended up
was
mouse-events in Windows applications, isn't there an easy way for
web-applications.

Thnx in advance,

Best Regards,


Jul 7 '06 #6
Hi,

"Tanju" <Ta***@discussions.microsoft.comwrote in message
news:48**********************************@microsof t.com...
Thank you all for helping me and so sorry for replying too late,

Actually I'm coming from Windows desktop enviroment and i have used pascal
language (such as Borland delphi) effectually so far. To create a event
handler in delphi is very easy task, just double-clicking at
"object-inspector" leads you to the source code view and you can do
whatever
you want, having such experience makes me think that there should be an
easy-way similar in MS Studio like in Delphi. But probably the all these
issues are contradicting with the nature of web-programing (server-client
side), it seems that there is no better way than writing script for
handling
events in web -applications.
You are correct, in .NET is as easy IF you are working in windows
environment. Even if you are working in a web environment it's as simple IF
you want to handle the server events (onclick, selectedindexchanged, etc )
otherwise you have to do it in javascript.

--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Jul 7 '06 #7
ok we have clarified this issue,

As we know that script event-handlings are on client-side and .NET
event-handling mechanism is on server-side, which one most effacious. The
other way, which one is prefered by the developers?

Thnx,

"Ignacio Machin ( .NET/ C# MVP )" wrote:
Hi,

"Tanju" <Ta***@discussions.microsoft.comwrote in message
news:48**********************************@microsof t.com...
Thank you all for helping me and so sorry for replying too late,

Actually I'm coming from Windows desktop enviroment and i have used pascal
language (such as Borland delphi) effectually so far. To create a event
handler in delphi is very easy task, just double-clicking at
"object-inspector" leads you to the source code view and you can do
whatever
you want, having such experience makes me think that there should be an
easy-way similar in MS Studio like in Delphi. But probably the all these
issues are contradicting with the nature of web-programing (server-client
side), it seems that there is no better way than writing script for
handling
events in web -applications.

You are correct, in .NET is as easy IF you are working in windows
environment. Even if you are working in a web environment it's as simple IF
you want to handle the server events (onclick, selectedindexchanged, etc )
otherwise you have to do it in javascript.

--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Jul 7 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: OysterCracker | last post by:
Hi - I've previously used js to swap images on mouseover in a menu. I'm stumped on a different situation and would appreciate some advice. I would like to swap imageA to ImageB when I mouseover...
3
by: richk | last post by:
For some reason when I add additional buttons a 3rd button and beyond i cant get the effect to work and I get errors...I cant understand why... <SCRIPT LANGUAGE = "javascript"><!-- if...
14
by: J. Makela | last post by:
Hallo. This should be a pretty entertaining question for you *real* javascript writers.. I, being the lowly photoshop guy at an ad agency made the mistake of actually saying "HTML" in a...
2
by: Alex | last post by:
On my page I have a lot string like this: <span onmouseover="callMe(this)" onmouseout="callMe(null)" >abc1</span> <span onmouseover="callMe(this)" onmouseout="callMe(null)" >abc2</span> <span...
2
by: Mitch | last post by:
I am hosting a web browser ctl in a container that implements the IDocHostUIHandler interface. I'm using this to control the context menu.This works fine. Then, I added a mouseover event to the...
3
by: Annette Acquaire | last post by:
I have and image map with a dozen hotspot links on it that I'm trying to get to open a new image over existing one on mouseover of each COORD. The only thing I was able to do was swap image on...
23
by: Schannah | last post by:
I'm trying to create a design which mimics the Radiohead website in the action on this page, but the problem is that they use PHP for the effect and I have no idea about PHP. I'm very amateur: fairly...
1
by: dave345 | last post by:
This javascript issue is in an app using C# / .Net 2.0 running on XP. First post, please mention if I mess up any conventions of this forum. I’ve got a mouseover event that only works properly...
2
by: markszlazak | last post by:
I'm a relatively slow response of table cells changing their background color with mouseover/our in IE6 (Win 2K) but the response is fine (fast) in Firefox. Why? The code is below. Sorry about the...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.