Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Frames Problem


admin321

Recommended Posts

I have created a framed site... But I cant work out how to target the search submit button (/includes/boxes/search.php).

So the search is located in the left frame and I want the results to appear in the main frame.

 

Normally you would add at the end of anchor the code...

 

target="mainFrame"

 

But this does not apply to this form.

 

I have played with

/includes/boxes/search.php

and

/includes/functions/html_output.php

 

Please anybody Helppppppp.

Link to comment
Share on other sites

  • 2 weeks later...

Out of interest as I did work out the problem and made the search results apear in another frame.

 

<?php

$info_box_contents = array();

$info_box_contents[] = array('text' => BOX_HEADING_SEARCH);

 

new infoBoxHeading($info_box_contents, false, false);

 

$info_box_contents = array();

$info_box_contents[] = array('form' => tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get', 'target="mainFrame"'),

'align' => 'center',

'text' => tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px"') . ' ' . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . '<br>' . BOX_SEARCH_TEXT . '<br><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '</a>');

 

new infoBox($info_box_contents);

?>

 

If you are having this problem as well go to /includes/boxes/search.php

and find line 23 that says...

 

$info_box_contents[] = array('form' => tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'),

 

Replace that line with...

 

$info_box_contents[] = array('form' => tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get', 'target="mainFrame"'),

 

I used "mainFrame" you need to change the frame name to what ever yours is.

Hope this some use to somebody

Duncan.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...