vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Submit a Form? Can't anyone do this?? (https://vborg.vbsupport.ru/showthread.php?t=136827)

KenDude 01-18-2007 03:26 AM

Submit a Form? Can't anyone do this??
 
I have an html page at http://www.caymanclub.net/vin_decoder.htm that I would like to "incorporate" into my site instead of just having it as a stand-alone page. My first thought was to try and add it as a page or a template. Whenever I do either the form displays but when a user puts in data and presses the submit button it just returns back to the page showing a blank form again, not the form results.

The page listed above is done in javascript and you can see the full script or copy the whole page and try it on your own server. There is "something" about vbulletin that is keeping this from working but I don't know what it is. :( I have to believe someone has run into a problem like this before but despite searching this forum and vbadvanced.com's forum I cannot locate an answer to the problem.

BTW the link above works but this link (a template) does not:

http://www.caymanclub.net/?page=vin

Again, any ideas why?

noppid 01-18-2007 12:25 PM

The vBA page is registered members only. The first .htm works.

KenDude 01-18-2007 12:56 PM

Yes I know the first .htm works, that's the problem, why doesn't the vBA page template work as well? I have changed the permissions so that unregistered people can now view that page. Please try again. :)

noppid 01-18-2007 01:17 PM

If I had to guess, it appears that on the htm page, the JS can grab and process the data because there is only one form. On the vBA page, maybe you need to specifically call the JS function on POST rather then leave the action= blank?

KenDude 01-18-2007 01:25 PM

noppid,
Can you tell me how to do that? ;) I'm not good with JS syntax. :)

BTW I did try pasting the call to the js function in the action= line and this is what I got, a 404 error with the following: The requested URL /decodeVIN(entry,'mainbut'); return false was not found on this server. So it tried to load a page, not execute that specific JS function which means I have something wrong in the syntax I guess??


All times are GMT. The time now is 07:14 PM.

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.01101 seconds
  • Memory Usage 1,717KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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