Re: Wrox - Beginning PHP4 Ch12 example problem

From: Date: Wed, 18 Apr 2001 12:14:30 +0000
Subject: Re: Wrox - Beginning PHP4 Ch12 example problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-49196@lists.php.net to get a copy of this message
Replying to myself...the first sign of madness. I found the solution, which was hidden characters in the text file, which was confusing javascript. ""Dave Mateer"" <dave@interlynx.co.uk> wrote in message news:9bf1v5$4iq$1@toye.p.sourceforge.net... > Happy Easter to all! > > In the user viewer example at the end of Chapter 12 - has anyone had > problems with the source downloaded from their website? > > The story so far with my trials of this example: > > downloaded source > created table in mysql and populated it (with the SQL script provided) > > First page ie function list_records() works 'fine'. Except a javascript > error at the foot of the page - page done, with errors. Sorting hyperlinks > all work, as does all the forward, reverse paging. > > What doesn't work is the function view_record() hyperlinks. > > I believe things are going awry in javascript (of which I know nothing, and > have the dummies guide in front of me) as it doesn't get to opening a new > window. > > I've tried calling the function as follows: > > <a href="javascript:open_window('www.google.com');">Google</a> > > No joy at all - javascript error. > > <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> > <!-- > function open_window(url) { > var NEW_WIN = null; > NEW_WIN = window.open ("", "RecordViewer", > "toolbar=no,width="+ > <?php echo $new_win_width ?>+ > ",height="+<?php echo $new_win_height?>+ > ",directories=no,status=no, > scrollbars=yes,resize=no,menubar=no"); > NEW_WIN.location.href = url; > } > //--> > </SCRIPT> > > Any help greatly received. Grrrrrrr I'm trying to learn php, not hack > javascript... > > > David Mateer. > dave@interlynx.co.uk > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#49196) next »