Re: Pop up window in PHP code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



PHP neither supports nor fails to support JS.

PHP just spits out something for the browser.

Use "View Source" in the browser and see what you've done.

Fix the PHP until you get what you want in the "View Source" to make
the JS work.

On Sat, February 3, 2007 2:44 pm, Chris Carter wrote:
>
> I am trying to open a Java script pop up widow from within the php
> code. Not
> able to get it done, the error I think is in the use of "" '' .. I
> mean
> double and/or single quote. Do not know how to place those. Please
> advice.
> The code is below:
>
> echo "
> <tr>
> <td>$shopname </td>
> <td>$category </td>
> <td>$subcategory </td>
> <td>$level </td>
> <td> javascript:poptastic( Details </td>
> </tr>";
> $i++;
>
> The Javascript code is:
>
> <script language="javascript">
> var newwindow;
> function poptastic(url)
> {
> 	newwindow=window.open(url,'name','height=490,width=900,left=150,top=175');
> 	if (window.focus) {newwindow.focus()}
> }
> </script>
>
> The javascript code works perfect with other pages and within HTML,
> its just
> that the PHP is not supporting the quotes and double quotes. I have
> even
> tried &rsquo &rdquo and all.
>
> Thanks in advance
> --
> View this message in context:
> http://www.nabble.com/Pop-up-window-in-PHP-code-tf3167481.html#a8786668
> Sent from the PHP - General mailing list archive at Nabble.com.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux