Home All Groups Group Topic Archive Search About

submit form when mouseover



Author
13 Dec 2005 10:41 PM
nikou_70
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?

Author
14 Dec 2005 4:09 AM
Mark J. McGinty
<nikou***@yahoo.com> wrote in message
Show quote
news:1134513683.788260.15780@o13g2000cwo.googlegroups.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
Author
14 Dec 2005 5:01 PM
nikou_70
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!!!!
Author
14 Dec 2005 5:39 PM
Patrice
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

<nikou***@yahoo.com> a écrit dans le message de
Show quote
news:1134579683.565629.142250@o13g2000cwo.googlegroups.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!!!!
>
Author
14 Dec 2005 6:59 PM
Larry Bud
> 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.
Author
14 Dec 2005 8:09 PM
Bob Barrows [MVP]
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.
Author
16 Dec 2005 10:41 PM
Mark J. McGinty
"Larry Bud" <larrybud2***@yahoo.com> wrote in message
news:1134586744.438504.71600@g49g2000cwa.googlegroups.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

AddThis Social Bookmark Button