Tooltips

Basically yes but I will try and get a sample doc prepared for you to download later.

That would be great. But I will try myself to see how far I can go before I get mud over my wellie tops and have to cry for help. Many thanks in advance

Richard


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Link here if you want to dissect - the important thing to remember is to get the paths to the various files correct.

http://www.deltadzine.net/unitip/unitip.html

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Ah - clearly not getting my paths correct - or is it something else?

If you have the time to take a look and see if you can spot what it is that I am not doing Dave I would be grateful.

http://www.richard-lowther.com/unitip/car.html

Regards Richard


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Richard

Firstly the scripts don’t appear to be where the page is expecting them to be. The refs on the page are to

 /unitip/car/Resources/unitip.js

and

/unitip/car/Resources/unitip.css

How did you get those files there? FTP - Upload Stuff?

Have you FTP’d into your server to see if they are there - if so Transmit allows you to select a file on the server and ‘Copy its URL’ - if you can do that then compare it with the path that you have in your Page HTML markup to see if they match.

To be sure you can use the full path to the files in your Markup ie

<script type="text/javascript" src="http://www.richard-lowther.com/unitip/car/Resources/unitip.js"></script>

If that is the correct path!

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi

I have made some progress and thanks Dave. I did use Upload Stuff but I was getting the path wrong, mostly by adding in /car when I should be just using the folder name (and the full path)!

When using Upload Stuff it renamed unitip.js as unitipa.js. I worked around this first time round by renaming it in my path and secondly by uploading it with its original name of unitip.js (I used Fetch but can also use FileZilla or Cyberduck if these are more useful). In both instances I got a result – but.

It made the tips work but not as in your demo. The text is there but no speech bubble.

http://www.richard-lowther.com/unitip/car.html

I will continue to work on it and let you know if and when I get somewhere. Should I be changing the pngs in some way? I used upload stuff to put them in the Resources of the unitip folder alongside the js and css.

Best wishes Richard


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

If you uploaded the images to the Resources folder, then open the
unitip.js file (the original one you are uploading using Upload Stuff)
and make sure that any references to the images include the Resources
part of the path.

Also, you need a programmer’s text editor to make these changes.
TextWrangler is free and powerful: http://barebones.com Using Word or
TextEdit in “rich text” mode will lead to a broken script, because all
sorts of invisible formatting cruft will be added to the text.

And the unitipa.js you saw was there because there was already a copy
of that file in the site folder when Freeway published. Freeway will
not step on files it doesn’t know about, so it silently renames them
to avoid overwriting a file it didn’t add to the folder. This can lead
to serious complications, particularly if you are hand-coding the
script tag in the Page / HTML Markup dialog. To work around this
problem, empty the local folder (where Freeway publishes your site
files before uploading) and publish again. You will get a clean copy
of everything, and the abcd etc. suffixes will be gone.

Walter

On Jun 22, 2010, at 3:37 AM, Richard Lowther wrote:

Hi

I have made some progress and thanks Dave. I did use Upload Stuff
but I was getting the path wrong, mostly by adding in /car when I
should be just using the folder name (and the full path)!

When using Upload Stuff it renamed unitip.js as unitipa.js. I
worked around this first time round by renaming it in my path and
secondly by uploading it with its original name of unitip.js (I
used Fetch but can also use FileZilla or Cyberduck if these are more
useful). In both instances I got a result – but.

It made the tips work but not as in your demo. The text is there
but no speech bubble.

http://www.richard-lowther.com/unitip/car.html

I will continue to work on it and let you know if and when I get
somewhere. Should I be changing the pngs in some way? I used
upload stuff to put them in the Resources of the unitip folder
alongside the js and css.

Best wishes Richard


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Some progress is being made. Thanks Walter for the info on Freeway adding suffixes to files. I did as you described and all is clean now.

I also looked in the unitip.js file with Textwrangler and was baffled so touched nothing.
I also looked into the unitip.css file and noted that there were three paths there refering to the images so I changed these to - my url/unitip/Resources/UniPoint.png etc. (the upercase R on Resources catching me out at first)

This has given me a result but not a complete one. Only the top and bottom of the speechbubble background is showing. Otherwise it is working as advertised. I will go back over everything again. I have looked at the files on the server and all seems OK as they do when using inspect elements in Safari but if you think that something in the .js file should be changed I would be grateful for any leads you can give me. I suspect it is here I have to do something but I lack the experience.

var uniTipTag = "a,img"; //Which tag do you want to uniTip-ize? Keep it lowercase. No spaces around commas.//
var uniTipClass = ""; //Which classes do you want to uniTip-ize? If you leave this blank, then all the tags designated above will get uniTip-ized. Match case. No spaces around commas.

