473,396 Members | 1,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

submit form when mouseover

I have a page with image, image has some image map, I want to submit
form when user mouseover that image map, my code is like this:
<img src="Images/floor4.jpg"usemap="#planetmap" id="IMG1">
<map id="planetmap" name="planetmap">

<area id=f4 shape="circle" coords="65, 93, 11" alt="CF4588"
onmouseover=overf4()>
And I write sub overf4() in vb script

sub overf4()
document.frmSelect.submit()
end sub

when mouse over that point form submit several times until mouse in on
the point I want to sumbit iust one time
can u help me?

Dec 13 '05 #1
6 1903

<ni******@yahoo.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
I have a page with image, image has some image map, I want to submit
form when user mouseover that image map, my code is like this:
<img src="Images/floor4.jpg"usemap="#planetmap" id="IMG1">
<map id="planetmap" name="planetmap">

<area id=f4 shape="circle" coords="65, 93, 11" alt="CF4588"
onmouseover=overf4()>
And I write sub overf4() in vb script

sub overf4()
document.frmSelect.submit()
end sub

when mouse over that point form submit several times until mouse in on
the point I want to sumbit iust one time
can u help me?


a.) This is a client-side script question, not an ASP question.
b.) Why do you want to submit a form without the user's knowledge?
c.) Why, in the name of all things large and small, would you ever use
VBScript on the client side from within an HTML document?

If you are writing malware, merely because you were assigned to a
malintended project, you need to do this: Just Say NO! Jobs are cheap. If
you lack ethics, you are worthless. If you compromise your ethics for mere
money, it's almost the same as having none -- actually, it's worse, because
it implies you know right from wrong, but choose to ignore it.

Now please tell us -- and don't lie, because we'll know -- what good,
useful, ethical purpose might there be for submitting a form in onmouseover?
-Mark
Dec 14 '05 #2
I don't know what you mean if you can't understand the code and you
can't answer please just say NO... why you try to say story!!!!

Dec 14 '05 #3
Basically he meant "what are you trying to do" ? Most often it's better to
have the whole picture...

Submitting is perhaps not the better solution. If you just need some
information from a DB, it would be likely better to just embed the needed
information in the page so that you can just display this when the mouse is
over a partiuclar shape...

--
Patrice

<ni******@yahoo.com> a écrit dans le message de
news:11**********************@o13g2000cwo.googlegr oups.com...
I don't know what you mean if you can't understand the code and you
can't answer please just say NO... why you try to say story!!!!

Dec 14 '05 #4
> Now please tell us -- and don't lie, because we'll know -- what good,
useful, ethical purpose might there be for submitting a form in onmouseover?


I'm totally racking my brain trying to think of one good application to
submit a form on a mouse over, and can't think of one instance where it
would be beneficial in a legit app.

Dec 14 '05 #5
Larry Bud wrote:
Now please tell us -- and don't lie, because we'll know -- what good,
useful, ethical purpose might there be for submitting a form in
onmouseover?


I'm totally racking my brain trying to think of one good application
to submit a form on a mouse over, and can't think of one instance
where it would be beneficial in a legit app.

Well, how about a site like www.netflix.com, where hovering the mouse over a
movie title causes a popup containing information about that movie to
appear. However, that's probably done via xmlhttp, so it's not really what
you are talking about.

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Dec 14 '05 #6

"Larry Bud" <la**********@yahoo.com> wrote in message
news:11*********************@g49g2000cwa.googlegro ups.com...
Now please tell us -- and don't lie, because we'll know -- what good,
useful, ethical purpose might there be for submitting a form in
onmouseover?


I'm totally racking my brain trying to think of one good application to
submit a form on a mouse over, and can't think of one instance where it
would be beneficial in a legit app.


Exactly, me either... a hostile response from the OP doesn't make it seem
less suspicious either...

Damned if *I* will assist in the writing of malware!

-Mark
Dec 16 '05 #7

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

Similar topics

15
by: M Smith | last post by:
I have a form I want to submit to itself. I want to be able to type in a list of numbers and submit the form and have that list show up on the same form under the text box I typed them into and...
6
by: CJM | last post by:
Can somebody clarify if/how/when a simple form is submitted when the <Enter> key is pressed? As I understood it, if you have a form with a single submit button, if enter is pressed, the form...
13
by: cookie monster | last post by:
I'm seeing some odd behavior related to CSS and a form, and I'm wondering if anyone has seen this before and whether they might have a solution. I have a small form that is displayed inside a...
6
by: Tom | last post by:
Hi, In the following code I have reproduced a problem in IE that is extremely annoying for my application. <html> <head> <script type="text/javascript">
1
by: nikou_70 | last post by:
I have a page with image, image has some image map, I want to submit form when user mouseover that image map, my code is like this: <img src="Images/floor4.jpg"usemap="#planetmap" id="IMG1">...
5
by: Navillus | last post by:
Hey gang, I have a login form that is empty by default, but can be filled with values from a previous form: <input type=text maxlength="40" size="40" name="user" value="`usr`"> <input...
6
by: spdas | last post by:
Aloha, I would like to show one field (textbox), that represents an inventory item and have 200-300 of these fields on a page. 1: I want to stay in the form format and not report as I want to...
2
by: mattgarvin | last post by:
Hello, I need a piece of javascript that will allow a form to be submitted when Enter is pressed for IE6 and 7, Firefox 2, and recent versions of Safari. It is for a login page that has two...
1
by: gbezas | last post by:
Hi All, I have added an event handler to redirect form.submit() to a newSubmit() method that I have defined (which does some additional processing before submitting the form). Additionally I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
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...

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.