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.
Thank you Logan for help making this widget work with non-Internet Explorer browsers.
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
The code should produce a white box before the title, "Explanation." Try viewing the article online with Internet Explorer.
The AncestrySearch Insider
Genie, Try clicking on the title, Record Search News.ReplyDelete
The .text property in the gadget source is IE-only. To have it work in other browsers, you need to use .firstChild.nodeValue instead:ReplyDelete
var html = response.getElementsByTagName("fsapi-v1:properties").getElementsByTagName("fsapi-v1:property").firstChild.nodeValue;
You're awesome! Thanks! I'll get this retrofitted into my widgets.
- The Ancestry Insider