close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Having problems...

Thread began 6/10/2011 7:45 pm by iansheldon422428 | Last modified 6/16/2011 8:01 pm by Larry | 3616 views | 19 replies |

iansheldon422428

Having problems...

Hi Chaps,

I went ahead and took the plunge.

I've applied the Tooltips to a page, that already had Spry Validations on the Input elements of the page but the Tooltips dont show - I just get the standard Spry Validation errors still as far as the colour of the input elements are concerned but I get no error message now - neither the standard spry error or the new tooltip.

I see that the WA Code has been added to the page.

<script src="webassist/validation_tooltips/validation_tooltips.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="webassist/validation_tooltips/validation_tooltips.css"/>
<script type="text/javascript">
var WA_SpryValidationTooltip_ErrorTips = new WA_SpryValidationTooltip(15,5,20,"center","top-center",1,5,"#000","#000","#fff","#fff",80);
</script>



Am I missing something here? The webassist/validation_tooltips directory has been uploaded to the server.

Cheers
Ian

Sign in to reply to this post

iansheldon422428

Ah, I've been doing some experiments with this today.

It appears that I have to wrap my spry elements in a relative DIV in order that the message appears in the right place.

I didn't see this in any of your documentation?

So problem solved - and if anyone else gets the same problem where it appears the tooltips aren't showing I hope my resolution works for you.

Cheers
Ian

Sign in to reply to this post

CraigRBeta Tester

I just got this too.

Looks nice, but when i tried to apply the tooltip to a page based on a template, nothing happened.

When I broke the link from the template, the tooltip applied , but right at the top of the page, nowhere near the field.

What determines the position of the tooltip relative to the text field ?

Sign in to reply to this post

Ray BorduinWebAssist

It should automatically position the tooltip using javascript based on the position of the form element it is related to.

If you have a sample URL I can take a look and see what is going on.

Sign in to reply to this post

iansheldon422428

Hi Ray,

I haven't got an active URL that can replicate the problem as such, but the fix has been easy enough - to wrap the form element in a relative DIV which I assume makes the script aware of where to place the tooltip in relation to the form element.

Without wrapping the form element in a relative DIV I just can't get it to work at all.

Cheers
Ian

Sign in to reply to this post

Danilo Celic

As Ray says the code added to the page should appropriately position the tooltips and shouldn't require a wrapper relative div. I did a good bit of testing on forms that had a variety of styles applied somewhere up the DOM tree, including withing absolutely positioned, positioned relative, and no positioning each with various borders margins and paddings applied.

When you're able to please post a page that exhibits this issue so we can try to track it down.

Sign in to reply to this post

CraigRBeta Tester

My template was supplied by my client.

This may not be relevant, but I noticed that within the head section of the page, they created 2 editable areas called link and style.

There wasn't an editable area called head in the template.

I changed this, and now at least, the paths to the tooltips css and js files are written to the page, (in the head section), so the page is updated without needing to detach it from the template.

The message is still at the top of the page, not near the field, but it is likely down to the template file.


I did the same on on of my own sites, and it works flawlessly. absolutely great

Sign in to reply to this post

jim286478

Originally Said By: Danilo Celic
  As Ray says the code added to the page should appropriately position the tooltips and shouldn't require a wrapper relative div. I did a good bit of testing on forms that had a variety of styles applied somewhere up the DOM tree, including withing absolutely positioned, positioned relative, and no positioning each with various borders margins and paddings applied.

When you're able to please post a page that exhibits this issue so we can try to track it down.  


I have a similar problem where the tooltip is not showing next to each text field where it suppose to. When I apply a relative positioning to the div tag it gets closer to the text field but still a ways from it. Please check this out on register.php
Thanks

Sign in to reply to this post

CraigRBeta Tester

Here is my example where the tooltip appears right at the top of the page.

Try clicking in the first name field, error checking is set to trigger on blur

checkout_t3.php

Sign in to reply to this post

Ray BorduinWebAssist

It looks like both of these sample pages have other javascript errors that aren't related to Validation Tooltips that are probably causing the Validation Tooltips to not run properly.

I'll try using WebAssist Site Import to get a copy of the pages and scripts and see if I can debug and get them working, but I'd start by looking at the javascript errors on those pages and trying to get them corrected. My guess is that correcting the javascript errors will fix the tool tips, but I'd have to test that theory to be sure.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...