473,480 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Insert vbscript in Java ?

How would I use a vbscript variable sMyPath into a Java function, I have
tried numerous ways but it dalls over.
Works ok with hard paths

function preloadImages() {
if (document.images) {
Menu2_02_over = newImage("images/Menu2_02-over.jpg");
Menu2_04_over = newImage("images/Menu2_04-over.jpg");
Menu2_05_Menu2_04_over = newImage("images/Menu2_05-Menu2_04_over.jpg");
Menu2_05_over = newImage("images/Menu2_05-over.jpg");
Menu2_05_Menu2_06_over = newImage("images/Menu2_05-Menu2_06_over.jpg");
Menu2_06_over = newImage("images/Menu2_06-over.jpg");
preloadFlag = true;

Need to replace the Images/ folder with sMypath

Regards
Don
Jul 19 '05 #1
4 3283
function preloadImages() {
if (document.images) {
Menu2_02_over = newImage("<%=sPath%>/Menu2_02-over.jpg");
Menu2_04_over = newImage("<%=sPath%>/Menu2_04-over.jpg");
Menu2_05_Menu2_04_over =
newImage("<%=sPath%>/Menu2_05-Menu2_04_over.jpg");
Menu2_05_over = newImage("<%=sPath%>/Menu2_05-over.jpg");
Menu2_05_Menu2_06_over =
newImage("<%=sPath%>/Menu2_05-Menu2_06_over.jpg");
Menu2_06_over = newImage("<%=sPath%>/Menu2_06-over.jpg");
preloadFlag = true;
p.s. It's javascript!

Ray at work

"Don Grover" <sp******@assoft.com.au> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
How would I use a vbscript variable sMyPath into a Java function, I have
tried numerous ways but it dalls over.
Works ok with hard paths

function preloadImages() {
if (document.images) {
Menu2_02_over = newImage("images/Menu2_02-over.jpg");
Menu2_04_over = newImage("images/Menu2_04-over.jpg");
Menu2_05_Menu2_04_over = newImage("images/Menu2_05-Menu2_04_over.jpg");
Menu2_05_over = newImage("images/Menu2_05-over.jpg");
Menu2_05_Menu2_06_over = newImage("images/Menu2_05-Menu2_06_over.jpg");
Menu2_06_over = newImage("images/Menu2_06-over.jpg");
preloadFlag = true;

Need to replace the Images/ folder with sMypath

Regards
Don

Jul 19 '05 #2
Also Java != JavaScript.

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:eC**************@tk2msftngp13.phx.gbl...
function preloadImages() {
if (document.images) {
Menu2_02_over = newImage("<%=sPath%>/Menu2_02-over.jpg");
Menu2_04_over = newImage("<%=sPath%>/Menu2_04-over.jpg");
Menu2_05_Menu2_04_over =
newImage("<%=sPath%>/Menu2_05-Menu2_04_over.jpg");
Menu2_05_over = newImage("<%=sPath%>/Menu2_05-over.jpg");
Menu2_05_Menu2_06_over =
newImage("<%=sPath%>/Menu2_05-Menu2_06_over.jpg");
Menu2_06_over = newImage("<%=sPath%>/Menu2_06-over.jpg");
preloadFlag = true;
p.s. It's javascript!

Ray at work

"Don Grover" <sp******@assoft.com.au> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
How would I use a vbscript variable sMyPath into a Java function, I have tried numerous ways but it dalls over.
Works ok with hard paths

function preloadImages() {
if (document.images) {
Menu2_02_over = newImage("images/Menu2_02-over.jpg");
Menu2_04_over = newImage("images/Menu2_04-over.jpg");
Menu2_05_Menu2_04_over = newImage("images/Menu2_05-Menu2_04_over.jpg"); Menu2_05_over = newImage("images/Menu2_05-over.jpg");
Menu2_05_Menu2_06_over = newImage("images/Menu2_05-Menu2_06_over.jpg"); Menu2_06_over = newImage("images/Menu2_06-over.jpg");
preloadFlag = true;

Need to replace the Images/ folder with sMypath

Regards
Don


Jul 19 '05 #3
Isn't that what I said? :]

"Mark Schupp" <ms*****@ielearning.com> wrote in message
news:uQ**************@TK2MSFTNGP12.phx.gbl...
Also Java != JavaScript.
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message


p.s. It's javascript!

Jul 19 '05 #4
Ray,

Sorry, I missed that.

Comment was targeted at original poster. Kind of a pet peeve of mine as in
SQL != MS SQLServer

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:eO**************@TK2MSFTNGP11.phx.gbl...
Isn't that what I said? :]

"Mark Schupp" <ms*****@ielearning.com> wrote in message
news:uQ**************@TK2MSFTNGP12.phx.gbl...
Also Java != JavaScript.
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message


p.s. It's javascript!


Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
6805
by: John Davis | last post by:
When I create new documents in Dreamweaver, there are several choices for ASP creation: ASP JavaScript: run at client side?? ASP VBScript: run at server side?? ASP.NET C# ASP.NET VB I don't...
5
13806
by: Tony B | last post by:
Hi I need to insert a new node into an exisiting XML file using VBScript. The file has the following structure: <TRANSACTION> <ORDER> <BILLING>... </BILLING> <ORDER_TOTALS>... </ORDER_TOTALS>...
9
2405
by: Luc Dal | last post by:
Hello, I've serious problem using ASP under WindowsXP sp2. I get the following reply (sorry it's in french) Erreur de compilation Microsoft VBScript error '800a0401' Fin d'instruction...
16
16969
by: Philip Boonzaaier | last post by:
I want to be able to generate SQL statements that will go through a list of data, effectively row by row, enquire on the database if this exists in the selected table- If it exists, then the colums...
4
9274
by: Liber | last post by:
¿Se puede ejecutar scripts con C# al igual que podía con VBScript? Con VBScript escribo codigo en un archivo .vbs o .vbe y lo ejecuto, ¿como puedo hacer esto con C#, pues hago un .cs pero no se...
7
3690
by: divya | last post by:
What is an equivalent TimeSerial() function of VBscript in the Java Script?? I have two variables hour and minutes. Timeserial(hour,minutes) returns the time hour : minutes. But I want to do...
8
1407
by: =?Utf-8?B?U3lzdGVtcyBBZG1pbg==?= | last post by:
Hi All, I need to write a program/script that gathers some data from Windows systems, compare it with SQL Database and update if it's changed. My question is what should i use? VBScript or...
0
2132
ak1dnar
by: ak1dnar | last post by:
There is a Error getting while i am entering records using this jsp file. <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %> <%@ include...
3
1774
by: Dilruba | last post by:
asp, vbscript, Ms Access I am using vbscript to insert & update ms accees. Insert operation is working , but update operation is not working. I have used the following codes: ...
0
7048
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6911
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7050
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
6966
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5344
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
2999
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2988
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1303
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
564
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.