Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
Password Reminder
| FAQ | Members List | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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 !


Reply With Quote
  #2 (permalink)  
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)
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 09:18 AM.

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