Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XSL equivalent to $
Message
From
08/01/2005 21:59:43
 
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00975238
Message ID:
00975472
Views:
12
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform