Object doesn't support this property or method

This post has 6 replies

Not Ranked
Posts: 1
Anthony Romano Posted: Fri Jun 22, 2007 @ 10:25 AM
Hello

I'm trying to hide/show the Dialog object using javascript. When I call:

<%=Dialog1.ClientID %>.Show();

I get a JS error that the object doesn't support this property or method. The documentation seems to imply that for the AJAX library I don't need to worry about copying client side JS files to my web server. Is there anything I need to do to ensure this works?
Top 10 Contributor
Posts: 6,149
stephen Posted: Tue Jun 26, 2007 @ 12:02 PM
Can you try using just Dialog1.show()?
Stephen Hatcher, Developer Support Manager
Not Ranked
Posts: 4
star25 Posted: Wed Aug 1, 2007 @ 7:41 PM
hi

i try putting <%=Dialog1.ClientID.close() %>; however i encounter "The name 'Dialog1' does not exist in the current."

Anyone can help?

Thanks,
star25
Top 10 Contributor
Posts: 6,149
stephen Posted: Thu Aug 2, 2007 @ 1:06 PM
You're using the server syntax- just use client. Remove the <%= %> (and the clientId property). It would just look like Dialog1.close().
Stephen Hatcher, Developer Support Manager
Not Ranked
Posts: 9
agrawars Posted: Tue Jul 19, 2011 @ 8:08 AM
Hi Stephan,

I am facing similar issue. Dialog1 is coming as undefined for me.
Not Ranked
Posts: 9
agrawars Posted: Tue Jul 19, 2011 @ 9:00 AM
Hi Stephan,

While loading the dialog control on my page, I am getting a javascript error from the dynamic component javascript file. File is ComponentArtScript....1_1124_4(Dynamic)

==================
if(cart_browser_ie&&_4.RenderOverWindowedObjects) 
===========================

Please suggest.

 
Top 10 Contributor
Posts: 6,149
stephen Posted: Tue Jul 19, 2011 @ 11:36 AM

I'll very likely need more than this, but if you're using a masterpage: try setting AnimationType to none. If you're not, I'll need to see your code. 

Stephen Hatcher, Developer Support Manager
Page 1 of 1 (7 items)