Link to specific text from another web page

Hello all
Is is possible to link from one page to a specific piece of
text in another web page in the same site? I have tried named
anchor, hyperlink, etc but it just goes to the page rather than the
text. I don't know if I am attempting the impossible. Can you help?
Thank v much.

> This also has a css rule so this 9pt thing is left over
from copy and
> pasting
> from Word. I have it cleaned up as you suggested but I
still have:
> <span style="font-family:Arial; font-size:9.0pt; is
there way of avoiding
> this?
It depends on your settings for how you copy/paste. See your
PREFERENCES
for those. I don't get such things because my settings are
'tight' in that
they are restrictive to what stying is carried into the page.
> How I do this in a nav bar?
Change this -
.nav {
font: bold normal 14px/normal Arial, Helvetica, sans-serif;
text-transform: none;
color: #003300;
font-weight: bold;
a.nav:link {
font: normal 12px/normal Arial, Helvetica, sans-serif;
text-transform: none;
color: #003300;
text-decoration: none;
a.nav:visited {
font: normal 12px/normal Arial, Helvetica, sans-serif;
text-transform: none;
color: #003300;
text-decoration: none;
to this -
.nav {
text-align:center;
.nav a {
font: bold normal 12px/normal Arial, Helvetica, sans-serif;
color: #030;
font-weight: bold;
text-decoration:none;
margin-right:35px;
and then change this -
<div align="center"><a href="index.html"
class="nav">Home</a>       <span
class="nav">About
Us</span>      <a
href="impact_HE.html" class="nav">Impact of HE
Proposal</a>      <a
href="purpose_ED.html"
class="nav">The Purpose of
ED</a>      <a
href="procedures.html"
class="nav">Procedures </a>     <a
href="what_can_we_do.html" class="nav">What Can We
Do?</a></div>
to this -
<div class="nav"><a
href="index.html">Home</a><a
href="about_us.html">About
Us</a><a href="impact_HE.html">Impact of HE
Proposal</a><a
href="purpose_ED.html">The Purpose of ED</a><a
href="procedures.html">Procedures</a><a
href="what_can_we_do.html">What Can
We Do?</a></div>
But an even better way would be to make the menu an unordered
list, like
this -
<ul>
<li><a
href="index.html">Home</a></li>
<li><a href="about_us.html">About
Us</a></li>
<li><a href="impact_HE.html">Impact of HE
Proposal</a></li>
<li><a href="purpose_ED.html">The Purpose of
ED</a></li>
<li><a
href="procedures.html">Procedures</a></li>
<li><a href="what_can_we_do.html">What Can We
Do?</a></li>
</ul>
And use this CSS -
.nav {
text-align:center;
.nav ul {
list-style-type:none;
margin:0;
padding:0;
overflow:hidden;
.nav li {
float:left;
width:150px;
margin-right:5px;
border-right:1px solid green;
.nav a {
font: bold normal 12px/normal Arial, Helvetica, sans-serif;
color: #030;
font-weight: bold;
text-decoration:none;
If you want to make the current page look like it doesn't
have a link, then
do this -
<ul>
<li><a href="index.html"
id="home">Home</a></li>
<li><a href="about_us.html" id="about">About
Us</a></li>
<li><a href="impact_HE.html" id="impact">Impact
of HE Proposal</a></li>
<li><a href="purpose_ED.html" id="purpose">The
Purpose of ED</a></li>
<li><a href="procedures.html"
id="procedure">Procedures</a></li>
<li><a href="what_can_we_do.html" id="what">What
Can We Do?</a></li>
</ul>
and add this to each page (use the proper ID) -
a#about {
cursor:default;
/* any other styles you want to make the current page show
> I am being a complete idiot today (maybe it's because
it's Sunday) Can you
> talk me through this.
Make the changes manually in code view.
If you are getting the idea that you will need to ramp your
HTML and CSS
skills to do this stuff, you are right on target!
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Dottydog" <[email protected]> wrote in
message
news:[email protected]...
> Dear Murrray
> Thank you very much for your comments.
>
> Can I ask you the following:
> 1. p.MsoNormal {
> Using Microsoft Word to build an HTML page is not
advisable. Use DW only
> or
> clean up the Word markup
>
> This also has a css rule so this 9pt thing is left over
from copy and
> pasting
> from Word. I have it cleaned up as you suggested but I
still have:
> <span style="font-family:Arial; font-size:9.0pt; is
there way of avoiding
> this?
>
> 2.
       <span
class
> Using non-breaking spaces as a layout tool is not
advisable. Use CSS
> margins/padding instead..
>
>
> 3. This is not a named anchor point. It is not even a
link. For that you
> would need -
> <p style="font-family:Arial,helvetica,sans-serif;
font-size:small; "
> id="BDBC">What we have said to
B&amp;DBC</p>
>
> I am being a complete idiot today (maybe it's because
it's Sunday) Can you
> talk me through this.
>
> Thank you very much for your time. Much appreciated.
>
>
>
>
>

Similar Messages

  • I did a COPY of some text from a web page, and then did a PASTE into notepad.exe (Windows). The text from each line was duplicated -- on the line! Instead of "Fred", it became "Fred Fred".

    I just recently installed Firefox for the first time. It seems nice and quick. The version is reported as: "10.0.1".
    I wanted to save some text from a web page, so navigated to that page, selected the text, and pressed the Control-C combination to COPY the selected text to the buffer. For example, the text I selected looked something like this:
    Harry
    Ron
    Hermione
    Hagrid
    Albus
    NOTE: Each line of text has a small icon to the left of the text.
    It is not reasonable to COPY and PASTE each line individually, as there can be hundreds of lines of data. I recall, however, that
    doing a COPY and PASTE on this data into Microsoft's Excel will produce cells which have the icons included in the cell, but unfortunately one cannot can't get rid of them! At least I've never found a way to remove them, but that's another issue. :)
    Once I'd done the COPY operation I switched to a Notepad window and did a PASTE operation. To my surprise, the text from each line was duplicated. It looked like this:
    Harry Harry
    Ron Ron
    Hermione Hermione
    Hagrid Hagrid
    Albus Albus
    Thinking that there might be something unusual about the web page I looked at the source, but it appeared "normal" -- that is, as expected.
    Note: I have done this operation several times before, and have never seen this occur before.
    Note: In the actual data some of the lines have quoted text in them. Curiously there is weird behavior on these lines. In some cases the entire line is shown only once. (These occur at the top of the line, and the quoted text is at the beginning of the name.)
    When quoted text appears "later" in the name, in some cases the quoted text is duplicated, and in other cases the quoted text is missing altogether! I have also noticed an error with the quoted text, and so will be reporting that to the web site which generates the HTML.
    Note that each line of "text" is "anchor text", so if I click on a name the browser navigates to a page for that name.
    I believe that the problem is that the COPY operating in Firefox is not simply copying the visible text, but also the ALT=
    Below is a sample of what the source HTML looks like:
    &lt;a class="lnk" target="_blank" href="http://details.aspx?id=Harry">
    &lt;img width="16" height="16" alt="Harry" class="tb_icon" src="http://.../Harry.gif"/>
    &lt;span>Harry&lt;/span>&lt;/a>
    <br/>
    (Because of the true length of the lines in the source HTML, I have stripped out the actual URL of the site.)
    To make sure I wasn't imaging this difference I repeated the process within Internet Explorer. In that browser I did not get duplicated data.

    Try:
    *Extended Copy Menu (fix version): https://addons.mozilla.org/firefox/addon/extended-copy-menu-fix-vers/

  • How to read text from a web page

    I want to read text from a web page. Can any body tell me how to do it.

    Ok i tell you detail. visit the site " http://seriouswheels.com/" you will a index from A to Z which are basically car name index i want to read each page get car name and its model and store it in data base. I you can provide me the code i will be very thankful.

  • How can I use Automator or AppleScript to get text from a web page and paste it in execl?

    I don't know how to make scripts or complexed automator workflows... that's why I'm asking.
    I'm trying to make a simple app or script to ask me what text to extract from a web page, like name, address and phone number of a web page and paste each one of these data in the righ cell of excel.
    I was thinking to promt a request from automator or an applescript to ask me which text to extract from the page or to look throught the HTML of the page to search for specific html tags, from which extracting text and then importing it, or paste it to the specified execl cell. Name in the name cell, address in the address cell and so on.
    Can somebody help me to make this script?
    If you know an alternative, like a software that already do this or another language to use, please tell.

    Try holding down the alt key as you mark the text to be copied. You can then copy columns to table text.

  • How do I copy text from a web page in Safari?

    I've searched up and down and can't find the answer to this simple question.
    There is a UI element that I want to copy to the clipboard and then paste into Excel. The UI element is:
    static text of group 104 of UI element 1 of scroll area 1 of group 4 of window "Account Summary"
    The contents of this static text on the web page is "$1,000.00"
    How can I copy this to the clipboard?
    I've tried:
    select static text of group 104 of UI element 1 of scroll area 1 of group 4 of window "Account Summary"
    keystroke "c" using command down
    keystroke "l" using command down
    keystroke "v" using command down
    but it doesn't work. "Select" doesn't actually seem to select anything. However, when I run this from within Script Editor, in the Results Window I get:
    {static text "$1000.00" of group 104 of UI element 1 of scroll area 1 of group 4 of window "Account Summary" of application process "Safari" of application "System Events"}
    ... I'm confused as to what this is telling me. All I want is to copy this value to the clipboard. Any suggestions???
    Thanks,
    Jeff

    Try this:
    set the clipboard to item 1 of (get name of (static text of group 104 of UI element 1 of scroll area 1 of group 4 of window "Account Summary" of application process "Safari"))
    (10906)

  • Extracting text from a web page

    I want to extract information about livestock from a certain web page, and add these data to a database.
    The web page in question allows me to enter an animal's ID number, and then it displays various data about that individual animal. The format of the page is always the same, but the data vary depending on the particular ID/animal.
    What I'm hoping for is a way to quickly extract information about the current animal (date of birth, color, breeding status, etc.) from the open page, and add these to my database.
    I realize I can "cut and paste", but that is awfully slow for large numbers of data and animals.
    Since the data I need are always in the same places on the page, it seems like there must be a way to automate the extraction.
    Any ideas? Thanks in advance.
    Eric

    Here's a very rough, untested way to do it:
    (I'm at work and not on a Mac..so..Milage May Vary)
    It would be run as script.pl -i input -o output
    eg ./script.pl -i myfilea -o myfileb
    oh and the input would be a list of valid web page addresses
    eg http://www.foo.com
    --bEGIN cODE---
    #!/usr/bin/perl
    use Getopt::Std;
    use LPW::Simple;
    getopts("i:o:");
    #allows for using -i -o cl options
    open(IN,"$opt_i")||die "Cant open input";
    open(OUT,">$opt_o")||die "Cant open output";
    #opens 2 files
    while ($line = <IN>){
    #READ IN line by line
    @Doc=();
    #clear the variable Doc
    @Doc=LPW::Simple::get($line);
    #open the web page and store all the html into Doc
    foreach $docline (@Doc){
    #go through every line of text in Doc
    if ($docline =~ m/:/){
    #does the line have a : on it..if so..
    $docline =~ s/ / /;
    $docline =~ s/
    $docline =~ s///;
    $docline =~ s/<\/b>//;
    #these 4 lines remove or reformat html formatting
    print OUT "$docline\n";
    #ok its simplistic, but for now just spits out the line it read to OUT
    close (IN);
    close (OUT);

  • Printing light-colored text from a Web page

    On a Web page that contains some light-colored text (such as the Apple Store MacBook models page <http://store.apple.com/1-800-MY-APPLE/WebObjects/AppleStore.woa/wa/RSLID?nnmm= browse&node=home/shop_mac/family/macbook&sf=wHF2F2PHCCCX72KDY>), is it possible to have the light gray text print darker? When I print such pages on my color laser printer, that gray text is almost too faint to see. Thanks for any pointers.

    Welcome to the Forums!
    Depends mostly on the printer you are using, which will determine the settings available. In the Print dialog box, click on the pop-up menu that shows as Copies & Pages. Look for options that deal with color. For example, an inkjet printer I have shows a Color Management setting, with an option for "pure black and white" - that setting would print the light gray text as black. On the other hand, for an HP Color Laser printer, the Color Options doesn't provide any settings that are useful for what you want to do (even under the advanced options). The best I could find was in ColorSync (that choice will be present for all printers), choose "Lightness Decrease" from the Quartz Filter pop-up menu. That seems to darken the printed gray text a little bit.
    Hope this helps...

  • How get data from another web page?

    I have my own interface..after i key In a keyword and click search, method post will post the data to server and server will response.write a HTML page that display the result based on the keyword i Key In. The problem is i want the result display on my own page. So how can i read the search result from the HTML page and display on my own design page? I use JSP to built my page. thanks

    I dont know the following solution would solve ur problem, atleast u will get basic idea.
    1st method
    Create an inline frame (IE-IFrame etc), On pressing submit button, Post the data to required page (it might be some page on another server)and specify post target is ur inline frame.
    if u want filter the result data and want to display in ur own way then send ur POST request to ur own JSP and use Http classes to read resend those data to other page (another server) and capture the results implement ur own logic to get desired data and resend to the requested browser
    I hope it would solve ur problem
    Cheers
    Rajendra Bandi

  • Linking to a specific location in a web page is not working

    Hello,
    I am using anchor tags for linking to a specific location in a web page . This Page contains some images(.bmp).
    Eg:
    <h2><a name="exactline">Linking Directly to a Specific Location</a></h2>
    <a href="http://www.example.com/some-page-or-other.aspx#exactline">Click here</a>
    Whenever I click on the link it moves to  specific location but when the page get loaded completely , top of the page is being displayed.
    My question is how can I make this link redirects directly to the particular section and stays there even after the page loads fully.
    Thanks

    Hi ,
    When you click your link "Click here", the SharePoint web page with anchor will not work until refresh the page, if it's the case, you can add the javascript code to refresh the page automatically as workaround per the following similar post.
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/f7eab808-da8a-44fd-9933-f9b992f5affc/sharepoint-anchor-tags?forum=sharepointgeneralprevious
    http://yalla.itgroove.net/2012/05/anchor-links-tags-in-sharepoint-2010/
    <script type="text/javascript">
    setTimeout(Reload,2000);
    function Reload()
    window.location.hash=self.document.location.hash.substring(1);
    </script>
    Thanks,
    Daniel Yang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] 
    Daniel Yang
    TechNet Community Support

  • Using Links to another web page that triggers event

    I was wondering if you are able to have a link (anchor) to another web page that will trigger an event.
    I have a test site www.psweb-test.com and on the home page there is a list of case studies. On another page I have a Jquery accordion menu on www.psweb-test.com/case.html.
    What I want is for the user to select a link of the appropriate case study from the homepage, this to take you to the www.psweb-test.com/case.html page showing the appropriate section from the Jquery accordion section.
    Is this possible as I think the homepage link will need to trigger the appropriate event ?

    It should be possible to carry the desired slice of the accordion to open to the target page in a URL variable.  Had you used a Spry Accordion, or a PVII accordion, I could have told you how to do this. I've not used the jQuery ones, though.

  • When I click on a link from a web page opened in Safari I get a blank black screen. Why can't I see the contents of the page?

    When I click on a link from a web page opened in Safari I get a blank black screen. Why can't I see the contents of the page?

    Is this any link in any page, or one particular link in a particular page?

  • Link to iTunes music store from a web page created in iWeb

    Is there a way to create a link to the iTunes music store from a web page made in iWeb. I'd like to make a list of songs, and link each one to the song on the music store.
    G5 Dual 2.7 GHz   Mac OS X (10.4.7)  

    James, am I right in assuming, then, that one has to
    have purchased that iTune from the iTunes Store? So,
    logically then, if I have song that I copied from a
    CD in my iTunes, iWeb would not link to it?
    Sure, you can link your own music .mp3 files this way...but it doesn't go directly to your music library. What you would do is to have a copy of your music file saved to the desktop. Then make a link to file (one of the options in the Inspector Hyperlink tab) to this music file. When you publish your page, a copy of the music file will be uploaded to your site as well...so that people clicking on the link that you made can download the file.
    You can also drag in your music file to iWeb and use QT to play the music file on your webpage.

  • When I try to access a web page or link from a web page I receive an error message like "Server not found" or "Unable to connect." After repeated "try again" attempts the page will load, but when I click on a button or link, the same thing repeats. Why?

    When I try to access any web page or any link from a web page, I receive an error message such as "Server not found" or "Unable to connect." After repeated "try again" attempts that the page will load, but as soon as I click on a button or link, the same thing repeats. Any suggestions?

    When I try to access any web page or any link from a web page, I receive an error message such as "Server not found" or "Unable to connect." After repeated "try again" attempts that the page will load, but as soon as I click on a button or link, the same thing repeats. Any suggestions?

  • How ias integrate with Snacktory for getting main text from an html page

    Hi All,
    i am new to endeca and ias, i have an requirement, need to get main text from whole html page before ias save text to Endeca_Document_Text property,
    as ias save all text in page to endeca_document_text property, it is not ok for reading when show in web page, i use an third party API to filter out the main text from original page,
    now i want to save these text to endeca_document_text property,
    an another question,
    i get zero page when doing the logic of filtering main text from original html text in ParseFilter( HTMLMetatagFilter implements ParseFilter) using Snacktory.
    if only do little things, it will work fine, if do more thing, clawer fail to crawl page. any one know how to fix it.
    log for clawler.
    Successfully set recordstore configuration.
    INFO    2013-09-03 00:56:42,743    0    com.endeca.eidi.web.Main    [main]    Reading seed URLs from: /home/oracle/oracle/endeca/IAS/3.0.0/sample/myfirstcrawl/conf/endeca.lst
    INFO    2013-09-03 00:56:42,744    1    com.endeca.eidi.web.Main    [main]    Seed URLs: [http://www.liferay.com/community/forums/-/message_boards/category/]
    INFO    2013-09-03 00:56:43,497    754    com.endeca.eidi.web.db.CrawlDbFactory    [main]    Initialized crawldb: com.endeca.eidi.web.db.BufferedDerbyCrawlDb
    INFO    2013-09-03 00:56:43,498    755    com.endeca.eidi.web.Crawler    [main]    Using executor settings: numThreads = 100, maxThreadsPerHost=1
    INFO    2013-09-03 00:56:44,163    1420    com.endeca.eidi.web.Crawler    [main]    Fetching seed URLs.
    INFO    2013-09-03 00:56:46,519    3776    com.endeca.eidi.web.parse.HTMLMetatagFilter    [pool-1-thread-1]    come into EndecaHtmlParser getParse
    INFO    2013-09-03 00:56:46,519    3776    com.endeca.eidi.web.parse.HTMLMetatagFilter    [pool-1-thread-1]    come into HTMLMetatagFilter
    INFO    2013-09-03 00:56:46,519    3776    com.endeca.eidi.web.parse.HTMLMetatagFilter    [pool-1-thread-1]    meta tag viewport ==minimum-scale=1.0, width=device-width
    INFO    2013-09-03 00:56:52,889    10146    com.endeca.eidi.web.parse.HTMLMetatagFilter    [pool-1-thread-1]    come into EndecaHtmlParser getParse
    INFO    2013-09-03 00:56:52,889    10146    com.endeca.eidi.web.parse.HTMLMetatagFilter    [pool-1-thread-1]    come into HTMLMetatagFilter
    INFO    2013-09-03 00:56:52,890    10147    com.endeca.eidi.web.parse.HTMLMetatagFilter    [pool-1-thread-1]    meta tag viewport ==minimum-scale=1.0, width=device-width
    INFO    2013-09-03 00:56:59,184    16441    com.endeca.eidi.web.parse.HTMLMetatagFilter    [pool-1-thread-2]    come into EndecaHtmlParser getParse
    INFO    2013-09-03 00:56:59,185    16442    com.endeca.eidi.web.parse.HTMLMetatagFilter    [pool-1-thread-2]    come into HTMLMetatagFilter
    INFO    2013-09-03 00:56:59,185    16442    com.endeca.eidi.web.parse.HTMLMetatagFilter    [pool-1-thread-2]    meta tag viewport ==minimum-scale=1.0, width=device-width
    INFO    2013-09-03 00:57:07,057    24314    com.endeca.eidi.web.parse.HTMLMetatagFilter    [pool-1-thread-2]    come into EndecaHtmlParser getParse
    INFO    2013-09-03 00:57:07,057    24314    com.endeca.eidi.web.parse.HTMLMetatagFilter    [pool-1-thread-2]    come into HTMLMetatagFilter
    INFO    2013-09-03 00:57:07,057    24314    com.endeca.eidi.web.parse.HTMLMetatagFilter    [pool-1-thread-2]    meta tag viewport ==minimum-scale=1.0, width=device-width
    INFO    2013-09-03 00:57:07,058    24315    com.endeca.eidi.web.Crawler    [main]    Seeds complete.
    INFO    2013-09-03 00:57:07,090    24347    com.endeca.eidi.web.Crawler    [main]    Starting crawler shut down
    INFO    2013-09-03 00:57:07,095    24352    com.endeca.eidi.web.Crawler    [main]    Waiting for running threads to complete
    INFO    2013-09-03 00:57:07,095    24352    com.endeca.eidi.web.Crawler    [main]    Progress: Level: Cumulative crawl summary (level)
    INFO    2013-09-03 00:57:07,095    24352    com.endeca.eidi.web.Crawler    [main]    host-summary: www.liferay.com to depth 1
    host    depth    completed    total    blocks
    www.liferay.com    0    0    1    1
    www.liferay.com    1    0    0    0
    www.liferay.com    all    0    1    1
    INFO    2013-09-03 00:57:07,096    24353    com.endeca.eidi.web.Crawler    [main]    host-summary: total crawled: 0 completed. 1 total.
    INFO    2013-09-03 00:57:07,096    24353    com.endeca.eidi.web.Crawler    [main]    Shutting down CrawlDb
    INFO    2013-09-03 00:57:07,160    24417    com.endeca.eidi.web.Crawler    [main]    Progress: Host: Cumulative crawl summary (host)
    INFO    2013-09-03 00:57:07,162    24419    com.endeca.eidi.web.Crawler    [main]   Host: www.liferay.com:  0 fetched. 0.0 mB. 0 records. 0 redirected. 4 retried. 0 gone. 0 filtered.
    INFO    2013-09-03 00:57:07,162    24419    com.endeca.eidi.web.Crawler    [main]    Progress: Perf: All (cumulative) 23.6s. 0.0 Pages/s. 0.0 kB/s. 0 fetched. 0.0 mB. 0 records. 0 redirected. 4 retried. 0 gone. 0 filtered.
    INFO    2013-09-03 00:57:07,162    24419    com.endeca.eidi.web.Crawler    [main]    Crawl complete.
    ~/oracle/endeca
    -======================================
    source code for parsefilter
    package com.endeca.eidi.web.parse;
    import java.util.Map;
    import java.util.Properties;
    import org.apache.hadoop.conf.Configuration;
    import org.apache.log4j.Logger;
    import org.apache.nutch.metadata.Metadata;
    import org.apache.nutch.parse.HTMLMetaTags;
    import org.apache.nutch.parse.Parse;
    import org.apache.nutch.parse.ParseData;
    import org.apache.nutch.parse.ParseFilter;
    import org.apache.nutch.protocol.Content;
    import de.jetwick.snacktory.ArticleTextExtractor;
    import de.jetwick.snacktory.JResult;
    public class HTMLMetatagFilter implements ParseFilter {
        public static String METATAG_PROPERTY_NAME_PREFIX = "Endeca.Document.HTML.MetaTag.";
        public static String CONTENT_TYPE = "text/html";
        private static final Logger logger = Logger.getLogger(HTMLMetatagFilter.class);
        public Parse filter(Content content, Parse parse) throws Exception {
            logger.info("come into EndecaHtmlParser getParse");
            logger.info("come into HTMLMetatagFilter");
            //update the content with the main text in html page
            //content.setContent(HtmlExtractor.extractMainContent(content));
            parse.getData().getParseMeta().add("FILTER-HTMLMETATAG", "ACTIVE");
            ParseData parseData = parse.getData();
            if (parseData == null) return parse;
            extractText(content, parse);
            logger.info("update the content with the main text content");
            return parse;
        private void extractText(Content content, Parse parse){
            try {
                ParseData parseData = parse.getData();
                if (parseData == null) return;
                 Metadata md = parseData.getParseMeta();
                ArticleTextExtractor extractor = new ArticleTextExtractor();
                String sourceHtml = new String(content.getContent());
                JResult res = extractor.extractContent(sourceHtml);
                String text = res.getText();
                md.set("Endeca_Document_Text", text);
            } catch (Exception e) {
                // TODO: handle exception
        public static void log(String msg){
            System.out.println(msg);
        public Configuration getConf() {
            return null;
        public void setConf(Configuration conf) {

    but it only extracts URLs from <A> (anchor) tags. I want to be able to extract URLs from <MAP> tags as wellGee, do you think you could modify the code to check for "Map" attributes as well.
    Can someone maybe point a page containing info on the HTML toolkit for me?It's called the API. Since you are using the HTMLEditorKit and an ElementIterator and an AttributeSet, I would start there.
    There is no such API that says "get me all the links", so you have to do a little work on your own.
    Maybe you could use a ParserCallback and every time you get a new tag you check for the "href" attribute.

  • Can I call a .htm page of view1 from another .htm page of view 2?

    Hi,
    I have a viewset QuestionnaireTabVS with a view area TABS which has two views  QuestionCondnsVS (default) and View QuestionRisksVS.
    When a variable say GV_TAB  is set as 'Questions' it navigates to the QuestionCondnsVS view and when the variable GV_TAB is set as 'Risks' it navigates to the QuestionnaireRisksVS.
    This view set QuestionnaireTabVS is contained in an overview page which  has two Radiobuttons. It works fine when  the first radiobutton is selected, i.e, when I click on the Questions it renders the QuestionCondnsVS view and when I click on the Risks it renders me the QuestionRisksVS view .
    Problem is when  I had clicked the RISK tab first and then selected the another radiobutton the rendered view QuestionRisksVS doesnt get removed
    but is present there by default which I dont want.I want the QuestionCondnsVS view to be present there by default after the second radiobutton is selected. I tried to refresh all the controllers but somehow it navigates to the  QuestionRisksVS only .
    So i thought to call the  .htm page of QuestionCondnsVS forcefully from the QuestionnaireTabVS .htm page as soon as I select the another radiobutton.
    Can I call a .htm page of QuestionCondnsVS from another .htm page of  QuestionnaireTabVS? If yes then how or any other suggestion is welcome

    Hi Dharmakasi,
    The Radiobuttons code is not added in the same HTML page but lies in a different component where the coding is on event handler.
    METHOD eh_onchecked.
      DATA: lv_option TYPE REF TO if_bol_bo_property_access,
            lv_check  TYPE char1.
      lv_option ?= typed_context->switch->collection_wrapper->get_current( ).
      lv_check = lv_option->get_property_as_string( iv_attr_name = 'OPTION'   ).
      IF lv_check EQ zcl_gaf_adm_toolbox=>gv_matrix_mnt_type_old.
        zcl_gaf_adm_toolbox=>gv_matrix_mnt_type = zcl_gaf_adm_toolbox=>gv_matrix_mnt_type_old.
      ELSEIF lv_check EQ zcl_gaf_adm_toolbox=>gv_matrix_mnt_type_new.
        zcl_gaf_adm_toolbox=>gv_matrix_mnt_type = zcl_gaf_adm_toolbox=>gv_matrix_mnt_type_new.
      ELSEIF lv_check EQ zcl_gaf_adm_toolbox=>gv_matrix_mnt_type_scaf.
        zcl_gaf_adm_toolbox=>gv_matrix_mnt_type = zcl_gaf_adm_toolbox=>gv_matrix_mnt_type_scaf.
        ELSEIF lv_check EQ zcl_gaf_adm_toolbox=>gv_matrix_mnt_scaf_anz.
        zcl_gaf_adm_toolbox=>gv_matrix_mnt_type = zcl_gaf_adm_toolbox=>gv_matrix_mnt_scaf_anz.
      ELSEIF lv_check EQ zcl_gaf_adm_toolbox=>gv_matrix_mnt_type_sow.
        zcl_gaf_adm_toolbox=>gv_matrix_mnt_type = zcl_gaf_adm_toolbox=>gv_matrix_mnt_type_sow.
      ENDIF.
    ENDMETHOD.
    Here the LV_CHECK = old is the first radiobutton whereas LV_CHECk = new is the second radiobutton. I have tried to set the value of gv_tab ='Question' here but again no success.
    The .HTM coding of QuestionanireTABVS is
    <%@page language="abap" %>
    <%@extension name="thtmlb" prefix="thtmlb" %>
    <%@extension name="chtmlb" prefix="chtmlb" %>
    <%@extension name="bsp" prefix="bsp" %>
    <% data: ls_line                type CRMT_THTMLB_LINK,
             lv_flag                type ABAP_BOOL.
        data: lv_xml                type string.
    if zcl_gaf_adm_toolbox=>gv_matrix_mnt_type = zcl_gaf_adm_toolbox=>gv_matrix_mnt_type_old.
       REFRESH controller->gt_navlink_tab[].
    *   if controller->gt_navlink_tab[] is initial.
         ls_line-id = 'Questions'.
         ls_line-onclick = 'QUEST'.
         ls_line-text = page->otr_trim( 'ZGAF_CRM_70/QUESTIONS' ).
         insert ls_line into table controller->gt_navlink_tab.
         ls_line-id = 'Risks'.
         ls_line-onclick = 'RISK'.
         ls_line-text = page->otr_trim( 'ZGAF_CRM_70/GLOBAL_RISK' ).
         insert ls_line into table controller->gt_navlink_tab.
         %>
    <%--   endif.  %>--%>
    <thtmlb:tray id     = "HeaderExt"
                 indent = 'FALSE'
                 design = 'STANDARD'>
      <thtmlb:trayHeader>
        <thtmlb:grid cellSpacing = "0"
                 columnSize  = "1"
                 height      = "100%"
                 rowSize     = "1"
                 width       = "100%" >
          <thtmlb:gridCell colSpan     = "1"
                       columnIndex = "1"
                       rowIndex    = "1"
                       rowSpan     = "1"
                       >
            <thtmlb:navLink links  = "<%= controller->gt_navlink_tab %>"
                    selectedLinkId = "<%= controller->gv_tab %>" />
        <bsp:call comp_id = "<%= controller->GET_VIEWAREA_CONTENT_ID( 'TABS' ) %>"
                  url     = "<%= controller->GET_VIEWAREA_CONTENT_URL( 'TABS' ) %>" />
          </thtmlb:gridCell>
        </thtmlb:grid>
      </thtmlb:trayHeader>
      <thtmlb:trayBody>
        <%
    *    data: lv_xml    type string.
        lv_xml    = controller->CONFIGURATION_DESCR->GET_CONFIG_DATA( ).
        %>
        <chtmlb:config xml     = "<%= lv_xml %>"
                       mode    = "RUNTIME"  />
      </thtmlb:trayBody>
    </thtmlb:tray>
    <% elseif zcl_gaf_adm_toolbox=>gv_matrix_mnt_type = zcl_gaf_adm_toolbox=>gv_matrix_mnt_type_new.
       REFRESH controller->gt_navlink_tab[].
    *   if controller->gt_navlink_tab[] is initial.
         ls_line-id = 'Questions'.
         ls_line-onclick = 'QUEST'.
         ls_line-text = page->otr_trim( 'ZGAF_CRM_70/QUESTIONS' ).
         insert ls_line into table controller->gt_navlink_tab.
    *     ls_line-id = 'Risks'.
    *     ls_line-onclick = 'RISK'.
    *     ls_line-text = page->otr_trim( 'ZGAF_CRM_70/GLOBAL_RISK' ).
    *     insert ls_line into table controller->gt_navlink_tab.
         %>
    <%--   endif.  %>--%>
    <thtmlb:tray id     = "HeaderExt"
                 indent = 'FALSE'
                 design = 'STANDARD'>
      <thtmlb:trayHeader>
        <thtmlb:grid cellSpacing = "0"
                 columnSize  = "1"
                 height      = "100%"
                 rowSize     = "1"
                 width       = "100%" >
          <thtmlb:gridCell colSpan     = "1"
                       columnIndex = "1"
                       rowIndex    = "1"
                       rowSpan     = "1"
                       >
            <thtmlb:navLink links  = "<%= controller->gt_navlink_tab %>"
                    selectedLinkId = "<%= controller->gv_tab %>" />
        <bsp:call comp_id = "<%= controller->GET_VIEWAREA_CONTENT_ID( 'TABS' ) %>"
                  url     = "<%= controller->GET_VIEWAREA_CONTENT_URL( 'TABS' ) %>" />
          </thtmlb:gridCell>
        </thtmlb:grid>
      </thtmlb:trayHeader>
      <thtmlb:trayBody>
        <%
    *    data: lv_xml    type string.
        lv_xml    = controller->CONFIGURATION_DESCR->GET_CONFIG_DATA( ).
        %>
        <chtmlb:config xml     = "<%= lv_xml %>"
                       mode    = "RUNTIME"  />
      </thtmlb:trayBody>
    </thtmlb:tray>
    <% elseif zcl_gaf_adm_toolbox=>gv_matrix_mnt_type EQ zcl_gaf_adm_toolbox=>GV_MATRIX_MNT_TYPE_SCAF or
              zcl_gaf_adm_toolbox=>gv_matrix_mnt_type = zcl_gaf_adm_toolbox=>gv_matrix_mnt_scaf_anz  or
              zcl_gaf_adm_toolbox=>gv_matrix_mnt_type EQ zcl_gaf_adm_toolbox=>GV_MATRIX_MNT_TYPE_SOW.
       REFRESH controller->gt_navlink_tab[].
    *   if controller->gt_navlink_tab[] is initial.
         ls_line-id = 'Questions'.
         ls_line-onclick = 'QUEST'.
         ls_line-text = page->otr_trim( 'ZGAF_CRM_70/QUESTIONS' ).
         insert ls_line into table controller->gt_navlink_tab.
    *     ls_line-id = 'Risks'.
    *     ls_line-onclick = 'RISK'.
    *     ls_line-text = page->otr_trim( 'ZGAF_CRM_70/GLOBAL_RISK' ).
    *     insert ls_line into table controller->gt_navlink_tab.
         %>
    <%--   endif.  %>--%>
    <thtmlb:tray id     = "HeaderExt"
                 indent = 'FALSE'
                 design = 'STANDARD'>
      <thtmlb:trayHeader>
        <thtmlb:grid cellSpacing = "0"
                 columnSize  = "1"
                 height      = "100%"
                 rowSize     = "1"
                 width       = "100%" >
          <thtmlb:gridCell colSpan     = "1"
                       columnIndex = "1"
                       rowIndex    = "1"
                       rowSpan     = "1"
                       >
            <thtmlb:navLink links  = "<%= controller->gt_navlink_tab %>"
                    selectedLinkId = "<%= controller->gv_tab %>" />
        <bsp:call comp_id = "<%= controller->GET_VIEWAREA_CONTENT_ID( 'TABS' ) %>"
                  url     = "<%= controller->GET_VIEWAREA_CONTENT_URL( 'TABS' ) %>" />
          </thtmlb:gridCell>
        </thtmlb:grid>
      </thtmlb:trayHeader>
      <thtmlb:trayBody>
        <%
    *    data: lv_xml    type string.
        lv_xml    = controller->CONFIGURATION_DESCR->GET_CONFIG_DATA( ).
        %>
        <chtmlb:config xml     = "<%= lv_xml %>"
                       mode    = "RUNTIME"  />
      </thtmlb:trayBody>
    </thtmlb:tray>
    <% endif.
    %>

Maybe you are looking for

  • Cell border on one side only

    I'm using CS3. I have an htm file with multiple rows and cells. I want to put borders around the cells so that they appear only on three sides, leaving the interior border white or empty or non-existant. This will make it appear that the border goes

  • Consistently need to re-link footage

    Every time I open this particular project, I need to re-link to footage. Its driving me crazy because I then need to re-render some pretty intensive render files. What can I do to prevent this in the future?

  • Can iPhone be set to silent ring for all unknown calls

    I want my iPhone to not ring except for numbers on my contact list.  Can this be done?

  • Enabling Help button in Self Service

    Hello, How do i enable Help button/link on self service. Please let me know. Its not available on all the pages. Thanks !

  • Service Level Reporting

    Hi,   I am trying to configure Service Level Reporting from Solution Manager 4.0 for one of the satellite system configured in SMSY. After selecting the system, under the link Central Performance History it is mentioned like "Enter the path for monit