Novice Java Pasters question / conflicts  
Author Message
Tommy





PostPosted: 2004-4-5 1:59:00 Top

java-programmer, Novice Java Pasters question / conflicts I have been experimenting with several java and javascripts on my website. I
was doing pretty good until I notice that the script to display the time had
vanished. I tried running this on a fresh web page and it worked. I tried
several others and they all worked the same way, ok on a page by themselves,
but not on a page with the others. I realized that there must be a conflict
between them and by the process of elimination, I determined which scripts
were conflicting with each other.

Here are the 2 scripts that refuse to run on the same page together:

Dynamic Day'n'Night Worldmap by Urs Dudli and Peter Gehrig
http://www.24fun.com

and

The JavaScript Source: Clocks: Universal Clock
The JavaScript Source!! http://javascript.internet.com
<!--By: Rakesh Jain (email***@***.com) -->
<!-- Web Site: http://www.bhabus.com -->

I believe that day n nite is the main problem because I tried several clock
and date scripts with it, and none would work except without it, [or on
pages by themselves]

Could anyone on this group know what causes this, if there is a cure, or
another group to try? I'd really like to have them both work!

--
Tommy McClure
tommyATlee9_2000(removethis)ATyahooATcom
www.hal-pc.org/~toner27


 
tom.cowdery





PostPosted: 2004-4-5 11:41:00 Top

java-programmer >> Novice Java Pasters question / conflicts Java != Javascript

Other than a similar syntax and the name, the two have nothing to do
with one another. You need to post on a javascript newsgroup.
 
Mark Haase





PostPosted: 2004-4-5 21:01:00 Top

java-programmer >> Novice Java Pasters question / conflicts In article <40704af7$0$1334$email***@***.com>,
"Tommy" <tommyATlee9_2000(removethis)ATyahooATcom> wrote:

> I have been experimenting with several java and javascripts on my website. I
> was doing pretty good until I notice that the script to display the time had
> vanished. I tried running this on a fresh web page and it worked. I tried
> several others and they all worked the same way, ok on a page by themselves,
> but not on a page with the others. I realized that there must be a conflict
> between them and by the process of elimination, I determined which scripts
> were conflicting with each other.
>
> Here are the 2 scripts that refuse to run on the same page together:
>
> Dynamic Day'n'Night Worldmap by Urs Dudli and Peter Gehrig
> http://www.24fun.com
>
> and
>
> The JavaScript Source: Clocks: Universal Clock
> The JavaScript Source!! http://javascript.internet.com
> <!--By: Rakesh Jain (email***@***.com) -->
> <!-- Web Site: http://www.bhabus.com -->
>
> I believe that day n nite is the main problem because I tried several clock
> and date scripts with it, and none would work except without it, [or on
> pages by themselves]
>
> Could anyone on this group know what causes this, if there is a cure, or
> another group to try? I'd really like to have them both work!

It's probably because 2 different scripts define the same global
variables. This means that one script is reading the data of the other
and misunderstanding to be its own.

This is the wrong group, though...so take this and if you need more help
ask again in a JavaScript group.

--
|\/| /| |2 |<
mehaase(at)sas(dot)upenn(dot)edu
 
 
Tommy





PostPosted: 2004-4-6 0:01:00 Top

java-programmer >> Novice Java Pasters question / conflicts Mark Haase wrote:
> In article <40704af7$0$1334$email***@***.com>,
> "Tommy" <tommyATlee9_2000(removethis)ATyahooATcom> wrote:
>
>> I have been experimenting with several java and javascripts on my
>> website. I was doing pretty good until I notice that the script to
>> display the time had vanished. I tried running this on a fresh web
>> page and it worked. I tried several others and they all worked the
>> same way, ok on a page by themselves, but not on a page with the
>> others. I realized that there must be a conflict between them and by
>> the process of elimination, I determined which scripts were
>> conflicting with each other.
>>
>> Here are the 2 scripts that refuse to run on the same page together:
>>
>> Dynamic Day'n'Night Worldmap by Urs Dudli and Peter Gehrig
>> http://www.24fun.com
>>
>> and
>>
>> The JavaScript Source: Clocks: Universal Clock
>> The JavaScript Source!! http://javascript.internet.com
>> <!--By: Rakesh Jain (email***@***.com) -->
>> <!-- Web Site: http://www.bhabus.com -->
>>
>> I believe that day n nite is the main problem because I tried
>> several clock and date scripts with it, and none would work except
>> without it, [or on pages by themselves]
>>
>> Could anyone on this group know what causes this, if there is a
>> cure, or another group to try? I'd really like to have them both
>> work!
>
> It's probably because 2 different scripts define the same global
> variables. This means that one script is reading the data of the other
> and misunderstanding to be its own.
>
> This is the wrong group, though...so take this and if you need more
> help ask again in a JavaScript group.
>
>> \/| /| |2 |<
> mehaase(at)sas(dot)upenn(dot)edu

Much thanks
--
Tommy McClure
tommyATlee9_2000(removethis)ATyahooATcom
www.hal-pc.org/~toner27