Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
| Search | Today's Posts | Mark Forums Read
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 23rd, 2004, 10:58 AM
Registered User
Join Date: Jan 2004
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Tricky Javascript/XSL '&' problem......

Hi Guys,

having a problem, would appreciate some help !

I am passing some params to a Javascript function, one of which is some free text for a title on part of the web page's header.

However, the page is actually rendered via XSL and when I want to pass in a '&' as part of the free text, it's not happy at all....

Here's the function (Free text being passed is Fish & Chips...)

'50350119,50671442,54149957,55028517','showimage,F ish & Chips,header,footer||Test text at the top of page');

Is there any way around this? Or will I have to use 'and'

I have tried & with no success....

Cheers in advance !


Old January 23rd, 2004, 02:11 PM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts

A compliant parser will take care of this for you, how are you processing the text?

Joe (MVP - xml)

Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript in Xsl using-Xalan-Problem angeshwar XSLT 1 May 7th, 2008 12:36 AM
XSL & JavaScript Ryan Moore XSLT 1 October 9th, 2007 01:36 PM
xsl javascript problem smi13y XSLT 1 December 26th, 2006 07:27 PM
Problem with JavaScript in XSL viachi XSLT 3 August 30th, 2004 09:12 AM
Tricky Javascript/XSL issue...Hmmmm robster XSLT 1 January 23rd, 2004 11:28 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.