[jQuery] Re: this.style is null or not an object
Per my own post having to do with jQuery competing with other js files, yes it would seem to be a known issue. Here is the link that was provided to me for trying to solve the conflict and be able to keep all js files on the same page: http://docs.jquery.com/Using_jQuery_with_Other_Libraries Aaron On Sep 18, 10:07 am, kim <[EMAIL PROTECTED]> wrote: > i've found the cause of the error. seems like jquery doesn't work well with > scriptaculous. we are using the lightbox library, and it requires > scriptaculous. after excluding the scriptaculous library, my jquery code > works! > > is this a known issue? > > thanks. > > On Thu, Sep 18, 2008 at 7:01 PM, MorningZ <[EMAIL PROTECTED]> wrote: > > > the problem is you have a tag with the id of "showError" and you > > also seemingly have an event called "showError" > > > That's not good to have and is probably the source of your issue
[jQuery] Re: this.style is null or not an object
i've found the cause of the error. seems like jquery doesn't work well with scriptaculous. we are using the lightbox library, and it requires scriptaculous. after excluding the scriptaculous library, my jquery code works! is this a known issue? thanks. On Thu, Sep 18, 2008 at 7:01 PM, MorningZ <[EMAIL PROTECTED]> wrote: > > the problem is you have a tag with the id of "showError" and you > also seemingly have an event called "showError" > > That's not good to have and is probably the source of your issue > >
[jQuery] Re: this.style is null or not an object
ok, i had to make double checks and it's actually the when scriptaculous is used along side effects.js library. all these needed by lightbox. On Thu, Sep 18, 2008 at 9:07 PM, kim <[EMAIL PROTECTED]> wrote: > i've found the cause of the error. seems like jquery doesn't work well with > scriptaculous. we are using the lightbox library, and it requires > scriptaculous. after excluding the scriptaculous library, my jquery code > works! > > is this a known issue? > > thanks. > > > On Thu, Sep 18, 2008 at 7:01 PM, MorningZ <[EMAIL PROTECTED]> wrote: > >> >> the problem is you have a tag with the id of "showError" and you >> also seemingly have an event called "showError" >> >> That's not good to have and is probably the source of your issue >> >> >
[jQuery] Re: this.style is null or not an object
the problem is you have a tag with the id of "showError" and you also seemingly have an event called "showError" That's not good to have and is probably the source of your issue
[jQuery] Re: this.style is null or not an object
i just added tried out this jQuery code: alert(jQuery('#showError')); jQuery('#showError').hide(); the alert resulted to "[object Object]", but the call to hide resulted to the error "this.display is null or not an object". i'm using IE7 by the way. On Wed, Sep 17, 2008 at 9:42 PM, Eric Martin <[EMAIL PROTECTED]> wrote: > > It sounds like an issue with your page. Do you have any code examples > or a page that I can view? > > On Sep 17, 5:40 am, kimoy <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I'm developing on ASP.NET and have been trying to make the SimpleModal > > plugin work but somehow the jQuery.hide() function throws an error > > 'this.style is null or not an object'. > > > > This is my jQuery code: > > > > jQuery(document).ready(function(){ > > jQuery('#showError').modal(); > > > > }); > > > > Thanks. >
[jQuery] Re: this.style is null or not an object
here's the page declaration: x Error OK On Wed, Sep 17, 2008 at 9:42 PM, Eric Martin <[EMAIL PROTECTED]> wrote: > > It sounds like an issue with your page. Do you have any code examples > or a page that I can view? > > On Sep 17, 5:40 am, kimoy <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I'm developing on ASP.NET and have been trying to make the SimpleModal > > plugin work but somehow the jQuery.hide() function throws an error > > 'this.style is null or not an object'. > > > > This is my jQuery code: > > > > jQuery(document).ready(function(){ > > jQuery('#showError').modal(); > > > > }); > > > > Thanks. >
[jQuery] Re: this.style is null or not an object
i didn't put a runat='server' attribute to the element so when we do a viewsource the id is still 'showError' even if it's inside a contentplaceholder control. On Wed, Sep 17, 2008 at 9:42 PM, Eric Martin <[EMAIL PROTECTED]> wrote: > > It sounds like an issue with your page. Do you have any code examples > or a page that I can view? > > On Sep 17, 5:40 am, kimoy <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I'm developing on ASP.NET and have been trying to make the SimpleModal > > plugin work but somehow the jQuery.hide() function throws an error > > 'this.style is null or not an object'. > > > > This is my jQuery code: > > > > jQuery(document).ready(function(){ > > jQuery('#showError').modal(); > > > > }); > > > > Thanks. >
[jQuery] Re: this.style is null or not an object
It sounds like an issue with your page. Do you have any code examples or a page that I can view? On Sep 17, 5:40 am, kimoy <[EMAIL PROTECTED]> wrote: > Hi, > > I'm developing on ASP.NET and have been trying to make the SimpleModal > plugin work but somehow the jQuery.hide() function throws an error > 'this.style is null or not an object'. > > This is my jQuery code: > > jQuery(document).ready(function(){ > jQuery('#showError').modal(); > > }); > > Thanks.
[jQuery] Re: this.style is null or not an object
Are you sure the ID of the object is "showError"? Because if it's a server side control and you are using UserControls or MasterPages, then the ID of the object will get prepended by IDs of it's containers To confirm this is or isn't happening, simply do a "View Source" of the HTML and find that control and check the generated "id" property