In need of reading and stripping out a href links in an off-line HTML file

Hi there.
I'm in need of some guidance with respect to the reading of a
local
(off-line) HTML file, in doing so I need to identfy all of
the links held
within the HTML file, ie., <a href...> ... </a>
and have them populate a
seperate list.
My problem is in that in all of my years of using Director
I've never dealt
with external files to this kind of degree - and having take
quite a break
from Lingo for quite sometime as well, I'm kind of stuck as
to where the
heck I should start!!
Any help/guidance would be hugely appreciated.
Many thanks in advance.
Thanks, Mark.

Many thanks johnAq - your help is very much appreciated.
Kind regards, Mark.
"johnAq" <[email protected]> wrote in
message
news:gppbu1$cpu$[email protected]..
> To get you started, there is some simple built-in Lingo
(at least up unti
> Director 10 - I don't have D11 and they changed the text
engine so....)
>
> 1) Use Fileio to read in the html file into a string
variable
>
> 2) Set the .html property of a #text member to the
string variable text
> you
> read in from your file. This will automatically treat
all of the links in
> the
> html and hyperlinks in the text member.
>
> 3) You can now access the .hyperlinks property of the
text member, which
> will
> give you a list of all the links in the text - each
entry in the list is a
> list
> of two items - the start and end chars of the hyperlink
>
> From there you should be able to rework things into a
format you require
>
> hth
>
>
> johnAq
>

