Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XSL equivalent to $
Message
De
08/01/2005 21:59:43
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
00975238
Message ID:
00975472
Vues:
13
Dave,

Instead of referencing the cFilter JavaScript var in the filter expression, how about building up the filter expression with concatenation, inserting the value of cFilter into the string between quotes? (I don't know if it has to be single or double quotes around the value, so you might have to do some fancy footwork.

IOW, does this work?
filterBy.value = "VFPData/dbservers[contains( servname, 'PROD')]";
If so, maybe the problem is that the JavaScript var is out of scope and can't be seen in the XSL transform.... Just thinking out loud...


>
>It's a parameter (a string) sent to the javascript function.
>
>
>function FilterData( cFilter )
>{
>filterBy.value = 'VFPData/dbservers[contains( servname, $cFilter )]';
>PopulateDocument();
>}
>
>
>it's called from inside the page:
>
>$cFilter throws the same error.
>
>
><a href="javascript:FilterData('prod')">filter</a>
>
>
>>
VFPData/dbservers[contains( servname, cFilter )]
>>
>>Is cFilter an xsl Variable or Param ? If so should be: $cFilter
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform