JQuery :: Use BlockUI Inside User Control In .NET ?
Oct 1, 2009
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: '<h1><img src="busy.gif" /> Just a
moment...</h1>' });
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?
View 2 Replies
ADVERTISEMENT
Oct 18, 2009
I have this code
<div id="question" style="display:none; cursor: default">
<form id=loginForm> ITEM NO<input type="text" id="ITNO" />
<br/> ITEM NAME <input type="text" id="ITNM" />
<br/> Description<input type="text" id="Des" />
<br/>Category<input type="text" id="Cat" />
<br/>Quantity<input type="text" id="Quant" />
<br/> Remark <input type="text" id="Remark" /><br/>
<input type="button" id="yes" value="Save" />
<input type="button" id="no" value="Cancel" /></form>
And this
$('#addT2').click(function() {
$.blockUI({ theme: true,
// true to enable jQuery UI support
draggable: true, // draggable option is only supported when jquery UI script is included
title: 'This is your title',
// only used when theme == true
message: $('#loginForm2'), css: { width: '275px' } });});
$('#yes2').click(
function() {
var ITNO= document.getElementById("ITNO2");
var ITNM= document.getElementById("Repdate");
var Des= document.getElementById("Quant2");
var Cat= document.getElementById("Vend");
var Quant= document.getElementById("RecByt");
var r=confirm("Are You Sure");if (r==true) {
var ITNO1=ITNO.value;var ITNM1=ITNM.value var Des1= Des.value;
var Cat1= Cat.value; var Quant1= Quant.value;
// unblock when remote call returns $.unblockUI(); }
//return false; });
$('#no2').click(function() {
$.unblockUI(); return false;
});});
How if I want to add a datapicker() inside one of these text fields ?
View 1 Replies
View Related
Nov 6, 2010
I've been searching for about 3 days on this topic. I'm trying to get a template field inside of an ASP.Net detailsview control inside of an ajax updatepanel to work with the jquery datepicker. Very frustrating! I'm using VB with VS 2010. I can get the datepicker to work fine with a simple text box inside of an update panel but when I put it inside of a detailsview control it stops working.
View 4 Replies
View Related
Feb 1, 2011
I noticed a slight usability bug with blockUI. when we block, with a message div - the page is still scrollable. however the message div that comes up, stays where it is, as user scrolls the page. So for example, if the vertical screen resolution is low, the user can not see the bottom of the message div, and in my case the message div has some appept or cancel buttons, which makes my UI unusable?
Are there any workarounds to this solution, other then placing the message div to the top of the page?
View 1 Replies
View Related
Aug 5, 2011
How to find control inside row of selected rowindex. Here when i select first row, class must be toggled with tat row only.
[CODE]
$("td.Normal").hide();
$("td.Edit").show
[Code]....
View 2 Replies
View Related
Feb 14, 2011
I am trying to use jquery in an asp.net user control and i am getting a recuring problem. I am getting an error stated 'Object expected'......Can anyone help me on this issue
View 2 Replies
View Related
Jul 30, 2010
Not sure if this is the most appropriate forum, but I'm a jQuery newbie, so figured I'd start here. I put an accordion control on a web form, which seems to be working great!
[Code]...
The users tend to tab through the form. But when they tab to the end of an accordion section, the focus goes back to the top of the page. Is it possible to go straight to the next section of the accordion?
View 2 Replies
View Related
May 5, 2010
I have a <div> like
<div id="test2">
Name : <input type="text" name="test3">
<select name="test4">
<option>A</option>
<option>B</option>
<option>C</option>
[Code]...
My requirement is on change of any contol inside div i want to call a javascript function.
View 3 Replies
View Related
Feb 11, 2011
I have a javascript which loaded a google map on button ckick.. If I click the button again the map is not getting refreshed Is there any way to refresh the map?
View 1 Replies
View Related
Jul 20, 2005
I'm trying to use window.open from inside a user defined function, and
it's not working.
Mountain Man
============
<script>
function openFootnote(contentURL) {
window.open('contentURL','footnotes','height=180,w idth=160');
}
</script>
I've tried calling on the function 2 different ways, as shown below.
Nothing happens either way.
<a href="javascript:(void)" onClick="openFootnote(fn1.html);">...</a>
<a href="javascript:(void)" onClick="return
openFootnote(fn1.html);">...</a>
View 2 Replies
View Related
Apr 8, 2010
For some reason, IE8 insists on submitting an HTTP GET request when the user presses "enter" when inside of an <input> element.It's a rather curious thing because I have an <input type="submit" /> that has an event for "click" that contains the following code:
event.preventDefault();
event.stopImmediatePropagation();
This works on Firefox - if the user presses "Enter" inside of an input element on the form, the submit button will not execute. But on IE, it does. However, if the IE user "clicks" the submit button, it does the right thing.Do I have to also override keydown events too and stop those? Why does Firefox and IE work differently here?
View 1 Replies
View Related
Mar 24, 2010
Have a asp.net mvc project using jquery-ui-1.7.2. and BlockUI. When I changed jQuery version from 1.3.2 to 1.4.1, the CSS pertaining to the block ceased to render. The functions fired (verified by in-line alerts) and firebug had no complaints. Moved back to 1.3.2 and the blocker rendered perfectly.
View 2 Replies
View Related
Jun 2, 2009
I posted this in the UI group and was told to put it in here... My problem is that I have a function that is to call blockUI both upon login and logout. BlockUI only fires upon logout.
Here's my code:
**code**
function Processing(dataString,l_processing,control)
{
if (l_processing == "yes")
{
[Code].....
View 7 Replies
View Related
May 27, 2009
I am building a website that offers cash to users for completing offers. Such as signing up on a site and you get $1. I have very little javascript knowledge. But I do know that it can be used to "listen" for mouse clicks and such. So I am wondering how to go about it. Can I somehow, listen for mouseclicks a user makes, tracking what they clicked on, when they clicked on it, etc. inside a iframe, then pass the values thru php into my DB? I have also just started learning about cookies too, The other 'offer' sites I am a member of, and I would like to duplicate, (ex. www.inboxdollars.com) say sit uses cookies to track user actions for verifications.
View 1 Replies
View Related
Sep 22, 2010
When using blockUI, sometimes I get an error on line 462 of the code, near the end of the handler function:
This may or may not be due to firing multiple .block() events on the same element.
The problem seems to be limited to Firefox; IE8 & Chrome 6 work without an error. I have tested this on multiple Firefox installations.
I have a fix that checks to see if opts has been defined as a closure prior to its use:
If you could include this in your next version, that'd be great!
View 4 Replies
View Related
Oct 25, 2010
I use simple code
[Code]...
View 2 Replies
View Related
Aug 10, 2010
BlockUI is not submitting forms! Did I do something wrong? Please help by pointing me to the right direction.[code]
View 1 Replies
View Related
Dec 1, 2011
I have an overlay that is implemented using Malsup BlockUI, with a "close" button, however it won't close! - here's the details... I have a DIV that I use as an overlay:
<div id="mp" style="display: none; cursor: default">
<p>.....</p>
<ul><li>A</li><li>B</li></ul>
<div>
<span class="divbutton greenbutton mp_no" style="margin-right: 1em">not now thanks</span>
<span class="divbutton greenbutton" style="margin-right: 1em">
<asp:HyperLink ID="hypView" runat="server" style="text-decoration: none" NavigateUrl="~/mp.aspx">blah</asp:HyperLink>
</span></div>
</div>
Displayed using:
$.blockUI({ message: $("#mp").html() });
It has a cancel button (see above):
...
<span class="divbutton greenbutton mp_no" style="margin-right: 1em">not now thanks</span>
...
Which closes the overlay by means of :
$('.mp_no').click(function() {
alert("close overlay");
$.unblockUI();
return false;
});
However like I say, this simply refuses to close the overlay. I've used this same technique over and over again but this time something must be wrong. I just can't spot it! Moreover... if I place a button elsewhere on the page (and outside of the overlay DIV):
<span class="divbutton greenbutton mp_no" style="margin-right: 1em">not now thanks</span>
This will fire the click event, and is exactly the same "button" markup!
View 5 Replies
View Related
Jan 5, 2010
I have implemented blockUI for all buttons and a tags, using a custom message as shown:
<script type="text/javascript">
$.unblockUI
;
$
document
[Code]....
View 1 Replies
View Related
Oct 27, 2009
I am trying to block the whole page, but blockUI is not working with my layout (like the simple layout in demo).
View 1 Replies
View Related
Aug 15, 2009
how can I have transparent borders for modal divs that I bring to frond have transparent borders? specifying: border: 10 px transparent yellow; in the settings.css will not work. I tried few things, and I am beginning to think it is not doable.
View 1 Replies
View Related
Jan 6, 2010
in this plug-in I need a function like onUnblock but on completedfadein..
View 1 Replies
View Related
Oct 20, 2011
I'm sure this is simple to solve but I'm a newbie and I'm not sure what to do. I want to use the BlockUI plugin to show "page loading..." while my asp.net page loads some data - takes around 20 seconds. Once the page is fully loaded, I want the message to go away.
View 5 Replies
View Related
May 4, 2011
I'm trying to set a modal to the top right corner of the screen using block ui. In IE 6 the right margin is working, but it's ignoring the top margin and centering the modal in the window. In other browsers it behaves as expected
View 1 Replies
View Related
Jul 15, 2009
I am using the BlockUI Plugin version 1.33 with Jquery Version 1.2.1. When the application page is accessed in which the block and unblock UI calls are executed, IE is crashing randomly.
View 2 Replies
View Related
Aug 3, 2009
You should be able to replicate this on http://malsup.com/jquery/block/#pageGo to the page above and click on "Default Message" button and makesure you don't move the mouse cursor.You should see that the cursor remains a hourglass even after the pagecomes back, to get the correct cursor you have to move the mouse.
View 1 Replies
View Related