1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

live search box reloads my page!

Discussion in 'Windows Server System' started by etanner, 2008/11/04.

  1. 2008/11/04
    etanner

    etanner Inactive Thread Starter

    Joined:
    2008/11/04
    Messages:
    8
    Likes Received:
    0
    Hi there - my second post. Doing some web design. Can see on www2.jetstarinc.com
    On the footer, have an MSN search box. Found code online - included here. but when I click 'search' it reloads my web page, instead of opening in a NEW window and searching msn live!?!? Any ideas? Thanks - Evannator

    <form method= "get" action= "http://search.live.com/results.aspx ">
    <input type= "hidden" name= "cp" value= "CODE PAGE USED BY YOUR HTML PAGE "/>
    <input type= "hidden" name= "FORM" value= "FREEWS "/><table bgcolor= "#FFFFFF "><tr><td>
    <a href= "http://search.live.com/ "><img src= "http://search.live.com/s/affillogoLive.gif" border= "0" ALT= "Live Search "/>
    </a></td><td><input type= "text" name= "q" size= "30" /><input type= "submit" value= "Search Web "/>
    </td></tr></table></form><!-- Web Search from Live Search -->
     
  2. 2008/11/05
    Arie

    Arie Administrator Administrator Staff

    Joined:
    2001/12/27
    Messages:
    15,174
    Likes Received:
    412
    Change

    <form method= "get" action= "http://search.live.com/results.aspx ">

    to

    <form method= "get" action= "http://search.live.com/results.aspx" target= "_blank ">

    Also check http://search.live.com/siteowner with also includes the Microsoft Search Box Service Terms of Use.
     
    Arie,
    #2

  3. to hide this advert.

  4. 2008/11/05
    etanner

    etanner Inactive Thread Starter

    Joined:
    2008/11/04
    Messages:
    8
    Likes Received:
    0
    Search the web reloads the page

    Where to put the target= "_blank" is very helpful. Thanks! But the search web button still does a page reload instead of passing those search terms into the 'engine'. Same thing happened using other search boxes. Do you have it working using that code or something else?
    Thanks in advance, E
     
  5. 2008/11/05
    Arie

    Arie Administrator Administrator Staff

    Joined:
    2001/12/27
    Messages:
    15,174
    Likes Received:
    412
    Arie,
    #4
  6. 2008/11/05
    ReggieB

    ReggieB Inactive Alumni

    Joined:
    2004/05/12
    Messages:
    2,786
    Likes Received:
    2
    Worth bearing this in mind:
    This is the Microsoft site (same as Arie pointed you at)
     
  7. 2008/11/05
    etanner

    etanner Inactive Thread Starter

    Joined:
    2008/11/04
    Messages:
    8
    Likes Received:
    0
    live search does a page reload

    Thanks for the update - sorry for not putting my code there, but rather the one from the same website you direct to. Here is my code.
    <tr><td><!-- Web search from Live Search-->
    <form method= "get" action= "http://search.live.com/results.aspx" target= "_blank ">
    <input type= "hidden" name= "cp" value= "1252 "/>
    <input type= "hidden" name= "FORM" value= "FREEWS "/><table bgcolor= "#FFFFFF "><tr><td>
    <a href= "http://search.live.com/" target= "_blank "><img src= "http://search.live.com/s/affillogoLive.gif" border= "0" alt= "Live Search "/>
    </a></td><td><input type= "text" name= "q" size= "30" /><input type= "submit" value= "Search Web "/>
    </td></tr></table></form><!-- Web Search from Live Search -->

    Does it work fine for you guys? Or do you have page reload?
     
  8. 2008/11/06
    Arie

    Arie Administrator Administrator Staff

    Joined:
    2001/12/27
    Messages:
    15,174
    Likes Received:
    412
    There's no search box on www2.jetstarinc.com, and your code won't work on WindowsBBS.com
     
    Arie,
    #7
  9. 2008/11/06
    etanner

    etanner Inactive Thread Starter

    Joined:
    2008/11/04
    Messages:
    8
    Likes Received:
    0
    Arie, Thanks for taking a look. Its not on the home page but its on all the sub pages of www2.jetstarinc.com. The code is in the footer of the sub page master page file. Please peek again and tell me what you think. Regards! Evannator
     
  10. 2008/11/07
    etanner

    etanner Inactive Thread Starter

    Joined:
    2008/11/04
    Messages:
    8
    Likes Received:
    0
    Hi there- I got this solved. I didn't have a closing form tag in the content section of my master page. Once I closed the previous form tag, the msn live search code worked great! Thanks for your help! Until next time! Evannator
     
  11. 2008/11/07
    Arie

    Arie Administrator Administrator Staff

    Joined:
    2001/12/27
    Messages:
    15,174
    Likes Received:
    412

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.