[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Frames, Forms, & Core Dumps



I tried your code and it works fine for me.  I'm using 2.0 under Windows 95.
I tried to think of what might be in your code that Netscape under Unix
doesn't like, and can't remember seeing a specific bug report about this.
Have you tried it with just the button and list in one document (i.e. no
frames)?  If so, does it crash then, too?

- Gordon

At 10:05 AM 2/29/96 -0700, you wrote:
>The first time I load start.html and press the 'Show City Code' button on the
>bottom frame everything works fine.  If I reload the bottom frame from the
>Netscape View menu and then click on the 'Show City Code' button (In the real
>app, I'll be switching between several versions of the bottom frame), Netscape
>core dumps.  I'm running the X-Windows (HPUX) version of 2.0.  Has anybody seen
>this, or does anybody have any suggestions?
>
>Thanks
>
>::::::::::::::
>start.html
>::::::::::::::
><TITLE>Frame Test</TITLE>
><FRAMESET ROWS=250,*>
><FRAME
>  SRC=top.html
>  NAME=topFrame>
><FRAME
>  SRC=bottom.html
>  NAME=bottomFrame>
></FRAMESET> 
>::::::::::::::
>top.html
>::::::::::::::
><HTML>
><BODY>
><H1>City List</H1>
><HR>
><FORM NAME="CityNames">
><STRONG>City: </STRONG>
><SELECT NAME="city">
><OPTION VALUE="jgl" SELECTED> Atlanta, GA
><OPTION VALUE="cgs"> Baltimore, MD
><OPTION VALUE="cef"> Boston, MA
><OPTION VALUE="dal"> Dallas, TX
></SELECT>
></FORM>
></BODY>
></HTML>
>::::::::::::::
>bottom.html
>::::::::::::::
><HTML>
><HEAD>
><SCRIPT LANGUAGE="JavaScript">
>function GetCity() {
>  cityList=parent.frames['topFrame'].document.CityNames.city
>  cityIndex=cityList.selectedIndex
>  cityCode=cityList.options[cityIndex].value
>  alert(cityCode)
>  }
></SCRIPT>
></HEAD>
><BODY>
><FORM
>  NAME="CityInfo">
><INPUT TYPE="button" VALUE="Show City Code" onClick="GetCity()">
></FORM>
></BODY>
></HTML>
>
>-- 
>Tom Russell
>Senior Programmer Analyst
>FedEx - Customer Contact Systems
>5450 Tech Center Dr.
>Colorado Springs, CO  80919
>(719) 528-4324, (719) 590-1044 Fax
>RUSSELL/THOMAS (EMC2)
>tmrussel@fedex.com (Internet)

--------------------------------------------------------------------
This message came from the mailing list javascript. For help using the
mailing list software, please send a message to 'majordomo@obscure.org'
with the message body 'help'. To unsubscribe, send a message to
'majordomo@obscure.org' with the message body 'unsubscribe javascript'.