[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

links in tweets not displaying correct after storing twitter widget.js locally

Posted on 2011-05-13
2
Medium Priority
?
385 Views
Last Modified: 2012-05-11
Hi,

I downloaded http://widgets.twimg.com/j/2/widget.js and stored the script locally so i doesn't have to be grabbed from the internet every time.

But if i use the local version of this file the links in the tweets are displayed like this:
target="_blank"@href="http://www.example.nl">www.example.nl
and "@"- signs are added in various places.

How can this be corrected / fixed?

Thanks!!
0
Comment
Question by:peps03
2 Comments
 
LVL 36

Accepted Solution

by:
Zyloch earned 2000 total points
ID: 35759623
After doing some research, I found that the problem is caused by Twitter's JavaScript having Unicode characters as part of a regular expression. The simplest way to correct your issue is to load http://widgets.twimg.com/j/2/widget.js in your browser with the UTF-8 character encoding, and then saving it. In Firefox, you can change the page encoding by going to View->Character Encoding. You may need to set the encoding when saving in your text editor as well if you do it by copying and pasting.
0
 

Author Closing Comment

by:peps03
ID: 35759943
Wow! Thanks very much Zyloch!!

That did the trick!! This really helps me a lot!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
Suggested Courses

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question