Best wishes Richard


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

It sounds like your references to the images are not completely
changed. There’s also a chance that Freeway is putting one image in
one Resources folder and another in a different one. Is that initip/
subdirectory part of your Freeway document, or are you making a
separate test Freeway document that uploads to a subfolder of your
main site?

Walter

On Jun 22, 2010, at 10:47 AM, Richard Lowther wrote:

I also looked into the unitip.css file and noted that there were
three paths there refering to the images so I changed these to -
my url/unitip/Resources/UniPoint.png etc. (the upercase R on
Resources catching me out at first)


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I will look at the references again with my best specs on. The unitip/ subdirectory is part of my Freeway document, it is not a separate one. Looking at the files on the server I can see that the images are in the place specified and no where else. I can also look at them with Safari/ Inspect Elements/…

Maybe I should start over again to see what happens a second time around?

Richard


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Okay, then that clarifies this problem – if the files are all
together in one Resources folder on the server, then if you see some
images but not others, the code that is calling the images is wrong
somewhere.

Walter

On Jun 22, 2010, at 11:27 AM, Richard Lowther wrote:

I will look at the references again with my best specs on. The
unitip/ subdirectory is part of my Freeway document, it is not a
separate one. Looking at the files on the server I can see that the
images are in the place specified and no where else. I can also
look at them with Safari/ Inspect Elements/…

Maybe I should start over again to see what happens a second time
around?

Richard


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

OK Walter I found it having put my best specs on. Thanks for making me look more carefully. I copied and pasted one line of Dave’s code from his sample and changed the paths - Except I did not notice that two images are no-repeat and one is repeat. I had them all on no-repeat. Now the mid one repeats it fills in the missing portion. Hurrah

http://www.richard-lowther.com/unitip/car.html

Now to see if I can style these things!

Best wishes


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

yay!. Now figure out what is in the bottom-right of your layout that’s causing the page to scroll a very long way right and bottom.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

OK I’l try! At the moment an invisible thingamijib inherited from the master page. Sigh! But at least my tool tips are appearing.

R


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Once you have done it and got it working and comfortable with the process then I would create a folder outwith the FW document - ‘scripts’ for example - and FTP the JS, CSS and image files to there.

You then will know exactly where the files will be and can adjust the code in the header of the page, stop using Upload Stuff and forget about FW trying to manage them. And if if you use full paths then that code path will be the same for every page that you use the effect on.

You can then add any sort of external scripts to that folder by FTP for other effects that you might want to try.

As is now probably very obvious - it is often paths to files that trip us up.

And surprisingly I can even see the effect on my iPad if I am careful.

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Dave

I can also see them on my iPhone and even read them if I zoom in, albeit with a thin gap above and below the text.

It has been a useful exercise for me, not least in you and Walter teaching me the discipline of correctly written paths. My thanks to both of you.

I have been exploring the possibilities of styling the text in the css file and next will see if I can change the colour of the pngs without fouling up. I may even risk putting them on a client’s site! We shall see.

One final point. I noticed a reference to ‘unitpngfix.js’ on the site where I found this effect. Is this only needed for ie6? And therefore almost redundant?

Best wishes Richard


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I noticed a reference to ‘unitpngfix.js’ on the site where I found this effect. Is this only needed for ie6? And therefore almost redundant?

Probably - and if so not worth bothering about.

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Got this to work but now wherever I have alt text applied it ads a tooltip. Is there a way to only have it work on certain elements


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I have come back to this and see your point Marcel. I can only switch it off by deselecting the alt text in the inspector palette. Could there be another way to keep alt text but not having it show as a tool tip?

I quite like it though and yes Paul it would be good as an action - especially one which allows easy styling of text and modification of the background colour although I am finding I can do this without too much hassle.

Richard


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Try this:

http://actionsforge.com/projects/view/56-fix-ie-alt-tags

Joe

On 7 Jul 2010, at 14:47, Richard Lowther wrote:

I have come back to this and see your point Marcel. I can only switch it off by deselecting the alt text in the inspector palette. Could there be another way to keep alt text but not having it show as a tool tip?

I quite like it though and yes Paul it would be good as an action - especially one which allows easy styling of text and modification of the background colour although I am finding I can do this without too much hassle.

Richard


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Joe

The problem identified by Marcel is that once we have built our alternative tooltip with the scripts from http://labs.unitinteractive.com then it is applied to all alt text and titles regardless of the browser. I do have the fix ie-alt tags but that I thought only stops them popping up in IE? Certainly in has no effect on my test pages - the speech bubble pops up with vigour in Safari and Firefox. Yes we can switch them off in the inspector palette but this I guess is not sound practise.

Regards Richard


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options