Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Problem with bookmarklet in Safari

3:47 pm on Dec 9, 2008 (gmt 0)

Preferred Member

10+ Year Member

joined:Sept 4, 2002
votes: 0

Hi there,

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?


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members