It is currently Wed Jun 19, 2013 3:44 am

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Link to the local file
PostPosted: Mon Apr 14, 2008 1:03 am 
User avatar

Joined: Tue Dec 04, 2007 5:48 pm
Posts: 80
Location: El Dorado Hills, CA
How do I create a link to a local file that is located in the skin folder?
How do I add the link to a local file to the Map Manager?

I tried simple href="file.html" for both, but it doesn't work.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 14, 2008 1:19 am 
Senior Member
User avatar

Joined: Sat Aug 07, 2004 12:24 pm
Posts: 2226
Location: Western NY, USA
In the Stone Soup Current.wtp file I have a link to a local file specified with the anchor href option that works.

Code:
List of <A HREF="Changes.html">enhancements</A>.<BR>

This in turn is passed to the forecast's .html page unchanged and works well.

What does your href line look like?

A link in the Map Manager may require the file's whole path which could be troublesome.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 15, 2008 1:05 am 
User avatar

Joined: Tue Dec 04, 2007 5:48 pm
Posts: 80
Location: El Dorado Hills, CA
My link looks exactly like yours, and the file is located in the AppData/Roaming/WeatherWatcher/Skins/Forecast/MySkin folder.
When I click the link nothing happens; just nothing. Though if I put into HREF any web URL like http://google.com it opens a new browser window with this URL.

Something different happens in Map Manager...
When I create a new map and make the Map Link look like this
Code:
http://image.weather.com/web/flash/FMMain.swf?lat=38.69&long=-121.08&viewPortWidth=900&viewPortHeight=600&initialWeatherLayerType=radar&initialZoomLevel=5&wxAnimateOnStart=true
it works fine, but if I create a file map.html in my skin folder with
Code:
<iframe src="http://image.weather.com/web/flash/FMMain.swf?lat=38.69&long=-121.08&viewPortWidth=900&viewPortHeight=600&initialWeatherLayerType=radar&initialZoomLevel=5&wxAnimateOnStart=true"></iframe>
and put a link to it in the Map Link field, it shows a javascript error with the message "Invalid character" and does not show the contents of the iframe, but it DOES show everything else in the map.html.

Does anybody have any idea what is going on? :-s


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 15, 2008 1:46 am 
Senior Member
User avatar

Joined: Sat Aug 07, 2004 12:24 pm
Posts: 2226
Location: Western NY, USA
redhotpaprika wrote:
My link looks exactly like yours, and the file is located in the AppData/Roaming/WeatherWatcher/Skins/Forecast/MySkin folder.
When I click the link nothing happens; just nothing. Though if I put into HREF any web URL like http://google.com it opens a new browser window with this URL.

Ok, so that we are on the same page, the file you are linking to is an html file, in the same folder as your WW .wtp file, yes?

If you open the Forecast's html file in IE and click on the map link does it open then? When viewing the forecast in an IE window how does the Properties of the link compare to the URL for the forecast file in the IE Address window?

If you would like to upload the two files somewhere I could take a look at them for you.

Are you using any of the WW [INSTALL LOCATION] tags in your links? :-s hmmm with the move of the Skins and etc files and folders to the Windows Profile folders is/are there new WW TAG(s) indicating the new location of the Skins Mike??


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 15, 2008 7:02 am 
Site Admin
User avatar

Joined: Wed Nov 06, 2002 9:24 am
Posts: 4195
Location: Harrisburg, PA
Try the following build:
http://www.SingersCreations.com/Files/Unreleased/WW5625SSETUP.exe

Here are the new profile tags:
[PROFILE LOCATION] = C:\Users\HP_Administrator\AppData\Roaming\WeatherWatcher
[PROFILE LOCATION ESC] = C:/Users/HP_Administrator/AppData/Roaming/WeatherWatcher
[PROFILE LOCATION SLASH] =C:\\Users\\HP_Administrator\\AppData\\Roaming\\WeatherWatcher


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 16, 2008 2:41 am 
User avatar

Joined: Tue Dec 04, 2007 5:48 pm
Posts: 80
Location: El Dorado Hills, CA
Ok, something wierd is happening...
When I put in href ANY URL containing "C:" (either typing it by hand or using your tag) the IE somehow thinks that the actual path starts with "file:///C:/" - with three slashes instead of two!
I checked - the link works with two slashes, but I cannot make the IE put the right path in there; whatever I do it shows "file:///c:/..." and of course it does not work.

I'm stuck :confused3:


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 16, 2008 10:19 am 
Senior Member
User avatar

Joined: Sat Aug 07, 2004 12:24 pm
Posts: 2226
Location: Western NY, USA
Try \s in your URL rather than /s. Now you see why there are multiple formats to the LOCATION tags. :lol:

If I'm not mistaken you can also use relative paths, such as ..\..Icons\ etc, rather than absolute paths for the URLs.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 17, 2008 2:16 am 
User avatar

Joined: Tue Dec 04, 2007 5:48 pm
Posts: 80
Location: El Dorado Hills, CA
Thanks, Ed, but as I said before this three slashes thing happens always regardless of what tag I use.

Looks like some kind of WW/Vista/IE conflict...


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 17, 2008 2:13 pm 
Senior Member
User avatar

Joined: Sat Aug 07, 2004 12:24 pm
Posts: 2226
Location: Western NY, USA
FWIW

This href:
Code:
List of <A HREF="../Changes.html">enhancements</A>.<BR>

expands to this link: file:///C:/Documents%20and%20Settings/Owner/Application%20Data/WeatherWatcher/Skins/Forecasts/Changes.html

which works just fine for me both within WW, within IE and even within this posting. :shock:

Do note that the HREF points to an html file that is not in the same folder as the wtp files nor begins with a C:. Also note that the link begins with "file:" and 3 /s and works just fine.

As a quick experiment I dbl clicked on a Vista Current.html file which opened in IE, I then added "file:///" to the front of the URL in the Address window and it reopened just fine. Note the mixture of slashes in the resulting URL: file:///C:\Documents and Settings\Owner\Application Data\WeatherWatcher\Skins\Forecasts\Vista\Current.html

So "file:///" is a valid URL prefix for IE, regardless of the URL's other slashes.

I think something on your system is interfering with links to files on your pc. Could be an IE setting, a Vista setting, some other security app setting.

hth


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 17, 2008 11:32 pm 
User avatar

Joined: Tue Dec 04, 2007 5:48 pm
Posts: 80
Location: El Dorado Hills, CA
Yeah, I do exactly the same things. Except the link won't open in IE. Though if I rightclick on it and do "copy shortcut" and then insert it to IE address bar the URL transforms into a normal path "C:\Users\Owner\AppData\Roaming\WeatherWatcher\Skins\Forecasts\Vista\file.html" and opens OK.

If it works for you, then I suppose the problem is in either my IE7 or Vista OS.

As I said before: I'm stuck... :banghead:


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 18, 2008 12:01 am 
Senior Member
User avatar

Joined: Sat Aug 07, 2004 12:24 pm
Posts: 2226
Location: Western NY, USA
I just tried it on my machine with IE 7, it works there also.

FWIW The linked html file has these lines at the top:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- saved from url=(0031)http://www.singerscreations.com -->


hth


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group