473,770 Members | 6,515 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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"usem ap="#planetmap " id="IMG1">
<map id="planetmap" name="planetmap ">

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

sub overf4()
document.frmSel ect.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 1922

<ni******@yahoo .com> wrote in message
news:11******** *************@o 13g2000cwo.goog legroups.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"usem ap="#planetmap " id="IMG1">
<map id="planetmap" name="planetmap ">

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

sub overf4()
document.frmSel ect.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.goo glegroups.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**********@y ahoo.com> wrote in message
news:11******** *************@g 49g2000cwa.goog legroups.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
6579
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 the buttons. The problem is when I post a form to itself, the Enter key will not submit the form, it only clears the contents of the text box. The only way I can submit is to click the submit button. Here is a simplified version of my code that I...
6
3106
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 should be submitted as if the button is pressed. Is this correct? Does this behaviour vary across browsers? Chris
13
13058
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 table cell. The tags are nested like this: <form><td> ... form elements etc... </td></form> There are no CSS styles applied to the body, table, table row, form,
6
5333
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
2746
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"> <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
5
17713
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 type=password maxlength="8" name="password" value="`pss`"> where usr and pss are sent from the previous form.
6
1378
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 use mouseovers 2: Each Textbox would be one large inventory item and I will be adding or subtracting daily and would like to arrange them on a form or map. 3: I have done this before but with stationary inventory and it was a
2
11770
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 textboxes: a "Login" and a "Password". The "Login Button" is actually a standard image with an onClick event handler to submit the form, because we use a mouseover effect. (That is, it is not INPUT TYPE="IMAGE" but rather an IMAGE tag with...
1
10826
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 have defined the relavant function method in the code for details) The issue is that when Icall targetForm._submit() method from the newSubmit() function the page I get an 'Object doesn't support this property or method' error I am using IE...
0
9592
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10058
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10004
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8886
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6678
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5313
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5450
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3576
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2817
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.