bookmarklet problem

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved

Join Date: Jul 2008
Posts: 394
Reputation: leegeorg07 is an unknown quantity at this point 
Solved Threads: 31
leegeorg07's Avatar
leegeorg07 leegeorg07 is offline Offline
Posting Whiz

bookmarklet problem

 
0
  #1
25 Days Ago
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?
don't judge me because I'm a year 8!

'it is better to fight for something than to live for nothing'General George S Patton
Reply With Quote Quick reply to this message  
Join Date: Nov 2009
Posts: 1
Reputation: aaabbbdsftzhdfg is an unknown quantity at this point 
Solved Threads: 1
aaabbbdsftzhdfg aaabbbdsftzhdfg is offline Offline
Newbie Poster
 
0
  #2
24 Days Ago
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. javascript:window.open('http://twitter.com/?status='+document.location.href)
Last edited by Ezzaral; 24 Days Ago at 1:32 pm. Reason: Added [code] [/code] tags. Please use them to format any code that you post.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 394
Reputation: leegeorg07 is an unknown quantity at this point 
Solved Threads: 31
leegeorg07's Avatar
leegeorg07 leegeorg07 is offline Offline
Posting Whiz
 
0
  #3
24 Days Ago
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
don't judge me because I'm a year 8!

'it is better to fight for something than to live for nothing'General George S Patton
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the JavaScript / DHTML / AJAX Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC