submit form when mouseover

N

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?
 
M

Mark J. McGinty

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
 
N

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!!!!
 
P

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...
 
L

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.
 
B

Bob Barrows [MVP]

Larry said:
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
 
M

Mark J. McGinty

Larry Bud said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,077
Latest member
SangMoor21

Latest Threads

Top