vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Replacement Reset Button Problem (https://vborg.vbsupport.ru/showthread.php?t=40046)

culprit 06-19-2002 09:37 AM

Replacement Reset Button Problem
 
I've made a new buton set for my vbulletin and extended it to include various form buttons throughout the forum, just to keep the look flowing.

While replacing submit buttons works fine, when I replace any type of reset button the button then submits the form instead of clearing the form fields. I'm using standard HTML conventions for the replacement but with no joy.

I'd also like to replace the 'Change Avatar' button but can't se how to make that work as its button type needs to be 'file' and cannot be change to image. Any ideas on that one?

Anyway here is the code for an example reset button:

Original:
<input type="reset" class="bginput" name="Reset" value="Reset Fields">

Image Replacement:
<input type="image" src="{imagesfolder}/resetfields.gif" name="Reset" value="Reset">

Any help greatly appreciated. Cheers.

Admin 06-19-2002 10:19 AM

You can add this:
Code:

onClick="FORMNAME.reset();"
To the image-button, but it won't work because the FORMNAME needs to be adjusted to each form in vBulletin.
Maybe you can use this though, I'm not sure...

plattopus 06-19-2002 10:24 AM

The type="reset" is the key part of the tag, and when you replace it with "image" I don't think it's possible to still have it reset.

culprit 06-19-2002 11:00 AM

The onClick action doesn't work, unfortunately. The form is still submitted but I get a 404 error. But you expected that.

Plattopus maybe right.

It looks like it can't be done :(

This is a real pity. It prevents creating a complete style for full integration.

Nevermind, I can dream can't I?

Thanks for the speedy responses.


All times are GMT. The time now is 01:41 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00966 seconds
  • Memory Usage 1,710KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete