Win a copy of React Cookbook: Recipes for Mastering the React Framework this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

Need Help wtih a Jquery plugin + IE + blur function

 
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I am using this plugin called jquery callout plugin. Now I have on submit if the fields are not valid it should popup this callout(one at a time).

Now when the user goes to click on that field I have it so that callout will be closed(through their .close function). Now in firefox and chrome it has no problems with this. However in IE(6,7,8) it has a problem with this and I believe it is because there might not be anything to close. Like if they are just filling in the form in for the first time they will click in the box and it will try to close the call out so this causes the browser to like freeze for a while and almost kills it.

So I am not sure how to detect though if this call out is open or not.

Here is the site:

http://www.carnovsky.net/samples/jquery_callout_plugin.htm (called Form Validation Errors)


Here is my function

$('#ctl00_CPH_MainContent_txt_CourseName').blur(function(event)
{

$("#ctl00_CPH_MainContent_txt_CourseName").closeCallout().focus();

});


So I just need a way to tell if it is open or not. The thing though is the callout does not put anything beside it so I don't think I can look what is right beside the textbox and see if something there is not. I tried to look at the div that I had to make(that get filled with the call out and positioned) and thought maybe it changes it's css display from none to nothing(visible) but this does not seem the case. What it seems to do is changes it to "block" but I am not 100% sure if I should base my whole if statement on this piece of information what may or may not be creditable.

So any idea?
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you emailed the creator of the plug-in?

Eric
 
Michael Hubele
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Eric Pascarello wrote:Have you emailed the creator of the plug-in?

Eric



No email is given on the site.
 
And when my army is complete, I will rule the world! But, for now, I'm going to be happy with this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic