This is a discussion on Linking a button to pre-set sized popup window within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hi! I'm trying to link a button to a pre-determined popup window size. My code is : <td class="main"><?php echo ...
| |||||||
| Register | FAQ | Donate | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi! I'm trying to link a button to a pre-determined popup window size. My code is : <td class="main"><?php echo '<a href="SizeChart" TARGET="new" onClick="window.open('http://www.aphroditescloset.ca/SizeChart.html','new','width=900,height=525'); return false">;' . tep_image_button('button_sizechart.gif', IMAGE_BUTTON_sizechart) . '</a>'</td> I'm receiving error: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/aphrod6/public_html/catalog/templates/fallback/content/product_info.tpl.php on line 202 I cannot seem to figure out where this error is. The link works fine, but when I add the pre-set sizes, the error occurs. If anybody can spot the error, it would be greatly appreciated! Thanks Sarah |
|
#2
| ||||
| ||||
| Possably : HTML Code: 'width=900,height=525' HTML Code: 'width=900','height=525' You should use the html or php tags to display code.
__________________ JPF - osCMax Fourm Moderator - To contact, post on the forum or click here Try out our osCMax at: Live Catalog Demo Limited access Admin: Live Admin Demo Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped! |
|
#3
| |||
| |||
| Hi. That didn't fix the problem either. I'm not sure what you mean by html or php tags to display the code. I'm pretty new to html & php and have been getting by on searching help forums & learning a bit of html through google searches, so i'm not familiar at all with some of the lingo. Could you please enlighten me by what you mean? Thanks & Sorry to be a bother. |
|
#4
| ||||
| ||||
| is standard quoting on many bulletin boards... Using the advance editor in our board - just click on the icon of # for code, <> for html and 'php' for well php code or to manually add in ---see: BB Code List PHP Code: PHP Code:
__________________ JPF - osCMax Fourm Moderator - To contact, post on the forum or click here Try out our osCMax at: Live Catalog Demo Limited access Admin: Live Admin Demo Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped! |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Auto-sized image PopUp in Products Info Page | michael_s | New osCommerce Contributions | 0 | 05-11-2009 12:00 AM |
| Problem with the popup window | carlossilva | Introduce yourself! | 4 | 03-02-2008 01:13 AM |
| Auto-sized image PopUp in Products Info Page | michael_s | New osCommerce Contributions | 0 | 02-06-2008 04:52 PM |
| Auto-sized image PopUp in Products Info Page | michael_s | New osCommerce Contributions | 0 | 02-05-2008 03:31 PM |
| Anyway to get a popup window from FCK editor?? | Redeye_Joe | osCMax v2 Features Discussion | 1 | 03-07-2006 12:00 PM |