akmiecik Posted October 22, 2008 Share Posted October 22, 2008 I have duplicated and modified: index.php, includes/column_left.php and ../boxes/search.php so that I have a nice set of files what will enable me to embed the osCommerce search into my companies main html page. see: www.alank.net/~tcdepot/test.php I have "Advanced Search" set up to that it opens a new window (i.e. figured out where to put taget="_blank") I need help to figure out where to put something like target="_blank" so that the quick find opens a new window too. ps. I am using iframe to stick in on the homepage of www.tcdepot.com THANKS! Link to comment Share on other sites More sharing options...
sLaV- Posted October 22, 2008 Share Posted October 22, 2008 just add an onclick event handler that will open up a new window Link to comment Share on other sites More sharing options...
akmiecik Posted October 23, 2008 Author Share Posted October 23, 2008 just add an onclick event handler that will open up a new window Any examples and where does it go (i.e. main page, or in one of the three php pages being used)? Link to comment Share on other sites More sharing options...
sLaV- Posted October 23, 2008 Share Posted October 23, 2008 Any examples and where does it go (i.e. main page, or in one of the three php pages being used)? Better yet ... add the target="_blank" tag in your form <form name="quick_find" action="http://www.alank.net/~tcdepot/advanced_search_result.php" method="get" target="_blank"> Link to comment Share on other sites More sharing options...
akmiecik Posted October 23, 2008 Author Share Posted October 23, 2008 Better yet ... add the target="_blank" tag in your form <form name="quick_find" action="http://www.alank.net/~tcdepot/advanced_search_result.php" method="get" target="_blank"> This is starting to make sense. Can I add something to this line: tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'), in the ../boxes/search.php in Link to comment Share on other sites More sharing options...
sLaV- Posted October 23, 2008 Share Posted October 23, 2008 This is starting to make sense. Can I add something to this line: tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'), in the ../boxes/search.php in Yes if you want to add target="_blank" in that code ... use: tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get', 'target="_blank"'); Link to comment Share on other sites More sharing options...
akmiecik Posted October 23, 2008 Author Share Posted October 23, 2008 Yes if you want to add target="_blank" in that code ... use: tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get', 'target="_blank"'); Success. Thank you for the help. I put: <form name="quick_find" action="http://www.alank.net/~tcdepot/advanced_search_result.php" method="get" target="_blank"> <input style="WIDTH: 100px; HEIGHT: 25px" maxlength="1024" size="48" name="keywords"> <input type="submit" value="Search"> </form> On the index.html page where I want the search to go (www.tcdepot.com) and it works. That means I am not using the php files mentioned in the original post. Ends up a nice way to put a product search to the osCommerce site on an intro HTML page. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.