At 9:47 AM 5/31/4, Frank Dewey wrote:
> I am having trouble getting getURL() in Flash to display the
> text in the sibling frame. I am using:
> getURL("text.cfm?id="+dragID,"_top.text")
> Do you know what I am doing wrong?
This might be better in a Flash area, and I'm not sure I can reliably
answer this from what I read, but one way that similar posts appear is when
there are scope issues in variable definitions between browser and plugin.
For instance, that variable named "dragID" might have its value defined in
the browser, or it might be defined in the plugin. If your statement is
evaluated in the other environment, then you might not have the values you
expect.
I'm not sure whether the above is a literal quote, or whether it's just a
typing error, but if you ask a browser to get to a file named
"text.cfm?id=23_top.text" then it might not be able to resolve the domain
or directories either.
One way to troubleshoot work like this is to evaluate the variables in a
discrete step, and test whether the value you achieve is the value you
expect, as in:
newAddress="http://www.mysite.com/project1/text.cfm?id="+dragID
trace(newAddress)
getURL(newAddress, "+top.text")
Checking what the browser receives is another step beyond that. Testing
whether your window names are as expected is a step beyond that.
jd
John Dowdell, Macromedia Developer Support, San Francisco
(Best to reply on-list, to avoid my mighty spam filters!)
Technotes: http://www.macromedia.com/support/search/
Column: http://www.macromedia.com/desdev/jd_forum/
Technical daily diary: http://www.macromedia.com/go/blog_jd
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]