Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > BOOK: Beginning JavaScript 2nd Edition
|
BOOK: Beginning JavaScript 2nd Edition For questions about Beginning Javascript 2nd Edition by Paul Wilton. (ISBN: 0-7645-5587-1). Published April 2004. For Javascript questions not specific to this book, please see the Javascript forum. If you have the 1st edition, please continue to use that forum instead at: http://p2p.wrox.com/forum.asp?FORUM_ID=21
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning JavaScript 2nd Edition 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 February 10th, 2007, 10:08 AM
Authorized User
 
Join Date: May 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Reversing the Order of Text (Try it out pg 292)

When I run code for this try it out in Moz and FF it doesn't reverse the line order, works fine in IE7. I get no messages in the Java Error Console.
I figure there is browser specific script in the example. Can anyone point me to it?

---
Lie to yourself
and get everyone to agree
__________________
---
Lie to yourself
and get everyone to agree
 
Old February 10th, 2007, 10:08 PM
Authorized User
 
Join Date: May 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well I figured it out after reading the book some more. Seems that '\r\n\' is for end of line in IE, netscape browers use just '\n'. Changed the code and it works fine.

---
Lie to yourself
and get everyone to agree





Similar Threads
Thread Thread Starter Forum Replies Last Post
Reversing nodeset sudhish.sikhamani XSLT 3 June 19th, 2008 11:43 AM
How to import a text file w/t changing row order lxj034000 SQL Server 2000 1 July 12th, 2007 07:04 AM
Optional Reversing An Array (pgs. 133 to 134) TekWarrior BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 1 February 24th, 2007 02:57 PM
writing text file but in an order specifed... stone XSLT 2 October 27th, 2005 05:17 AM
document node order vs sort node order. ladyslipper98201 XSLT 2 June 5th, 2003 11:06 AM





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