944,150 Members | Top Members by Rank

Ad:
Nov 1st, 2009
0

bookmarklet problem

Expand Post »
Hi, I am trying to make a twitter bookmarklet that will tweet the current page, I currently have this code:
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. javascript:window.open('http://twitter.com/?status='+self.location)
but when I try it, it changes the page its tweeting to just show [object Window]

how can I fix this?
Reputation Points: 35
Solved Threads: 32
Posting Pro in Training
leegeorg07 is offline Offline
428 posts
since Jul 2008
Nov 2nd, 2009
0
Re: bookmarklet problem
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. javascript:window.open('http://twitter.com/?status='+document.location.href)
Last edited by Ezzaral; Nov 2nd, 2009 at 1:32 pm. Reason: Added [code] [/code] tags. Please use them to format any code that you post.
Reputation Points: 10
Solved Threads: 1
Newbie Poster
aaabbbdsftzhdfg is offline Offline
1 posts
since Nov 2009
Nov 2nd, 2009
0
Re: bookmarklet problem
thats exactly the same. But I found how to fix it, I just added a
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. void()
around it, it all works fine now problem solved
Reputation Points: 35
Solved Threads: 32
Posting Pro in Training
leegeorg07 is offline Offline
428 posts
since Jul 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: jQuery Cycle Plugin pager problem
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: Dynamic Ajax Content and Jquery





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC