Get your own customer support community

Recent activity

Subscribe to this feed
  • idea

    Ullas shared an idea in LUCI on November 11, 2008 02:34:

    Ullas
    Tips on dynamically adding HTML in XUL
    The following code was more helpful to me for creating an inserting elements dynamically
    It will be helpful if you cannot display your elements in the side bar
    // create the top level html tag
    var newElement = sidebarDoc.createElementNS('http://www.w3.org/1999/xhtml', 'html:a');
    // create a href attribute
    var href = sidebarDoc.createAttribute('href');
    // assign value // anchorTags is the array of tags obtained (see Yasser's post)
    href.nodeValue = anchorTags[i].href;
    // set the attribute to the tag
    newElement.setAttributeNode(href);

    other useful js calls can be :
    sidebarDoc.createTextNode(); // to create a plain text node ; the innerHTML property didnt work for me

    also
    anchorTags[i].innerText // will give you the text from the tags rather than HTML

    Hope this helps
  • question

    Ullas asked a question in LUCI on October 25, 2008 04:10:

    Ullas
    Using Immutable view or Mutable view ?
    I am wondering whether we should use Immutable View (like ImmutableSequentialGraph) or instead use a mutable view like ArrayListMutableGraph. The advantage of using a Mutable view is to make the graph as we parse the website. However in order to save the file or to extract any information we would need an immutable view which can be done only after crawling is complete or by using some synchronization.