|
it
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
submit form when mouseover
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? <nikou***@yahoo.com> wrote in message
Show quote news:1134513683.788260.15780@o13g2000cwo.googlegroups.com... a.) This is a client-side script question, not an ASP question.>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? 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 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!!!! 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... -- Show quotePatrice <nikou***@yahoo.com> a écrit dans le message de 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!!!! > > Now please tell us -- and don't lie, because we'll know -- what good, I'm totally racking my brain trying to think of one good application to> useful, ethical purpose might there be for submitting a form in onmouseover? submit a form on a mouse over, and can't think of one instance where it would be beneficial in a legit app. Larry Bud wrote:
>> Now please tell us -- and don't lie, because we'll know -- what good, Well, how about a site like www.netflix.com, where hovering the mouse over a>> 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. 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. "Larry Bud" <larrybud2***@yahoo.com> wrote in message Exactly, me either... a hostile response from the OP doesn't make it seem 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. less suspicious either... Damned if *I* will assist in the writing of malware! -Mark |
|||||||||||||||||||||||