Can someone please help me with this script

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.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Feb 9th, 2006, 09:22
New Member
Join Date: Feb 2006
Location: Hertfordshire
Age: 24
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Feb 9th, 2006, 22:49
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,192
Blog Entries: 7
Thanks: 27
Thanked 23 Times in 20 Posts
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!!
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Feb 10th, 2006, 09:15
New Member
Join Date: Feb 2006
Location: Hertfordshire
Age: 24
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
someone, help, script

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with this script korvix JavaScript Forum 1 May 28th, 2008 23:00
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


All times are GMT. The time now is 17:42.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42