Re: parameter passed to javascript in a xsl

2009-07-24 Thread Frank Hamilton
Yes, I think that the best is define de var inside funtion. In this javascript I do same ajax request and maybe this change the value of variable. Gracias Thor. Vamos a tomar la cervecita ya, que hace muxa calo!!! -- View this message in context: http://www.nabble.com/parameter-passed-to-javas

Re: parameter passed to javascript in a xsl

2009-07-24 Thread Thorsten Scherler
On Fri, 2009-07-24 at 05:14 -0700, Frank Hamilton wrote: > > > Thorsten Scherler-3 wrote: > > > > > > > > Do the following: > > > > alert('XSL:ROOT es : '); > > var root2=''; > > alert('root2 es :' +root2); > > alert('XSL:ROOT es : '); > > var root=''; > > alert('root es :' +root); > > > >

Re: parameter passed to javascript in a xsl

2009-07-24 Thread Frank Hamilton
Thorsten Scherler-3 wrote: > > > > Do the following: > > alert('XSL:ROOT es : '); > var root2=''; > alert('root2 es :' +root2); > alert('XSL:ROOT es : '); > var root=''; > alert('root es :' +root); > > SALU2 > > With this code always the alert show 'pub-id/area' , even the root variab

Re: parameter passed to javascript in a xsl

2009-07-24 Thread Thorsten Scherler
On Fri, 2009-07-24 at 04:46 -0700, Frank Hamilton wrote: > > > Thorsten Scherler-3 wrote: > > > > > > Hmm, I have to admit I did not understand. As I understand the above > > code the 2 alerts should be always the same, right? > > > > Both should show the same alert, but not so. > > I try d

Re: parameter passed to javascript in a xsl

2009-07-24 Thread Frank Hamilton
Thorsten Scherler-3 wrote: > > > Hmm, I have to admit I did not understand. As I understand the above > code the 2 alerts should be always the same, right? > Both should show the same alert, but not so. I try do that, and this is the result, root es : /pub-id/area/ , root2 es: pub-id/are

Re: parameter passed to javascript in a xsl

2009-07-24 Thread Thorsten Scherler
On Fri, 2009-07-24 at 03:15 -0700, Frank Hamilton wrote: > Hi, > > I am trying to passed a parameter into a javascript variable inside a xsl > file. > > in my xsl file I do that: > > > > > > > Then in the javascript inside xsl : > >