Recent Widgets


Register for DashboardWidgets

Recent Forums Posts

Partners


iCompositions

MacDesktops.net

RSS Showcase
RSS Comments
RSS Forums

This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. Posted in: Widget Central

Help getting physical path of widget

Author Message
lisbakke



Joined: 18 Dec 2005
Posts: 7

Posted: Fri Dec 23, 2005 - 1:39 am    Post subject: Help getting physical path of widget Reply with quote

I have a widget that uses a flash file located on a remote server. I was having troubles getting it to work, so instead of messing with the paths for the code for it, I used <base href="http://www.current.tv">.

Now that I have a base URL, that means when I am linking to my local files (inside the widget) ex. <img src="Default.png" width="470" height="190"> it will be be trying to grab http://www.current.tv/Default.png which does not exist.

If I keep this <base href> tag, how can I have it not be applied to specific URLs?

Another solution to my problem would be, how do I find the physical location of the widget in Javascript?
View user's profile Send private message Send e-mail AIM Address Widgets
lisbakke



Joined: 18 Dec 2005
Posts: 7

Posted: Fri Dec 23, 2005 - 11:51 am    Post subject: Reply with quote

window.location does it.
View user's profile Send private message Send e-mail AIM Address Widgets
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.

 
Powered by phpBB © 2001, 2002 phpBB Group