Thank you!
I try this (and variant without the function $(document).ready
(function() and .click(function()), inside ASCX in my control:
$(document).ready(function() {
$('#BUTTON_TEST').click(function() {
$.blockUI({ message: $('<%=divPopUp.ClientID %>') });
});
$('<%=BUTTON_CLOSE.ClientID %>').click(function() {
$('<%=divPopUp.ClientID %>').unblock();
});
});
I show this pop up by a server-side method (called by another page)
that turn visible this div.
Legend:
divPopUp -> this is my div that join all element of my popup
BUTTON_TEST -> this is a input type submit, inside the divPopUp
BUTTON_CLOSE -> this is a image button, inside the divPopUp
Do not work for me and return a error: Run-time execution error of
Microsoft JScript: Object expected
Regards,
On 1 out, 14:00, MorningZ wrote:
> To answer your question on a high level overview: of course it's
> possible to use the plugin with/inside a user control. all your
> ASP.NET code is doing, and this is whether it's a stand alone ASPX
> page, one with MasterPages, and/or using User Controls, at the end of
> the page generation you are creating HTML and sending to the client
> browser, at what point the JavaScript/jQuery comes into play
>
> So figure out what you are generating, where you want to "block", and
> wire in your code to ".block" and ".unblock" accordingly, and it
> doesn't take clicks or iframes to make the plugin do it's thing
>
> On Oct 1, 10:04 am, Renan wrote:
>
> > Hello buddys
>
> > I am a ASP.NET developer and I would like to use the jQuery BlockUI
> > inside a generic control, designed to show a popup (with javascript
> > and CSS effects). My problem is to disable (key tab, enter and mouse
> > clicks) the parent window (parent element) (my control is inside the
> > page and does not use iframe).
>
> > Inside my control I have a DIV and I show his content when the user
> > call the method designed.
>
> > The problem is: I only see the "caller" of BlockUI using this type of
> > eventhandler "CLICK", ex:
>
> > $('#pageDemo2').click(function() {
> > $.blockUI({ message: ' Just a
> > moment...' });
> > test();
> > });
>
> > It is possible apply that property inside the blockUI out of my DIV
> > (parent element), inside my control, without click ? Is it necessary
> > to use a iframe?
>
> > I try other ways and do not work for me
>
> > Regards,