470,849 Members | 681 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,849 developers. It's quick & easy.

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 3201
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

16 posts views Thread by Philip Boonzaaier | last post: by
8 posts views Thread by =?Utf-8?B?U3lzdGVtcyBBZG1pbg==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.