Similar Messages

  • When I try to download an app it says I need to read and agree to the new iTunes terms when I do so I am told my session has timed out

    I Cannot download apps
    wwhen I try i am told I need to read and agree to iTunes new terms
    wwhen I agree I am told my session has timed out

    Forgotten Security Questions / Answers...
    See Here > Apple ID: Contacting Apple for help with Apple ID account security
              Ask to speak with the Account Security Team...
    Or Email Here  >  Apple  Support  iTunes Store  Contact
    More Info >  Apple ID: All about Apple ID security questions
    Note:
    You can only set up and/or change a Rescue Email Before you forget the questions/answers.

  • Just bought a mac air with OS X v.10.7 Lion, for work I need to read and write NTFS drives, I install MacFuse and NTFS-3G, but it can not mount (recognize?) External HDD, in my MBP with Snow Lepard it work just perfectly... help please.

    Just bought a mac air with OS X v.10.7 Lion, for work I need to read and write NTFS drives, I install MacFuse and NTFS-3G, but it can not mount (recognize?) External HDD, in my MBP with Snow lepard it work just perfectly... help please.

    Reinstall MacFuse with the one from http://www.tuxera.com/mac/macfuse-core-10.5-2.1.9.dmg. If that doesn't work, you can use Paragon NTFS for Mac 9.0 which has been designed to work with Lion.

  • Just bought a mac air with OS X v.10.7 Lion, for work I need to read and write NTFS drives, I install MacFuse and NTFS-3G, but it can not mount (recognize?) External HDD, in my MBP with Lion it work just perfectly... help please.

    Just bought a mac air with OS X v.10.7 Lion, for work I need to read and write NTFS drives, I install MacFuse and NTFS-3G, but it can not mount (recognize?) External HDD, in my MBP with Lion it work just perfectly... help please.

    Sorry in my MBP Snow lepard it work.. don't have Lion In MBP

  • Help Needed in Zooming and Zooming Out Images in flex

    Hi
    I am using <mx:Zoom /> component to zoom an image!
    I am able to zoom and Zoom out the Images but when I zoomIn the Image is cropping!
    Can any one give me the link or code for best zoomin and  zoomOut for Images?
    Is there any way that I can Zoom Video in flex?
    Thanks n Regards
    Aruna

    Probably the simplest solution is to use password-based encryption (PBE). See http://java.sun.com/j2se/1.5.0/docs/guide/security/CryptoSpec.html#PBEEx
    for an example.

  • What I need to do? default icon of Firefox didn't seen on the ".html" file.

    default icon of Firefox didn't seen on the ".html" file.
    i have change the icon threw the open with but i didn't work yet.

    Is Firefox set as the default browser in Windows?
    Windows7 has it under Control Panel > Programs >> Default Programs - Set Default Programs -- Set Program Associations.

  • System.in.read and System.out.print questions

    On the following code, two questions:
    1. the output is not what I expected. Why doesn't the System.out.println(i+" "+(char)i); print everytime i press enter a character? It seems to print all at once after everything is entered.
    package stars;
    import java.io.*;
    public class Stars {
      public static void main (String[] args) throws IOException {
        String U="";
        System.out.print("What is your name: ");
        while (true) {
          int i=System.in.read();
          U+=(char)i;
          System.out.println(i+" "+(char)i);
          System.out.flush();
          if (i==10||i==13) break;
        System.out.println("\rHello "+U);
    }C:\>java -cp . stars/Stars
    What is your name: blah
    98 b
    108 l
    97 a
    104 h
    13
    Hello blah
    2. What is the most natural way to check for the press of an enter key? Is there a java attribute or method for the "Enter key" since it is different on unix and ms-dos? Thanks

    On the following code, two questions:
    1. the output is not what I expected. Why doesn't
    the System.out.println(i+" "+(char)i); print
    everytime i press enter a character? From:
    http://scv.bu.edu/Doc/Java/tutorial/java/nutsandbolts/input.html
    ================
    "The read() method provided by System.in reads a single character and returns either the character that was read or, if there are no more characters to be read, -1.
    When a program reads from the standard input stream, the program blocks waiting for you to type something in. The program continues to wait for input until you give it some indication that the input is complete. To indicate to any program that reads from the standard input stream that you have finished entering characters, type the end-of-input character appropriate for your system at the beginning of a new line"
    ================
    In other words, Java can't do what you want to do.
    <snip>
    >
    2. What is the most natural way to check for the
    press of an enter key? Is there a java attribute or
    method for the "Enter key" since it is different on
    unix and ms-dos? Thanks
    System.getProperty("line.separator");Jim S.

  • Can you provide text for the video, to be read and tried out at my speed?

    The video moves too fast, and assumes the listener knows terminology that he or she might not. Talk more slowly and clarify the terminology during the discussion.

    Which video are you referring to?
    Did you read the related SUMO Knowledge Base article (which is that)?

  • How do I use serial port read and show text, but not have it scroll off screen?

    I am new-ish/returning amateur user of Labview and I am trying to edit the example VI "Advanced serial write and read VI" that is part of dev suite 2012.  I need to use the string box to show ALL text received from serial port, always appending and only rolls off screen when more real data arrives at serial port. 
    What is actually happening is as more bytes (or no bytes AT ALL!) arrive during read time, current text rolls off the string box.  Even when 0 bytes are received, screen is blanked out.  I am not very familiar with functions locations and even worse at understanding obscure references to functions, so please keep replies very basic so I can follow.
    Just to be clear, I need the string window to behave like hyperterm does-always shows data and it is not pushed out of window arbitrarily.
    Thanks,
    Steve  
    Solved!
    Go to Solution.

    OK- lets start back at the beginning.  I have a few questions...
    WHy does incoming txt get placed at top of txt box and then scroll up?  why would it make more sense to input at the bottom and scroll toward the top.  I have created this huge txt box that appears to be impossible to use.
    I have attached example of txt boxes I have tried, and pic of VI I have edited.  Bad marks for uglyness....
    Attachments:
    Capture_VI.JPG ‏117 KB
    Capture_VI2.JPG ‏133 KB

  • My ipod only seems to switch on when it is charging, but once fully charged and taken out of its charger it switches off and doesnt turn back on? can anybody suggest what i should do or whats wrong?

    Hi
    my ipod recently has only been working when it is on charge. Once i take it off charge it switches off automatically, could you tell me the problem or how i can resolve this?

    Try:                                               
    - iOS: Not responding or does not turn on           
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable       
    - Try on another computer                                                       
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
      Apple Retail Store - Genius Bar                              

  • My iPhone was on, in a standby position. I wanted to see if I've got a message, pushed the button and found out that my touch-display is off. What can I do? It's just doesn't work. Is something wrong with my battery?

    Is anyone had the same problem? Can I manage it on my own?

    Would you rather upgrade to windows 8, BlackBerry or Android phones? Do you honestly think those don't have problems?
    You waited a lot and chose to buy an early production model. Mistakes happen all the time a factory retools and workers relearn new skills necessary to keep US happy.
    Exercise your rights.... Send it back for a new one. 
    In any case, I feel your frustration. Btw, I love Apple but use a Blackberry

  • I have windows 7 When I first start firefox works fine but after an hour or so it quits and won't load pages unless you go off line and start over. What can I do?

    My question pretty much covers it. The program works fine usually about an hour and then when I go to load a page it comes up blank and you can see it is not searching. The only thing to do is go off internet and reconnect. Sometimes I have to shut the computer down.

    The default of the pref network.http.max-connections has been increased from 30 to 256 in Firefox 6+ versions.
    Try to decrease the value of the pref <b>network.http.max-connections</b> from 256 to 30 as used in Firefox 3 versions.
    *https://support.mozilla.com/kb/Firefox+never+finishes+loading+certain+websites

  • Everytime I try to purchase Mountain Lion from the App Store it tells me that iTunes has changed their terms and agreements and I need to first read and agree to them before I can proceed. It never pulls up the terms and agreement window to read?

    Everytime I try to purchase Mountain lion from the App store it tells me that iTunes has changed their terms and agreements, in order to proceed I need to read and agree to them, yet no pop up window appears to do just that!!

    http://www.apple.com/support/mac/app-store/contact.html?form=account

  • Stripping out dashes from variable

    I have a jsp page that dynamically build a list of select boxes based on information out of a record set. As I build the select box I am including an onChange function that submits the form once the user selects something from the drop down list. Basically it looks like this: out.println("<select class='select' name='"+selectName+"' onChange='document."+formName+".submit();'>");
    Az you can see the select name and formname are also dynamically added based on the record set return. My problem is in the database there are dashes in some of the data so I am getting something that looks like this in my resulting html: select class='select' name='A-10' onChange='document.A-10.submit();'>");
    This dash is causing the onChange to not work so I need a way to strip out the dash so that the results would be A10 as apposed to A-10
    Any thoughts??
    p.s. This is how I filling the variable:
    String selectName = request.getParameter("name");
    String formName = request.getParameter("DataSet");

    first of all, I dont understand why you use multiple forms on one page, but thats just me. Second, you can use
    documents.forms[0].submit() to avoid the names. So just loop through your forms and use
    out.println("document.forms[" + i + "].submit()");

  • How to read and display a signal from my PIC Microcontr​oller onto Labview?

    Hi,
    I am doing a project on a Pulse Oximeter and i am trying to read and display the signal from my PIC Microcontroller on Labview? How do i go about doing it? I am using the PIC16F877 and also making use of the USART?
    How do i implement and initialise the USART in PIC16? What are the steps to be taken, please guide me through the process? The link provides information regarding the USART connection, initialisting and stuff? Is it correct to use these codes in my program?Link: http://ww1.microchip.com/downloads/en/AppNotes/007​74a.pdf
    Also, i am using the RS232 serial interface to connect to the PC? The connector i am using is the DB9 Connector. Which template and VI can i use? Am i supposed to use the NI-DAQmx and VISA? Also, for my USART connection, i am using the MAX232 Driver which is applicable for my application as i am working with +5V. So far, i have been reading and trying out on Labview and the steps i have taken are:
    1) Open a New VI and used the Instrument I/O(Read & Display) template?
    2) How do i configure the Instrument I/O Assistant Express VI to read the info from my device connected to COM1?
    3) I was reading the Labview Manual, 'Getting Started with Labview' and i was following the steps under Page 55, Communicating with an Instrument. Am i on the right track?
    4) How do i check and make sure that the port settings of the I/O Assistant and my PIC Micro Match
    Please help me out and guide me through the process. I am student at a polytechnic and i am very new to Labview and the software is used as a development tool for the project. I have a deadline to meet and i hope i can get a response as fast as possible. Your help will be kindly and greatly appreciated. I hope to hear from you guys soon.You can e-mail me all your answers at [email protected]
    Thank You
    Best regards,
    Ashwin
    Ashwin Kumar Mansukhani
    Attachments:
    Getting Started with Labview.pdf ‏901 KB

    Hi Ashwin,
    It is a good idea to first be able to communicate with the microcontroller using some sort of serial communication software such as "HyperTerminal" or "Procomm", etc. Refer to MicroChip's recommendations on this.
    Once that works, then you are ready to use LabView.
    Here is a link which covers many aspects of serial communication. Link - click here
    You probably received a development kit. They usually have a readily available interface. It's been a long time since I played with the PIC, but I seem to remember that you need to program the serial communication driver (as well as at least a bootloader) to get the serial communication going. The driver contains the necessary protocols so that you PC can have a machine conversation with the target (PIC).
    It sounds like a fun & interesting project. Please avoid to have replies to your personal email. By having the answers posted to this thread, you will get much more support and advice.
    Have fun,
    JLV

Maybe you are looking for

  • Connected with server, but commands do not seem to arrive..

    Hello there, I'm trying to create a connection with an IMAP server which is secured through SSL. I can get the connection just fine, and I get a first respone from the server. But then I send out my login string, and it does not seem to arrive at the

  • New to FrameMaker ~ How to define elements?

    I'm new to FrameMaker and was hoping somebody could help me. I've just uploaded a huge document from Microsoft Word into FrameMaker and I'm having issues with elements. Does anybody know how to define an element for the entire document? When I go int

  • Gutter Rules for text frames

    Here's a special request. As a publication designer, if I choose to have rules in my column gutters, it's real pain because I have to place those rules manually, style them and then move and/or lengthen/shorten them if my column's height or postionin

  • B1if - User defined Authentication

    Hello! I would like to authenticate users against an company database in a scenario. The documentation for this topic (Ref 02 - Scenario Dev - 4. Develop a user defined Authentication) wasn't updated since 2010-06-21. Can someone show me a way how to

  • Photoshop elements scanner problem

    elements 9 does not recognize my scanner