homepage Welcome to WebmasterWorld Guest from 54.211.7.174
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Form Image no submit?
HeadBut




msg:3069598
 4:20 am on Sep 2, 2006 (gmt 0)

How do you get an image in a form to respond to a mouseclick and NOT Submit? I don't want it to do anything but the AJAX stuff.

<Form id="DTF" onSubmit="GetN(this.form.id);return false;">
<INPUT Type="image" id="DT" value="DT=123" src="/images/MenuItemButton.php?AnyText=123" width="64" height="64" onclick="GetN(this.form.id);return false;"></form>

Thanks AGAIN!
M

 

daveVk




msg:3069696
 7:35 am on Sep 2, 2006 (gmt 0)

Replace

<INPUT Type="image" id="DT" value="DT=123" src="/images/MenuItemButton.php?AnyText=123" width="64" height="64" onclick="GetN(this.form.id);return false;">

with

<img src="/images/MenuItemButton.php?AnyText=123" width="64" height="64" onclick="GetN('DT');" />

maybe, is there a need to enclose it withim a form?

HeadBut




msg:3069817
 11:47 am on Sep 2, 2006 (gmt 0)

Yes, I am using other form items in the AJAX POST

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved