Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Feb 2009
    Posts
    1
    Member #
    18380
    Hey Guys!

    First time poster!

    I am using a flash template from TemplateMonster.com

    I am working with main.fla and tfile_main.xml.

    main.fla has the total layout of the site, and is almost complete, but I want to add the below javascript to one of the 'pages' of this flash site where there is currently a text box titled 'thistext1' only.

    The script is

    Code:
    <pageText><![CDATA[
    <ul id="twitter_update_list"></ul>
    <a href="http://twitter.com/MattTarrant" id="twitter-link" style="display:block;text-align:right;">follow me on Twitter</a>
    </item>
    <script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
    <script type="text/javascript" src="http://twitter.com/statuses/user_timeline/MattTarrant.json?callback=twitterCallback2&amp;count=5"></script>
    
    ]]></pageText>
    Though within the text box it only shows as the above code (viewable in the attachments), and does not do as I would like (similar to the 'mini blog' on http://www.cassielee.com.au/)

    How can I fix this?!

    Im assuming either I need some form of change in the coding to make it work, or perhaps a linkage to the text box that it should be showing in?

    Thanks!
    Matt
    Attached Images Attached Images

  2.  

  3. #2
    Member
    Join Date
    Aug 2008
    Location
    Chicago IL, USA
    Posts
    83
    Member #
    17217
    you're not going to be able to output javascript text into an XML document like that. you will probably have to write a php XML parser to pull that information. It's not really a simple solution to solve this problem, but an XML is more of a source of plain text. Sorry, I really can't think of an easy way of doing this.
    drew beta - Portfolio, Blog500 - Graduate Studies Blog, WP4P - Blog, Life in Beta - Music Podcast for Nerds

  4. #3
    Senior Member
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    4,146
    Member #
    10263
    Liked
    1 times
    Wait, so are you trying to use this Javascript within Flash or within a containing page that is HTML? If the latter, you can probably use ExternalInterface to do some fun calls that will pass the JS from the XML into a function that's actually running in Javascript, and then put it into the page from there. If it's within Flash... That's a little more complicated.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 05:07 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com