java problem

Sharky Forums


Results 1 to 6 of 6

Thread: java problem

  1. #1
    Catfish amd_dude's Avatar
    Join Date
    May 2003
    Posts
    153

    java problem

    hi

    i have got to .js file when i preview the page in dreamweaver mx the .js file load but when i load it off the webaddress they dont load

    any ideas

    thanks
    Web Server: Linux Red Hat 9 Server
    Gameserver: Windows Server 2003
    Workstation 1: Windows XP Home
    Workstation 2: Widows XP Home

  2. #2
    Hammerhead Shark EverlastingGod's Avatar
    Join Date
    Feb 2003
    Location
    MD
    Posts
    1,364

    Re: java problem

    Originally posted by amd_dude
    hi

    i have got to .js file when i preview the page in dreamweaver mx the .js file load but when i load it off the webaddress they dont load

    any ideas

    thanks
    Not to be a stickler but... it's JavaScript not Java.

    As for the problem, either you're referencing the .js file's address incorrectly or browser settings may disable some scripting or not allow the loading of the .js script in some cases (I think there are settings that don't let you load scripts from different sites.)
    Stay cool
    and be somebody's fool this year

  3. #3
    Expensive Sushi
    Join Date
    Aug 2003
    Location
    music
    Posts
    18
    //jjedit does not like this easy code:
    Javafun

    public class Javafun
    { public static void main(String[]args)
    {int a = 0;
    while (a<1000000)
    {a++;
    System.out.println(a);
    }}}


    __________________
    Last edited by magicmusic; 11-17-2003 at 06:10 PM.

  4. #4
    Catfish amd_dude's Avatar
    Join Date
    May 2003
    Posts
    153
    do i paste this into the page
    Web Server: Linux Red Hat 9 Server
    Gameserver: Windows Server 2003
    Workstation 1: Windows XP Home
    Workstation 2: Widows XP Home

  5. #5
    Hammerhead Shark EverlastingGod's Avatar
    Join Date
    Feb 2003
    Location
    MD
    Posts
    1,364
    Originally posted by magicmusic
    //jjedit does not like this easy code:
    Javafun

    public class Javafun
    { public static void main(String[]args)
    {int a = 0;
    while (a<1000000)
    {a++;
    System.out.println(a);
    }}}
    What does this have to do with anything?
    Stay cool
    and be somebody's fool this year

  6. #6
    NullPointerException rock's Avatar
    Join Date
    Sep 2000
    Location
    York, PA
    Posts
    6,203
    For what it's worth
    Code:
    public class Javafun {
       public static void main(String[]args) {
          int a = 0;
          while (a<1000000) {
             a++;
             System.out.println(a);
          }
       }
    }
    is fine. It compiles and runs okay.

    But, unless you read this thread as an invitation to post Java problems, I'm not sure if this has anything to do with the OP's JavaScript issue.

    Open Source is free like a puppy is free.

    It's only when you look at an ant through a magnifying glass on a sunny day that you realise how often they burst into flames.

    Understanding Evolution

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •