homepage Welcome to WebmasterWorld Guest from 54.166.116.36
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Problem with bookmarklet in Safari
garann

10+ Year Member



 
Msg#: 3803454 posted 3:47 pm on Dec 9, 2008 (gmt 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?

 

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved