something I noticed a while back is that Netscape requires the HTML comment
symbols between the script tags like so:

<SCRIPT LANGUAGE="JavaScript">
<!--

//-->
</SCRIPT>

I doubt if this is your problem, but I know that in slightly earlier
versions their absence would give JS errors even though the JS would still
execute.

+-----------------------------------------------+
Bryan Love
  Macromedia Certified Professional
  Internet Application Developer
  Database Analyst
TeleCommunication Systems
[EMAIL PROTECTED]
+-----------------------------------------------+

"...'If there must be trouble, let it be in my day, that my child may have
peace'..."
        - Thomas Paine, The American Crisis

"Let's Roll"
        - Todd Beamer, Flight 93



-----Original Message-----
From: Les Mizzell [mailto:lesmizz@;bellsouth.net]
Sent: Wednesday, October 30, 2002 12:44 PM
To: CF-Talk
Subject: Self submitting Corm inside <CFIF> question...(More JavaScript
than CF)


Have a small form problem I need some assistance with....

I have a form that needs to submit itself with no user interaction (it's on
a "processing" page that the user never sees that passes variables off to
Verisign for a product payment).  There are actually 4 forms, but each is
contained inside a Cold Fusion "if" statement to determine which one, and
only one, gets submitted

Abbreviated code below. There's 4 of these blocks on the page:

<cfif url.ID eq "1year">
      <form name="cart" method="POST"
action="https://payflowlink.verisign.com/payflowlink.cfm";>
        ....form variables and such here....
       </form>

      <script type="text/javascript">document.cart.submit()</script>
</cfif>

This automatically submits the form without having to push a "submit" button
or anything.... It's working great in I.E.

Bombs in Netscape 7.

These don't work either....

<script type="text/javascript">document.forms[0].submit()"</script>
<script type="text/javascript">document.forms['cart'].submit()"</script>


What do I need to do differently to get this to function in both?


Thanks...


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Reply via email to