Print Page | Close Window

Can VBScript and Javascript be used on sa

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=2443
Printed Date: 29 March 2026 at 2:58pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Can VBScript and Javascript be used on sa
Posted By: Julianne
Subject: Can VBScript and Javascript be used on sa
Date Posted: 05 May 2003 at 1:55pm

My ASP pages have scripts in them that are written in vbscript. I've finally found an ASP-based site search that I can get working and which does exactly what I want it to, but it's apparently written in Javascript!

I've tried everything I can think of but just can't work out how I can incorporate the search box into an existing page. It works fine on its own page, but not if I try to put the form/include files etc into my homepage, for example.

The script is at http://www.blursoftware.com/ASPSimpleSearch/ - http://www.blursoftware.com/ASPSimpleSearch/ .

I'd be really grateful if someone could tell me how I can get the script to work within my existing pages, or if there's a workaround that I can use.

Just in case you're wondering, I did try the site search script from Web Wiz on my site but for some reason the results it showed didn't tally with the number of results it said it found! I did post about this problem but no-one answered.

Many thanks.




Replies:
Posted By: Mart
Date Posted: 07 May 2003 at 10:36am
Have you tried just changing the language to VBscript, some scripts will work in both.


Posted By: MorningZ
Date Posted: 07 May 2003 at 11:22am

Where do you think/read-into "its apparently written in Javascript" ?

its an ASP based solution using FileSystemObject, the only JavaScript is, according to the manual:

ass-client-side.js.asp - This contains the client-side JavaScript error
      checking. It is auto populated with some ASP
      variables, which is why it has an ASP
      extension.

and looking inside the file, all it is doing is validating what the user enters in the search box......



-------------
Contribute to the working anarchy we fondly call the Internet


Posted By: Julianne
Date Posted: 07 May 2003 at 12:11pm

To be honest, I've no real idea. I must've got the wrong end of the stick but I'm sure I read it somewhere, maybe on the bigcoatposse site that blursoftware links to (can't check as the site is down at the moment).

Anyway, it turns out that I was making life more complicated for myself than I needed to . I incorporated the form into my page but removed the 'value="<%=gobj_searchTerm.outputSafeTerm%>"' from the the input tag for the text field.

Voila, no error messages and the search works perfectly without it (which leads me to wonder what the value="<%=gobj_searchTerm.outputSafeTerm%>" is for!)




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net