Professional Web Applications Themes

Importing HTML text into Director - Macromedia Director Lingo

I am trying to import some text from an html file into director keeping the style and spaces etc. Currently I use (on a mouseUp) ; HTMLtext = ("http://www.myurl.com/test.html") importFileInto new(#text), HTMLtext The html page has several tables with the text located within one of the first columns of the first table. Half of the text when imported into the cast member is clipped/missing. This does not occur if I remove the outer tables from around the text table in the html doent. Is there a way to specify which table / column to retrieve the text from. Alternatively if ...

  1. #1

    Default Importing HTML text into Director


    I am trying to import some text from an html file into director keeping the
    style and spaces etc.

    Currently I use (on a mouseUp) ;


    HTMLtext = ("http://www.myurl.com/test.html")

    importFileInto new(#text), HTMLtext



    The html page has several tables with the text located within one of the
    first columns of the first table. Half of the text when imported into the
    cast member is clipped/missing.

    This does not occur if I remove the outer tables from around the text table
    in the html doent.

    Is there a way to specify which table / column to retrieve the text from.
    Alternatively if I import the code using 'getNetText' can Director recognise
    html tags?

    Thanks

    J

    Pron Guest

  2. #2

    Default Re: Importing HTML text into Director

    Pron wrote:
    > I am trying to import some text from an html file into director
    > keeping the style and spaces etc.
    >
    > Currently I use (on a mouseUp) ;
    >
    >
    > HTMLtext = ("http://www.myurl.com/test.html")
    >
    > importFileInto new(#text), HTMLtext
    >
    >
    >
    > The html page has several tables with the text located within one of
    > the first columns of the first table. Half of the text when imported
    > into the cast member is clipped/missing.
    >
    > This does not occur if I remove the outer tables from around the text
    > table in the html doent.
    >
    > Is there a way to specify which table / column to retrieve the text
    > from. Alternatively if I import the code using 'getNetText' can
    > Director recognise html tags?
    Text member have a html property. No need to use importfileinto
    You only need to do member("a_text_member").html=htmlStringVar

    But warning, director only recognise very little tag

    In your case, you need to get the html text with fileio for a offline file,
    or getnettext for a online file.
    As you only want part of the page, you need to p the text (offset is
    useful for that) to find what you need.

    --
    Bubar


    Bubar Guest

Similar Threads

  1. Importing fireworks html into Director
    By Shane in forum Macromedia Director Basics
    Replies: 1
    Last Post: April 15th, 03:55 PM
  2. Importing text into Director 8.5?
    By Joe in forum Macromedia Director Basics
    Replies: 0
    Last Post: November 3rd, 01:10 PM
  3. importing .swf from MX into director 7
    By Mr.Mugoto webforumsuser@macromedia.com in forum Macromedia Director Basics
    Replies: 1
    Last Post: September 24th, 09:14 PM
  4. which one is better ? importing from 3d max as w3d to director or ...
    By ELTIGRE webforumsuser@macromedia.com in forum Macromedia Director 3D
    Replies: 0
    Last Post: August 7th, 07:39 AM
  5. Importing into Director
    By Jetro webforumsuser@macromedia.com in forum Macromedia Director Basics
    Replies: 2
    Last Post: July 29th, 07:31 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139