Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
|
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 19th, 2005, 05:39 AM
Authorized User
 
Join Date: Sep 2004
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default Firefox Problem - submit form

Hi,

I'm using asp to log in users to my intranet.

problem is this code doesn't seem to work in firefox, can anybody help?

<cfset add = Replace(#session.address#, "&", "!", "ALL")>

<form action="../../../adminASP/adminGet.asp" name="addform" method="post">
<input type="hidden" name="addy" value="<cfoutput>#add#</cfoutput>">
</form>

<script language="javascript">
document.addform.submit();
</script>

 
Old July 19th, 2005, 05:43 AM
Authorized User
 
Join Date: Jul 2005
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to prophet Send a message via MSN to prophet
Default

Don't know much CFML myself. Whats the HTML output look like of that script?

 
Old July 19th, 2005, 05:47 AM
Authorized User
 
Join Date: Sep 2004
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for your reply, I can take that out and it still doesnt work:


<form action="http://www.bbc.co.uk" name="addform" method="post" >
</form>

<script language="javascript">
document.addform.submit();
</script>

 
Old July 19th, 2005, 06:53 AM
Authorized User
 
Join Date: Jul 2005
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to prophet Send a message via MSN to prophet
Default

Just tried that code in IE and Firefox. Seems to work okay to me.

 
Old July 19th, 2005, 07:30 AM
Authorized User
 
Join Date: Sep 2004
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default

When I use the Javascript console in Firefox, it says document.addform has no properties.






Similar Threads
Thread Thread Starter Forum Replies Last Post
WebRequest/WebResponse form submit problem. HELP! MAtkins ASP.NET 1.0 and 1.1 Professional 2 December 23rd, 2010 12:28 AM
Submit form and validation ind IE 6.0 and Firefox Leholt Classic ASP Basics 2 February 2nd, 2008 11:48 AM
form submit problem alexscan Beginning PHP 0 January 1st, 2008 08:37 PM
Form Submit Problem. muklee Javascript 7 May 27th, 2007 10:06 PM
form submit problem dhaywirex Javascript How-To 2 March 29th, 2004 05:27 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.