MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: Problems with IE 4 not behaving with JavaScript



******    message to minivend-users from Barry Treahy <treahy@mmaz.com>     ******

Hey all, I've nailed down the probem, but still don't know hot to fix it... The mv_click
is not being defined on the <INPUT> button tag when IE uses the submit() call....
Doesn't matter how, when where or why the submit() call is invoked, same problem.

How can I define mv_click as a static value for the entire page?

Barry

Ryan Hertz wrote:

> ******    message to minivend-users from Ryan Hertz <rhertz@gyb.baits.com>     ******
>
> At 02:13 PM 3/8/99 , Barry Treahy wrote:
> >******    message to minivend-users from Barry Treahy <treahy@mmaz.com>
>  ******
> >
> >This is a strange one and I'm sure it goes back to the fact that MS does
> >support JavaScript like Netscape does.
>
>         You ain't just whistlin' dixie.
>
> >
> >This works fine on NS, but on IE it does not.  Here is the snippet of
> >HTML and then I'll explain:
> >
> ><FORM ACTION="[process-target]" METHOD="POST">
> >    <P>Hi [value b_name]! You are logged in as user <B>[value
> >mv_username]</B>.
> >    <INPUT TYPE="submit" NAME="mv_click" VALUE="Proceed"> to our
> >ordering system.</P>
> ><SCRIPT LANGUAGE="JavaScript">
> ><!--
> >  setTimeout("document.forms[0].submit();", 1000);
> >// -->
> ></SCRIPT>
> ></FORM>
> >
> >In a nutshell, after logging in, this page is hit.  If the login failed,
> >it displays a different section of bounces the user back to try again.
> >If it succeeds, this form is present to welcome the person and then
> >forward on into the order entry system.  The JS timeout is set to move
> >them on automatically after a brief moment if they do yout press the
> >PROCEED button.  In Netscape, the submit is handled by MV just as if the
> >button were clicked.  In IE, MV reports:
> >
> >dell400.mmaz.com YYWKwddI:mmaz.com - [08/March/1999:15:56:39 +0000]
> >midwest-mi /cgi-bin/midwest-mi/process Difficulty interacting with
> >browser: No action passed from form
> >
> >which is common when the form and MV variables are not setup correctly
> >yet if the button is clicked before the timeout, it works fine, so I
> >know it has to get back to the fact that MS Jscript is different than
> >Netscape's JavaScript.
> >
> >Any script experts out there that have a clue on how to get this to
> >behave?
>
>         I'd look into using
> <meta http-equiv="refresh"
> content="120;url=Javascript:document.forms[0].submit();">
>         I'm fairly sure that's the method for calling javascript as a URL, I may
> be wrong, doublecheck.
>
>         Another possible solution, is declaring the script language's version.
> Example, <SCRIPT LANGUAGE="JavaScript1.2">  You may be dealing with an
> older MSIE and newer javascript code.  You could potentially run into
> browsers that will ignore the code.
>
>         Another (possible) solution is to put the code in the <BODY>'s Onload.
> Example: <BODY BGCOLOR="black" TEXT="#000000"
> Onload="setTimeout("document.forms[0].submit();", 1000);">
>
>         And, even further, you could use Javascript that works for MSIE with a
> conditional to test for the browser type.  Here's a snippet sent to me
> From: Hans-Joachim Leidinger <hans-joachim.leidinger@home.gelsen-net.de>
>
> <QUOTE>
>         [if session browser =~ /Mozilla/]
> [then]
>         [if session browser =~ /MSIE/]
> <---            browser is ...: MSIE
> Here any code especial for MSIE
> -->
>         [else]
> <---            browser is ...: NS
> Here any code especial for NS
> -->
>         [/else]
>         [/if]
> [/then]
> [else]
> <---
>             browser is ...: unknown
> -->
> [/else]
> [/if]
>
> </QUOTE>
>
> Ryan Hertz                                              tel  520-645-3812
> Webmaster                                               tel  800-645-BAIT
> Advertising Director                                    fax  520-645-2588
> Gary Yamamoto Custom Baits, Inc.            http://www.yamamoto.baits.com
> -
> To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
> email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
> Archive of past messages: http://www.minivend.com/minivend/minivend-list



-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: