hey leonspencer, thanks for your reply. dont think title part as page title, it is just a short explanation. what i am trying to do is like "i am reading this: http://www.mypage.com/article.aspx", i mean at the beginning of the status a short explanation and after that, link to the page, explanation part will be taken from page title. this does not encounter any error, works properly except turkish characters :) any other idea?
On Tue, Oct 20, 2009 at 11:23 AM, leonspencer <spencer_l...@yahoo.com>wrote: > > Hi. > > I dont think the syntax is right for what you are trying to do. The > window.open() syntax is as follows: > > window.open (URL, windowTitle); > > Combining this into one string as you have done causes all this to be > interpreted as a parameters to Twitter status method, which is not > what you intended. And since these are not valid parameters to the > status method, you'll probably have errors too. > > Try the following: > > var strTwitterApi = 'http://twitter.com/statuses/user_timeline.xml' > > or > > var strTwitterApi = 'http://twitter.com/statuses/ > user_timeline.rss' > > or > > var strTwitterApi = 'http://twitter.com/<your username>' > > Then window.open (strTwitterApi, 'Document Title or whatever'); > > Leon > > > On Oct 20, 12:16 am, sa <sadullahke...@gmail.com> wrote: > > hey all, > > i am trying to send twitter status over my web site but having some > > encoding problems, i can not see turkish characters, i use a code > > snippet like this : > > var sText = "http://www.twitter.com/home?status=" + document.title > > + ':' + location.href; > > window.open(sText); > > //document.title shows my page's title and location.href is a link to > > my page > > do you have any idea ? how can i solve my encoding problems? > > > > thanks in advance. > > > > ps:i had tried using encodeURIComponent method with title part but it > > did not work >