Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Java script and XSLT


Message #1 by "G.Taylor" <gtaylor@O...> on Mon, 21 May 2001 11:44:31 +0200
Hi,

I've got a bit of a problem and wondering if you guys may be able to help.

I'm doing an XSLT conversion, but when I try and run my js stuff in it it
whines: "options is not an object"

Here is the source:

function PassThru
lSelectObject){ 
         if (selSelectObject.options[selSelectObject.selectedIndex].value != "")
         {
           location.href="location.href=selSelectObject.options[selSelectObject.selectedIndex].value")
        }
}


is the subroutine, and then below is within the xsl match

 <TD HEIGHT="40" nowrap="nowrap" WIDTH="300"><FONT SIZE="1">
                   <SELECT NAME="selDate" onChange="{js:PassThru(this)}" cols="20" id="selDate" >
                     <option value="January" target="self" selected="selected">January</option>
                     <option value="February" target="self">February</option>
                    </SELECT>               
              </FONT></TD>


Any help would be greatly appreciated

 TIA
--
Guy Taylor
Software Engineer
OrbitalM.......www.orbitalm.com
083 357 34 38
--
"Do you believe in God?"
"Well SOMEONES's out to get me"
      -- Calvin and Hobbes
--




  Return to Index