Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Can VBScript and Javascript be used on sa
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Can VBScript and Javascript be used on sa

 Post Reply Post Reply
Author
Julianne View Drop Down
Newbie
Newbie


Joined: 26 March 2003
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Julianne Quote  Post ReplyReply Direct Link To This Post Topic: Can VBScript and Javascript be used on sa
    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/.

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.

Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 07 May 2003 at 10:36am
Have you tried just changing the language to VBscript, some scripts will work in both.
Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Julianne View Drop Down
Newbie
Newbie


Joined: 26 March 2003
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Julianne Quote  Post ReplyReply Direct Link To This Post 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!)

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.