This is a discussion on "Can someone please help me with this script" within the Classic ASP section. This forum, and the thread "Can someone please help me with this script are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Can someone please help me with this script
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Can someone please help me with this script
I have a search site script and i want the results to display in a new page. Do i have to change displayResults(); to something else?? At the moment the results are displaying on the same page. Here is the code i have at the moment:
<%@Language=JavaScript%> <!--#include file="ass-engine.asp" --> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>ASPSimpleSearch</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="cache-control" content="no-cache"> <meta name="document-state" content="dynamic"> <meta name="robots" content="none"> <!-- --> <!--#include file="ass-client-side.js.asp" --> <link rel="stylesheet" type="text/css" href="ass-style.css"> </head> <body> <form action="search.asp" method="get" onSubmit="return isSearchTermValid( this );"> <input type="text" name="searchTerm" size="25" maxlength="35" value="<%=gobj_searchTerm.outputSafeTerm%>"> <input type="submit" name="Submit" value="Search"> </form> <% //This function displays any error messages that occur. writeMsg(); //This function displays the results //Place this where ever you would like the results to be displayed. displayResults(); %> </body> </html> Kind Regards |
|
|
|
||||
|
Re: Can someone please help me with this script
change this:-
<form action="search.asp" method="get" onSubmit="return isSearchTermValid( this );"> to this:- <form target="_blank" action="search.asp" method="get" onSubmit="return isSearchTermValid( this );"> Enjoy!!
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|||
|
Re: Can someone please help me with this script
This is good, but is there a way of making the results appear within another page on my site i.e searchresults.asp
I want this so i can keep a search field at the top of every page on my site, so users can search when they want. I have set the action <form action="searchresults.asp" method="get" onSubmit="return isSearchTermValid( this );"> But the results don't appear on searchresults.asp Can someone please help Kind Regards |
![]() |
| Tags |
| someone, help, script |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need help with this script | korvix | JavaScript Forum | 1 | May 28th, 2008 23:00 |
| Just following the script... | chrisomatix | Introduce Yourself | 3 | Feb 27th, 2008 07:03 |
| i need help with a FMS script | taietel | Flash & Multimedia Forum | 1 | Apr 6th, 2007 14:56 |
| Asp script | tolis | Classic ASP | 0 | Feb 3rd, 2007 13:28 |
| Changes to CSS script | Accurax | Web Page Design | 6 | Dec 17th, 2006 16:36 |