Sunday, April 5, 2009

FamilySearch Record Search News

Explanation

I am playing with some of the information I learned at the FamilySearch Developers Conference. I've included code above to get the Record Search news that is displayed in the little box in Record Search. Unlike Record Search, I allow the text to be selected and copied to your clipboard.

I'm still learning various reasons why it isn't working for most of you. Because I am calling from my website to the Record Search website for information, your browser could get very nervous. Involving two websites can be unsafe if one of the websites is not trustworthy. But since Record Search is trustworthy, I need to figure out how to make browsers happy.

Update 13-Apr-2009

Thank you Logan for help making this widget work with non-Internet Explorer browsers.

5 comments:

  1. Love your "Ancestry Search Insider" column. I have learned a great deal from reading it. I do have a question, however, about this last issue: What do you mean when you write "I've included code above to get the Record Search news that is displayed in the little box in Record Search." What or where is the "code above?"

    ReplyDelete
  2. Genie,

    Thank you.

    The code should produce a white box before the title, "Explanation." Try viewing the article online with Internet Explorer.

    The AncestrySearch Insider

    ReplyDelete
  3. Genie, Try clicking on the title, Record Search News.

    ReplyDelete
  4. The .text property in the gadget source is IE-only. To have it work in other browsers, you need to use .firstChild.nodeValue instead:

    var html = response.getElementsByTagName("fsapi-v1:properties")[0].getElementsByTagName("fsapi-v1:property")[4].firstChild.nodeValue;

    ReplyDelete
  5. Logan,

    You're awesome! Thanks! I'll get this retrofitted into my widgets.

    - The Ancestry Insider

    ReplyDelete

Note: Only a member of this blog may post a comment.