Scripts
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb Site ManagementScripts

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 28th, 2004, 01:59 PM
danskapia danskapia is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 13 danskapia User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 32 m 52 sec
Reputation Power: 0
Mozilla form submit problem

I have a problem,

I am trying to use the following vbscript to automatically submit a form. It works in IE but not in Mozilla. Does anyone have any suggestions on how to make this work?

<form name="frmUserCode" id="frmUserCode" method="POST" action="http://www.mysite.com/login.asp">
<input type="hidden" name="UCD" id="UCD" value="<% =str_UserCode % ">
</form>

<script type="text/vbscript" language="vbscript">
<!--
Document.GetElementByID("frmUserCode").Submit()
-->
</script>

Reply With Quote
  #2  
Old October 28th, 2004, 02:38 PM
jharnois's Avatar
jharnois jharnois is offline
mod_dev_shed
Dev Shed God 20th Plane (14500 - 14999 posts)
 
Join Date: Sep 2002
Location: Atlanta, GA
Posts: 14,817 jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 4 Days 7 h 14 m 56 sec
Reputation Power: 1098
Hmm, vbscript in anything other than IE probably won't work. Why not just use JavaScript?
__________________
# Jeremy

Explain your problem instead of asking how to do what you decided was the solution.

Reply With Quote
  #3  
Old October 28th, 2004, 03:08 PM
danskapia danskapia is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 13 danskapia User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 32 m 52 sec
Reputation Power: 0
Quote:
Originally Posted by jharnois
Hmm, vbscript in anything other than IE probably won't work. Why not just use JavaScript?


I just got finished trying a javascript version of this and it behaved the same as with vbscript. Worked great in IE and didn't using Mozilla firefox.

I'm stumped! Any other suggestions.

Reply With Quote
  #4  
Old October 28th, 2004, 05:01 PM
danskapia danskapia is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 13 danskapia User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 32 m 52 sec
Reputation Power: 0
Oh the joys of free enterprise with no standards...

I found the problem;

S vs. s in submit. Submit (bad). submit (good) in Mozilla firefox.

S vs. s in submit. Submit (good). submit (good) in IE.

Reply With Quote
  #5  
Old July 28th, 2009, 12:28 PM
assafbiton assafbiton is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2009
Posts: 1 assafbiton User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 40 sec
Reputation Power: 0
you can try this

document.frmSearch.submit();

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb Site ManagementScripts > Mozilla form submit problem

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap