|
Subject: [xsl] Re: xml and javascript From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx> Date: Thu, 14 Feb 2002 08:54:37 +0000 |
Hi Stevenson,
> i have this javascript:
>
> if( document.FilterForm.Search.value != "" )
> {
> iSearch = document.FilterForm.Search.value;
> sFilterString = sFilterString + "[" +
> "contains(Description, iSearch)" + "]"
> alert( iSearch )
> }
>
> what am trying to do is pass the value of iSearch in to my contains
> function but doesn't seem to pick it up. What could be the problem?
You're currently adding the string "[contains(Description, iSearch)]"
to your sFilterString rather than inserting the value of the iSearch
variable. You need:
sFilterString = sFilterString + "[" + "contains(Description, " +
iSearch + ")" + "]"
I hope that fixes it,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] How to get the preceding-, Joerg Pietschmann | Thread | [xsl] alternate row color in a tabl, Sébastien Tisserant |
| Re: [xsl] Brackets in XPATHS, Jeni Tennison | Date | Re: [xsl] how to transform one doc , Jeni Tennison |
| Month |