Guest Posted July 10, 2005 Share Posted July 10, 2005 Can someone help me out. On my advanced search page I am getting an error when clicking on the search help link to pop up the box. It reads at the bottom "done, but with errors on the page"? and the search pop up box won't work. Link to comment Share on other sites More sharing options...
OceanRanch Posted July 10, 2005 Share Posted July 10, 2005 Your advanced_search.php file has the javascript for the popupWindow function munged up. function popupWindow(url) { window.open(url,'popupWindow',& #39;toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,re sizable=yes,copyhistory=no,width=450,height=280,screenX=150,screenY=150,top=150, left=150') } The window.open should be in one continous line with no new lines. function popupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,re sizable=yes,copyhistory=no,width=450,height=280,screenX=150,screenY=150,top=150,l eft=150') } HTH Tom Link to comment Share on other sites More sharing options...
Guest Posted July 10, 2005 Share Posted July 10, 2005 This is my advanced search file i don't see anything wrong with it? <?php/* $Id: advanced_search.php,v 1.50 2003/06/05 23:25:46 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright ? 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ADVANCED_SEARCH); $breadcrumb->add(NAvb script:popupWindow(\'' . tep_href_link(FILENAME_POPUP_SEARCH_HELP) . '\')">' . TEXT_SEARCH_HELP_LINK . '</a>'; ?></td> ? ? ? ? ? <td class="smallText" align="right"><?php echo tep_image_submit('button_search.gif', IMAGE_BUTTON_SEARCH); ?></td> ? ? ? ? </tr> ? ? ? </table></td> ? ? </tr> ? ? <tr> ? ? ? <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> ? ? </tr> ? ? <tr> ? ? ? <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> ? ? ? ? <tr class="infoBoxContents"> ? ? ? ? ? <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> ? ? ? ? ? ? <tr> ? ? ? ? ? ? ? <td class="fieldKey"><?php echo ENTRY_CATEGORIES; ?></td> ? ? ? ? ? ? ? <td class="fieldValue"><?php echo tep_draw_pull_down_menu('categories_id', tep_get_categories(array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES)))); ?></td> ? ? ? ? ? ? </tr> ? ? ? ? ? ? <tr> ? ? ? ? ? ? ? <td class="fieldKey"> </td> ? ? ? ? ? ? ? <td class="smallText"><?php echo tep_draw_checkbox_field('inc_subcat', '1', true) . ' ' . ENTRY_INCLUDE_SUBCATEGORIES; ?></td> ? ? ? ? ? ? </tr> ? ? ? ? ? ? <tr> ? ? ? ? ? ? ? <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> ? ? ? ? ? ? </tr> ? ? ? ? ? ? <tr> ? ? ? ? ? ? ? <td class="fieldKey"><?php echo ENTRY_MANUFACTURERS; ?></td> ? ? ? ? ? ? ? <td class="fieldValue"><?php echo tep_draw_pull_down_menu('manufacturers_id', tep_get_manufacturers(array(array('id' => '', 'text' => TEXT_ALL_MANUFACTURERS)))); ?></td> ? ? ? ? ? ? </tr> ? ? ? ? ? ? <tr> ? ? ? ? ? ? ? <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> ? ? ? ? ? ? </tr> ? ? ? ? ? ? <tr> ? ? ? ? ? ? ? <td class="fieldKey"><?php echo ENTRY_PRICE_FROM; ?></td> ? ? ? ? ? ? ? <td class="fieldValue"><?php echo tep_draw_input_field('pfrom'); ?></td> ? ? ? ? ? ? </tr> ? ? ? ? ? ? <tr> ? ? ? ? ? ? ? <td class="fieldKey"><?php echo ENTRY_PRICE_TO; ?></td> ? ? ? ? ? ? ? <td class="fieldValue"><?php echo tep_draw_input_field('pto'); ?></td> ? ? ? ? ? ? </tr> ? ? ? ? ? ? <tr> ? ? ? ? ? ? ? <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> ? ? ? ? ? ? </tr> ? ? ? ? ? ? <tr> ? ? ? ? ? ? ? <td class="fieldKey"><?php echo ENTRY_DATE_FROM; ?></td> ? ? ? ? ? ? ? <td class="fieldValue"><?php echo tep_draw_input_field('dfrom', DOB_FORMAT_STRING, 'onFocus="RemoveFormatString(this, \'' . DOB_FORMAT_STRING . '\')"'); ?></td> ? ? ? ? ? ? </tr> ? ? ? ? ? ? <tr> ? ? ? ? ? ? ? <td class="fieldKey"><?php echo ENTRY_DATE_TO; ?></td> ? ? ? ? ? ? ? <td class="fieldValue"><?php echo tep_draw_input_field('dto', DOB_FORMAT_STRING, 'onFocus="RemoveFormatString(this, \'' . DOB_FORMAT_STRING . '\')"'); ?></td> ? ? ? ? ? ? </tr> ? ? ? ? ? </table></td> ? ? ? ? </tr> ? ? ? </table></td> ? ? </tr> ? </table></form></td> <!-- body_text_eof //--> ? <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="1"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> ? </table></td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Link to comment Share on other sites More sharing options...
Guest Posted July 10, 2005 Share Posted July 10, 2005 This is my advanced search file i don't see anything wrong with it? <{POST_SNAPBACK}> this bit function popupWindow(url) { window.open(url,'popupWindow',& #39;toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,re sizable=yes,copyhistory=no,width=450,height=280,screenX=150,screenY=150,top=150, left=150') } are those carriage returns at the end of 're' and after top=150, OceanRanch would have gone to your web page and viewed the source, try it yourself. Why do people not believe us when we tell them things? :( Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.