Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Fw: Java script and XSLT -- Revised


Message #1 by "G.Taylor" <gtaylor@O...> on Mon, 21 May 2001 12:29:45 +0200
----- Original Message -----
From: "G.Taylor" <gtaylor@O...>
To: "javascript" <javascript@p...>
Sent: Monday, May 21, 2001 11:44 AM
Subject: [javascript] Java script and XSLT


> 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:
>

Sorry, the origional was incorrect...here is the revised bit of my code....

> function PassThru
>
lectObject){ 
>          if (selSelectObject.options[selSelectObject.selectedIndex].value != "")
>          {
>            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