Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 replacing post buttons with images ; strange prob.

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
MarcelG Posted - 09 February 2006 : 16:25:36
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... <
3   L A T E S T    R E P L I E S    (Newest First)
Ranko Posted - 10 February 2006 : 09:52:15
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()"><
MarcelG Posted - 10 February 2006 : 03:56:19
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.<
Bassman Posted - 09 February 2006 : 16:35:19
Sounds alot like my problem, Shaggy give this code:

http://forum.snitz.com/forum/topic.asp?TOPIC_ID=60133<

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000 Version 3.4.07