Msg#: 3803454 posted 3:47 pm on Dec 9, 2008 (gmt 0)
I'm working on a bookmarklet to share news articles. Nothing complicated, it just looks for the title or the article and its URL, then sends those in the querystring back to our site. It's working in all major browsers with the exception of Safari. Safari seems to be choking on the external function that parses the page looking for the article title. The function is called writeNews(), and it should return the title as a string. The error I see in Web Inspector is:
ReferenceError: Can't find variable: writeNews
Any idea how I could get around this? I'd like to keep the function on our servers so that we can update it if we need to. Currently I'm getting access to it by adding a script tag to the article page and setting the JS file containing writeNews() as the source.
Thanks for any suggestions!
EDIT: I should add that it does work in Chrome. So maybe a security feature or bug that's unique to Safari?