Results 1 to 3 of 3

Thread: Referencing variables in other js files?

  1. #1

    Thread Starter
    Fanatic Member Graff's Avatar
    Join Date
    Jan 2002
    Location
    Calgary
    Posts
    668

    Referencing variables in other js files?

    This relates to my other question about loading text (which has been resolved). Now I want to know, rather than storing the rather large text in one js files I want to seperate them, is it possible to grab the value of a variable in one js file from another?
    If wishes were fishes we'd all cast nets.

  2. #2
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    Yes it is, as long as you don't try to use a variable before it has been initialised.

  3. #3

    Thread Starter
    Fanatic Member Graff's Avatar
    Join Date
    Jan 2002
    Location
    Calgary
    Posts
    668
    ok but how
    If wishes were fishes we'd all cast nets.

Posting Permissions

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



Click Here to Expand Forum to Full Width