Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


linking to a js source file within javascript.



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> JavaScript Forum
View previous topic :: View next topic  
Author Message
rse
100+ Club


Joined: 10 Oct 2004
Posts: 114
Location: Leeds, UK

PostPosted: Fri Aug 25, 2006 10:34 am    Post subject: linking to a js source file within javascript. Reply with quote

Hi,

I'm trying to build a button for the Live toolbar which adds the page i'm on to my Live Favorites (as Microsoft haven't got around to introducing this feature yet).

The problem I have is that you are only given a small box in which to fit the URL/command on the button creation site (http://gallery.live.com/createcustombutton.aspx).

The code I need to put in is:
Code:
javascript:function qa(){t=document.title;u=escape(location.href);var q='https://favorites.live.com/quickadd.aspx?marklet=1&mkt=en-gb&url='+u+'&title='+t+'&top=0';location.href=q;}; qa();


Unfortunately there ins't enough space, so what i wondered is if there is a way to call the function with javascript:function qa() then link it to a source file with the function in (http://live.pipedev.eu/toolbar/AddFavorite.js)?

Otherwise can you suggest any ither options?

Thanks Smile

Ads
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> JavaScript Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap