RE: [PHP] php - javascript together prob?

2003-07-09 Thread Jennifer Goodie
Since you had problems with quotes yesterday too, I would suggest reading
the manual page on strings so you do not continue to have the same problems
day after day.

http://www.php.net/manual/en/language.types.string.php


 -Original Message-
 From: Micah Montoy [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 09, 2003 2:51 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] php - javascript together prob?


 Anyone have an idea of how to get this to work?  Its the onClick part that
 wont work.  I know if I pull it out of PHP it works just fine but
 I need it
 part of the script as I have a loop that it runs under.

 echo (td width=50%a href='' onClick='javascript:window.open
 (v_images/dsp_img_viewer.php?$image_loc, imageView, height=350,width=450,
 toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no,
 directories=no,status=no);');

 I considered and tried sending it to a js function but it doesn't like not
 having the  but I need the quotes in the echo statement to read in the
 variables passed to it.

 thanks


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php - javascript together prob?

2003-07-09 Thread Ray Hunter
U need to quote it with double quotes and escape them with like so:

\

that should work for you. If not then you will need to start separating
the string out and joining it with the . .

--
BigDog



On Wed, 2003-07-09 at 15:51, Micah Montoy wrote:
 Anyone have an idea of how to get this to work?  Its the onClick part that
 wont work.  I know if I pull it out of PHP it works just fine but I need it
 part of the script as I have a loop that it runs under.
 
 echo (td width=50%a href='' onClick='javascript:window.open
 (v_images/dsp_img_viewer.php?$image_loc, imageView, height=350,width=450,
 toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no,
 directories=no,status=no);');
 
 I considered and tried sending it to a js function but it doesn't like not
 having the  but I need the quotes in the echo statement to read in the
 variables passed to it.
 
 thanks
 
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php