Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Using VBScript within JavaScript function?

 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,

I have been developing web pages using JSP and do most of the validations through JSP.I have been using confirm box to get input from user, before branching based on the user's imput.

We got a request that the User want to see YES NO instead of OK CANCEL. I was making a search in the web, but could not find any real solutiion to this. I found VBScript, has a work-around ( havent tried though) but it supports explorer only. If i can get VBScript working, is that okay to use that in JSP ?

Replies appreciated

[ November 03, 2004: Message edited by: Mohen Vijay ]
[ November 03, 2004: Message edited by: Bear Bibeault ]
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Recall that JSP just writes a HTML page - it does not care what kind of scripting language you write into that page since scripts will be executed on the browser side. As far as JSP is concerned, it is just text.
Bill
 
Vicky Mohan
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your reply. Let me explain my requirement fully. I havent used VBScript at all. so bear with my dumb questions.

Right now, i do some validations for my JSP in JavaScript. Then i raise a confirm Box ( using Javascript). Since Confirm Box does not has YES NO in it, i was looking into alternate options when i came across the VBScript.

Now, if i want to use the VBScript in my JSP ( i will have all the Java Script validations still in place), what should i do and how should i implement ??

Any suggesion will be welcome..
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
VB Script is only going to work with IE!
 
Sheriff
Posts: 67637
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There's really no JSP component to this topic so I'm moving it along to the HTML/Javascript forum.
 
Crusading Chameleon likes the size of this ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic