0 Replies - 643 Views - Last Post: 24 February 2010 - 09:10 PM

#1 supertime2000   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 24-February 10

About incorporating a javascript search widget working in php site fil

Posted 24 February 2010 - 09:10 PM

I have a search_result.php (attached herewith) at http://supertime2000.phpnet.us. and this is how it is queried from a search container in the homepage:


<div class="search_container">
<TABLE cellSpacing="0" cellPadding="0" border="0">
<TBODY><TR>
<TD width="20"><IMG height="34" src="<?php echo $GLOBALS['base'];?>images/bg_search_left.png" width="20" /></TD>
<TD class="search_box"><STRONG>search:</STRONG>&nbsp;</TD>
<TD class="search_box"><INPUT name="" value="" id="Tmp_Keywords" />&nbsp;</TD>
<TD class="search_box"><A href="#">
<IMG height="22" alt="GO!" id="btnSearch" onclick="javascript:search_result(0, document.getElementById('Tmp_Keywords').value)" src="<?php echo $GLOBALS['base'];?>images/button_go.png" width="36" border="0" /></A>
</TD>
<TD width="20"><IMG height="34" src="<?php echo $GLOBALS['base'];?>images/bg_search_right.png" width="20" /></TD>
</TR></TBODY>
</TABLE>
<script type="text/javascript">
document.getElementById("Tmp_Keywords").onkeydown = function(e)
{
if (!e)
e = event;
if (e.keyCode == 13)
document.getElementById("btnSearch").onclick();
}
</script>
</div>


Now, I wish to query this search_result.php from a html file at http://supertime2000.com. How will the javascript call code be?

Attached File(s)



Is This A Good Question/Topic? 0
  • +

Page 1 of 1