NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page need help with minor javascript coding for meebo

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
5 members in live chat ~  


Reply
 
LinkBack Thread Tools
Old 09-02-2010, 08:56 PM THREAD STARTER               #1 (permalink)
NamePros Regular
Join Date: Sep 2007
Posts: 244
hangman21 is on a distinguished road
 



need help with minor javascript coding for meebo


meebo instruction are very vague there example to create action button which is basically without the pop up menu
????: NamePros.com http://www.namepros.com/programming/675439-need-help-minor-javascript-coding-meebo.html


Meebo('addButton', {
id: "button1",
type: "action",
icon: "/images/icon.png",
label: "Hello World",
onClick: function(){ alert("Hello World."); }
});

i just want to know how can i change the onclick: so instead of using an alert i want have an url that opens up a new window?

this is the url i want to use SURFLINE.COM | Global Surf Reports and Forecasts, Live Surf Cams and Coastal Weather

thanks everyone
hangman21 is offline   Reply With Quote
Old 09-03-2010, 07:08 AM   #2 (permalink)
NamePros Regular
 
baxter's Avatar
Join Date: Apr 2006
Posts: 360
baxter is just really nicebaxter is just really nicebaxter is just really nicebaxter is just really nice
 


Ethan Allen Fund Save The Children
This should work, not sure how it will work with popup blockers etc most likely not open.

Code:
Meebo('addButton', {
id: "button1",
type: "action",
icon: "/images/icon.png",
label: "Hello World",
onClick: function(){ 
    window.open('http://www.surfline.com/home/index.cfm','SURFLINE.COM | Global Surf Reports and Forecasts, Live Surf Cams and Coastal Weather');
}
});
source Opening a New Window With JavaScript
__________________
Canadian Domain Registrar Ready.ca
baxter is offline   Reply With Quote
Old 09-03-2010, 10:27 AM THREAD STARTER               #3 (permalink)
NamePros Regular
Join Date: Sep 2007
Posts: 244
hangman21 is on a distinguished road
 



thanks alot baxter, it worked perfectly
hangman21 is offline   Reply With Quote
Old 09-03-2010, 12:01 PM   #4 (permalink)
NamePros Regular
 
baxter's Avatar
Join Date: Apr 2006
Posts: 360
baxter is just really nicebaxter is just really nicebaxter is just really nicebaxter is just really nice
 


Ethan Allen Fund Save The Children
np Hangman
__________________
Canadian Domain Registrar Ready.ca
baxter is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 02:37 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger