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 <[email protected]> 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
