Alaska Software Inc. - Firefox Question
Username: Password:
AuthorTopic: Firefox Question
Bruce AndersonFirefox Question
on Mon, 19 Sep 2005 17:36:56 -0500
Sander Elias Re: Firefox Question
on Tue, 20 Sep 2005 08:48:46 +0200
Hi Bruce,

This, is because off the way forms are handled in IE. (not following
the official specification. In my eyes the form also should also not
run on IE.
the problem is in the way you define the submit.

you should do 2 thing to make it more robust. if you follow the
changes I give you it will run in any browser.

first change add an ID to the form like:
        <form name="f6a" Iid='f6a' ....>
(replace the ... with the rest off your parameters

then change your link to this:
      <a href="javascriptdocument.getElementById('f6a').submit();">

There are more ways to resolve this but this is one off the more
robust ways.

regards
Sander Elias
Regards
Sander Elias
Bruce AndersonRe: Firefox Question
on Tue, 20 Sep 2005 18:39:48 -0500
Sander Elias Re: Firefox Question
on Wed, 21 Sep 2005 08:56:03 +0200
Bruce,
>The non-working feature is a popup calendar that I use to fill in a date field.  This code works in IE6, but fails in FireFox with "opener.fS has no properties".
><form name="fS"
>   id="fS"
>   action="/cgi-bin/waa1gate.isa"
>   method=POST>
>   
>   <input type="text" 
>          name="m_DATE_BEGIN" >
>   <input type="image" 
>          src="calendar.gif" 
>          onclick="javascript:window.open('calendar_begin.htm');">
>
>calendar_begin.htm has the function popUpCalendar that uses the "opener" property to link back to the input in the original window.
>   popUpCalendar(this, opener.fS.m_DATE_BEGIN, 'm/d/yyyy')
>1)  What is the proper way to refer back to the variable in popUpCalendar()?
my guess would be that the opener property is IE only. Howver I know
that there is a way to do the same in FF, but I have to look into
that! No time now, but I will look at it this evening (it's 08:30
around here now!)


>2)  I haven't been able to learn if inputs use the id attribute, as in <input type="text" name="MY_VAR" id="myvar">.  If so, does nesting occur and to refer to this variable, would this be the syntax: document.getElementById("fS").getElementById("myvar").value 
No, no nesting. just use document.getElementById('myvar') 
BTW you can use the same identifier for name and id!
like: <input type="text" name="myvar" id="myvar">
this is valid syntax, and save's you some confusion!

regards
Sander Elias
Regards
Sander Elias
Phil Ide
Re: Firefox Question
on Tue, 20 Sep 2005 09:44:53 +0100
Bruce,

>          </form><a href="javascript:f6b.submit();">Carrier Settlement</a>

<a href="javascript:document.f6b.submit();">Carrier Settlement</a>

Regards,

Phil Ide

*******************************************
*   Xbase++ FAQ, Libraries and Sources:   *
*   goto: http://www.idep.org.uk/xbase    *
* --------------------------------------- *
* www.xodc.org.uk - openSource Dev-Center *
*******************************************

Born to be Wiiiillllllddddddddddd