0 Replies Latest reply on Dec 11, 2007 1:16 PM by chirangeevi

    GotoFrame not working in Firefox2.0

    chirangeevi
      Hello

      This is my program.


      <SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
      <!--

      function window_onload() {
      if(window.paycheck)
      {
      window.document[paycheck].SetVariable("DetailLinesNumber","13")
      window.document[paycheck].SetVariable("DirectDepAcctsNumber","")
      window.document[paycheck].SetVariable("company_name","ON DEMAND MANUFACTURING COMPANY")
      window.document[paycheck].SetVariable("company_address","4250 NORTH MARINE DRIVE")
      window.document[paycheck].SetVariable("company_city","CHICAGO,")
      window.document[paycheck].SetVariable("company_state","IL")
      window.document[paycheck].SetVariable("company_zip","60007")
      window.document[paycheck].SetVariable("check_number","1336")
      window.document[paycheck].SetVariable("check_date","10/27/2007")
      window.document[paycheck].SetVariable("amount","840.63")
      window.document[paycheck].SetVariable("check_message","THIS MESSAGE CAN PRINT FOR EACH DEPARTMENT")
      window.document[paycheck].SetVariable("name","MIKE1 DITKA")
      window.document[paycheck].SetVariable("name_stab","MIKE1 DITKA")
      window.document[paycheck].GotoFrame(2 )
      window.document[paycheck].SetVariable('DetailLine1.description','REGULAR')
      window.document[paycheck].SetVariable('DetailLine1.ytd_hours','0.00')
      window.document[paycheck].SetVariable('DetailLine1.ytd_amount','29,920.00')
      window.document[paycheck].SetVariable('DetailLine1.hours','0.00')
      window.document[paycheck].SetVariable('DetailLine1.amount','0.00')

      }
      if(document.paycheck)
      {
      document.paycheck.SetVariable("DetailLinesNumber", "13")
      document.paycheck.SetVariable("DirectDepAcctsNumbe r","")
      document.paycheck.SetVariable("company_name","ON DEMAND MANUFACTURING COMPANY")
      document.paycheck.SetVariable("company_address","4 250 NORTH MARINE DRIVE")
      document.paycheck.SetVariable("company_city","CHIC AGO,")
      document.paycheck.SetVariable("company_state","IL" )
      document.paycheck.SetVariable("company_zip","60007 ")
      document.paycheck.SetVariable("check_number","1336 ")
      document.paycheck.SetVariable("check_date","10/27/2007")
      document.paycheck.SetVariable("amount","840.63")
      document.paycheck.SetVariable("check_message","THI S MESSAGE CAN PRINT FOR EACH DEPARTMENT")
      document.paycheck.SetVariable("name","MIKE1 DITKA")
      document.paycheck.SetVariable("name_stab","MIKE1 DITKA")
      document.paycheck.GotoFrame(2 )
      document.paycheck.SetVariable('DetailLine1.descrip tion','REGULAR')
      document.paycheck.SetVariable('DetailLine1.ytd_hou rs','0.00')
      document.paycheck.SetVariable('DetailLine1.ytd_amo unt','29,920.00')
      document.paycheck.SetVariable('DetailLine1.hours', '0.00')
      document.paycheck.SetVariable('DetailLine1.amount' ,'0.00')


      }




      }

      //-->
      </SCRIPT>
      <TITLE>Paycheck</TITLE>
      </HEAD>
      <BODY bgcolor="#00CCFF" bottommargin="0" leftmargin="0" rightmargin="0" topmargin="0" LANGUAGE=javascript onload="return window_onload()">
      <div align=center>
      <FORM action="" method=POST id=form1 name=form1>
      <TABLE WIDTH=750 BORDER=0 CELLSPACING=0 CELLPADDING=2 align=left>
      <TR>
      <TD width=750 align=center><OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
      codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
      WIDTH=750 HEIGHT=570 id=paycheck>
      <PARAM NAME=movie VALUE="paycheck.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="paycheck.swf" quality=high bgcolor=#FFFFFF WIDTH=755 HEIGHT=570 TYPE="application/x-shockwave-flash" PLUGINSPAGE=" http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" NAME="paycheck"></EMBED>
      </OBJECT>
      </TD>
      </TR>

      </TABLE>

      </FORM>
      </div>
      </BODY>
      </HTML>


      first frame prints fine, but it moves to second frame values prints in IE but not in Firefox.

      can you please tell me the problem.

      Thanks in advance