Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 replacing post buttons with images ; strange prob.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 09 February 2006 :  16:25:36  Show Profile  Visit MarcelG's Homepage  Reply with Quote
I've been trying to replace the post buttons ('post new topic' and 'preview') by images.
(example) http://www.scoutingkeentmoesel.nl/topic.asp?TOPIC_ID=2111
and http://www.scoutingkeentmoesel.nl/post.asp

Here's the HTML source that's used to generate the image-buttons:
<input name="Submit" src="images/plaatsbericht.gif" align="absmiddle" type="image">&nbsp;
<input src="images/voorbeeld.gif" align="absmiddle" type="image" name="Preview" type="button" value="preview" onclick="OpenPreview()">


Here's the original HTML code:
<input class="gmlBtn2" name="Submit" type="submit" value="Post!">&nbsp;
<input class="gmlBtn2" name="Preview" type="button" value="preview" onclick="OpenPreview()">

The problem is that when someone clicks on 'Preview' the topic gets posted.....and the preview gets loaded...
The same happens on the edit-profile page ; if one clicks on the 'view signature' button, the profile gets updated....

HTML is not my best part, I knew that already, but this one is really boggling me... <

portfolio - linkshrinker - oxle - twitter

Edited by - MarcelG on 09 February 2006 16:29:22

Bassman
Junior Member

Netherlands
256 Posts

Posted - 09 February 2006 :  16:35:19  Show Profile  Visit Bassman's Homepage  Reply with Quote
Sounds alot like my problem, Shaggy give this code:

http://forum.snitz.com/forum/topic.asp?TOPIC_ID=60133<
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 10 February 2006 :  03:56:19  Show Profile  Visit MarcelG's Homepage  Reply with Quote
Thanks!!! (funny to see it's causing problems at two dutch scouting websites! )
So, I've changed the preview button to this:
"<a href=""pop_preview.asp"" onclick=""OpenPreview();return false;""><img src=""images/voorbeeld.gif"" align=""absmiddle""/></a>"

It works as a charm.<

portfolio - linkshrinker - oxle - twitter

Edited by - MarcelG on 10 February 2006 04:10:08
Go to Top of Page

Ranko
Junior Member

400 Posts

Posted - 10 February 2006 :  09:52:15  Show Profile  Reply with Quote
This is the code you are looking for; you can't have two types in a tag

<input name="Submit" src="images/plaatsbericht.gif" align="absmiddle" type="image" /> 
<input src="images/voorbeeld.gif" type="image" name="Preview" value="preview" onclick="OpenPreview()"><
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.15 seconds. Powered By: Snitz Forums 2000 Version 3.4.07