HighDots Forums  

Re: Embedded JavaScript

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Re: Embedded JavaScript in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
virtgolfer
 
Posts: n/a

Default Re: Embedded JavaScript - 07-12-2004 , 09:20 PM






Thanks for the input. What you suggested will only work, if the document write is in the same script as the Image(). I need it to work globally. In other words why isn't tester.src global in my code?

Reply With Quote
  #2  
Old   
Mick White
 
Posts: n/a

Default Re: Embedded JavaScript - 07-13-2004 , 12:30 AM






But the question remains, what are you trying to do? You are quite wrong
about your perception of global vs. local variable. There's something
else you are not telling us. Do you have a URL where I can see what
you're trying to accomplish?
Mick

virtgolfer wrote:

Quote:
Thanks for the input. What you suggested will only work, if the document write is in the same script as the Image(). I need it to work globally. In other words why isn't tester.src global in my code?

Reply With Quote
  #3  
Old   
virtgolfer
 
Posts: n/a

Default Re: Embedded JavaScript - 07-13-2004 , 08:30 AM



I guess I need to better understand global variables. When declared outside a
function they work in the same script. I guess then that they do not work from
script to script?

I have written it as one script now, and it works. What I am doing is looking
for an object in a directory, and if not found lookig in the parent, and so on
until I get to the root directory.

Thanks@


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.