Web Design Web Design Forum
Registration is free! Here you can view your subscribed threads, work with private messages and edit your profile and preferences Calendar Find other members Frequently Asked Questions Search
Home Web Design

Convenient web based access to our favorite web design Usenet groups

web design reviews

This is Interesting: Free Magazines for Graphics designers and webmasters  





  Last Thread  Next Thread
Author
Thread Post New Thread   

Re: Displaying .js content within flash...
 

David Stiller




quote this post edit post

IP Loged report this post

Old Post  09-22-05 - 12:24 AM  
Ben,

> I have this script which will show the latest topic from my
> message board.
>
> <script language="JavaScript" type="text/javascript"
> src="http://www.deepandtwisted.co.uk/community/
> topics_anywhere.php?mode=show&f=a&n=10&b=non&lp
> i=y&t=_blank"></script>

JavaScript requires a JavaScript engine, which isn't included with Flash
(Flash has its own script, ActionScript).  Most browsers have a JavaScript
engine, which is why scripts like the one above usually work in a browser.

You can use the getURL() function in ActionScript to trigger JavaScript
in the HTML page, but ... well, your script points to a PHP file and
features a number of parameters.  I presume the PHP file returns a string of
JavaScript rather than a normal page ... if this is so, you *may* be able to
use getURL() with the java script: protocol, as referenced in the
documentation, but I'm not sure your SWF will be able to "get" that it has
to hit the PHP document first to retrieve the JavaScript.

getURL("java script:'http://www.deepandtwisted.co.uk/community/topics_anywher
e.php?code=show&f=a&n=10&b=non&lpi=y&t=_blank'");


David
stiller (at) quip (dot) net
"Luck is the residue of good design."




Post Follow-Up to this message ]
Sponsored Links
 





All times are GMT. The time now is 06:09 AM. Post New Thread   
  Previous Last Thread   Next Thread next
Flash Site Design archive | Show Printable Version | Email this Page | Subscribe to this Thread

Popular forums

Adobe Photoshop forum Macromedia Flash Web Site Design
Dreamweaver FrontPage forum
JavaScript Forum XML forum
Style Sheets VRML
Forum Jump:
Rate This Thread:

 

XML RSS Feed web design latest articles Syndicate our forum via XML or simple JavaScript

Web Design archive  Database administration help  


Top Home  -  Register  -  Control Panel   -  Memberlist  -  Calendar  -  Faq  -  Search Top