473,322 Members | 1,425 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Running Java within another Java - Help !!

I am totally new to Java, and would desperately like some help. I have downloaded a Java Text Scroller that uses DHTML to scroll text up and down. There are other Java scrollers that do the same thing. My problem is that the Java always has code to place "fixed" or "static" text for scrolling. So I have to manually enter the words I need scrolled.

Now . . I am also using a service called "FlexWindow" (www.flexwindow.com) where you can create dynamic areas of a website, and update them via email. Each time you update the dynamic window via email, is writes a .JS file in a specific directory:

http://www.scottishvoice.net/flexwindow/about.js

The main webpage simply calls for this Java with the following source:

<script src='http://www.scottishvoice.net/flexwindow/tickertape.js'></script>

The problem is that I would like to embed this Java in a Smooth Scroller or Marquee Javascript, but I cannot get it working. Most of them have lines such as:

myScroller1.addItem("Hello from Scottish Voice");

I need to replace the text inside the quotes with the .js Java from above. I cannot get it to work at all.

Is it a limitation to do multiple calls for Java within the same page?

I would appreciate any assistance the experts can give me.

Thanks in advance.
Kevin Sneddon
Cartman Creative
Oct 5 '07 #1
1 1285
r035198x
13,262 8TB
I am totally new to Java, and would desperately like some help. I have downloaded a Java Text Scroller that uses DHTML to scroll text up and down. There are other Java scrollers that do the same thing. My problem is that the Java always has code to place "fixed" or "static" text for scrolling. So I have to manually enter the words I need scrolled.

Now . . I am also using a service called "FlexWindow" (www.flexwindow.com) where you can create dynamic areas of a website, and update them via email. Each time you update the dynamic window via email, is writes a .JS file in a specific directory:

http://www.scottishvoice.net/flexwindow/about.js

The main webpage simply calls for this Java with the following source:

<script src='http://www.scottishvoice.net/flexwindow/tickertape.js'></script>

The problem is that I would like to embed this Java in a Smooth Scroller or Marquee Javascript, but I cannot get it working. Most of them have lines such as:

myScroller1.addItem("Hello from Scottish Voice");

I need to replace the text inside the quotes with the .js Java from above. I cannot get it to work at all.

Is it a limitation to do multiple calls for Java within the same page?

I would appreciate any assistance the experts can give me.

Thanks in advance.
Kevin Sneddon
Cartman Creative
You are talking about Javascript and referring to it as Java and Java != Javascript.
I'll move this to the Javascript forum.
Oct 6 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: James-D-Bloom | last post by:
I have developed a fully open source & free application that can alter (or simulate the affect of altering) loaded Java classes at runtime. This means you can change a program at runtime without...
3
by: Hal Vaughan | last post by:
I need to be able to run external commands from within a Java program, on Linux and Windows (and eventually OSX). Under most circumstances there is no problem, but if the path I specify as part of...
1
by: Hal Vaughan | last post by:
I'm having trouble with a bash script (in Linux) I'm running from Java. It works -- some of the time, but I can't determine exactly why it works 1 time and doesn't work the next 4-5 times. I'm...
0
by: Hal Vaughan | last post by:
I know I can access the System.properties from within Java to find out who the vendor of a particular JVM is, but is there any way to do this from the command line? java -version will giveme...
10
by: Tobias Nilsson | last post by:
I have almost exactly the same problem as the guy below. Is it NOT possible running .NET code locally in Internet Explorer WITHOUT a webserver???? / Tobias --------- My company has in the...
2
by: Kent Lewandowski | last post by:
hi all, Recently I wrote some stored procedures using java jdbc code (admittedly my first stab) and then tried to implement the same within java packages (for code reuse). I encountered...
3
by: John Thomas | last post by:
Hey, I was wondering what the typical time to get up and running to comfortably program ASP.NET with C#. I have done PHP, but no ASP. I have used C++ in the past and familar with the language...
5
by: Peter Steele | last post by:
We have an application that when it runs in the IDE in debug mode an unhandled exception is occurring in a system header file associated with STL stirngs. The actual statement that crashes is ...
1
Nepomuk
by: Nepomuk | last post by:
Hi! I'm trying to run an external Program with Process p = Runtime.getRuntime().exec("/bin/sh -c \"/bin/gzip -c /home/user/workspace/TarGz/pics.tar > pics.tar.gz\""); CleanStream cleanError =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.