Call Serverside Function Together With Jquery BlockUI?
Sep 29, 2010I want to show a Jquery blockUI when I click an asp:button that triggers a serverside function.
When the function ends, I want to do the unBlockUI.
I want to show a Jquery blockUI when I click an asp:button that triggers a serverside function.
When the function ends, I want to do the unBlockUI.
how to jquery call a other call function other class is not static
[WebMethod]
public static bool Verify(string username, string password)
//Do your logic with username, password here
//I am just checking with admin/admin credentials
Console.WriteLine("Ritu");
[code]...
I'm trying to call an blockUI after a buttonclick, but I can't get it to work.What am I doing wrong?Script:
$(function() {
$('#<%= btnSave.ClientID %>').click(function(e) {
e.preventDefault();
[code]...
I wonder if I could call a Function in code behind from jquery(client side), not to trigger a jquery function from code behind? I can not use linkbutton and button it must be a A-tag otherwise it loose it's purpose
View 3 Replies(function($) {
$.someplugin = function() {
....
function CallMe() { ... }
....
}
})(jQuery);
From outside of this plugin, how can I call the CallMe function?
I tried $.someplugin.CallMe, JQuery.CallMe, $.CallMe, nothing works.
I have a dropdown box on my aspx page, I would want o pupulate it using jquery's json of calling a method. I do not want to call a webservice method. I have a class, in C# and want to call a method from the class.
View 6 Repliesto call setTimeout method of javaScript in my jQuery script like this:
[Code]....
But it is not working as expected. I want to come alert message after every one second, but it is coming only when form is loaded for first time.alert message is not coming for the next time.Can you please tell me where i am wrong ?
I have developed a payment processing form where user fills the payment details and submit the button "Pay Now" ..what i want is to block the entire UI with the message "Processing Payment..." and with a slight delay right after payment processing stored procedure executes (in code behind) it should UNBLOCK the UI. Actually i was having multiple postbacks from user due to the slight delay ...I dont want to disable button.
View 1 RepliesTrying to use BlockUI and asp.net validation groups on a page but the validators are not fired.How to check which control fired the event and fire the validation group of that event inside jquery ?Here is the script file.
Sys.Application.add_init(function() {
// Allows the div.blockMsg style in CSS to
// override BlockUI's defaults.
$.blockUI.defaults.css = {}; [code].....
I am using BlockUI to show a modal. Within the blocked modal I have an update panel. Within the update panel I have a textbox and a button that submits the content back to the server. Everything works fine up to this point (the blockUI is called, the modal appears, and the button performs the postback). However, when the button's click event is fired the value for the textbox is consistently empty even if text was entered. When the update panel updates the textbox shows up blank. It appears that this may be some sort of viewstate issue and I haven't turned off viewstate.
<a href="javascript:$.blockUI({ message: $('#divTest') });">SHOW MODAL</a>
<div id="divTest" style="display: none;">
<asp:UpdatePanel ID="upTest" UpdateMode="Conditional" runat="server">
[code]...
i'm using microsoftMvcJqueryValidation and I want to call my own client-side validation function for a particular field with the system so that it fires with the other auto generated client-side validation.
Is there a certain place I can call my function?
i have a jquery .click() function that executes an .ajax() method call
[Code]....
when the .ajax() method executes succesfully it calls a javascript function
[Code]....
as you can see i have an .ajax() method inside my javascript function, is this possible? I am creating loop that starts on the finish listener of the soundmanager object. So when I need to make the ajax call to get he next url I need.
his function takes an li element and adds it to another ul element. After this code is fired the jquery events attached to the children spans of the li element do not fire the first time they are clicked.
View 2 RepliesI am using .sortable on a div that I have. What I want to know is, how do I call a function when the drop event occurs? Here is my code at the moment :
[Code]....
i want to call thickbox.js function in codebehind , below the code in jquery i want to call below code in codebehind
function tb_remove() {
parent.location.reload(1);
$("#TB_imageOff").unbind("click");
[code]...
<asp:Button id="Bu_DocShareSave" runat="server" Text="Save Share" OnClick="Bu_DocShareSave_Click"/>
protected void Bu_DocShareSave_Click (object sender, System.EventArgs e){
[code]...
I wanna call this jquery function in ASP.NET on button click event
var doRedirect = function() { location.href='http://www.example.com' };
$("#button1").click(function() {
$("#label1").show();
window.setTimeout("$('#label1').fadeOut('slow', doRedirect)", 10000);
});
In GridViewData.aspx.cs I have a method I want to call inside a javacsript function.
[Code]....
Now hears the kicker, I am mostly using jqUery as UpdateInsertData() is a jquery Call and works fine. How do I use ValidateNameUpdateable to call jQuery to return the value from the c# method. . I believe this issue is with my jQuery Call as its just posting and I need to do a $.get or something?
function ValidateNameUpdateable()
{
$(document).ready(function ()
{
$.post("GridViewData.aspx")
});
}
I have a question about the blockUI plugin.There are only three controls in my aspx page. Two buttons and one label.There is one button and one label sitting inside a hidden Div. The second button is outside the div.
When I click on the button outside, the modal popup will show (means the hidden div shows)My purpose is to let the label control to display some text when I click on both buttons. Sounds very simple, right? But with blockUI, it seems very difficult to me.The problem is, when I click either button, the label control doesn't display anything. It seems that BlockUI fires before the postback.
Here is my code
For ASPX file:
[Code]....
Code Behind.[Code]....
While using blockUI function of Jquery I am getting below Error:
parentNode is Null Or not an object I am display a div using the below code
$.blockUI({message:$('#divID')});
First time it will execute nicely but second time it gives error.
i'm trying to intercept ajax requests with jquery, to display a waiting message like with using plugin BlockUI, but how can i intercept requests sended by the UpdatePanel provided from asp.net framework, is some way to take the trigger?
View 2 RepliesI need to call Serverside event from Java Script.
FOr this i Used __doPostBack but page flickering is occured eventhought if we keep update panels,
I have a gridview control from gridview I am calling RowCommand event and then a Popup Page from Popup i will return some values and again i need to bind the values back to the DataTable and then to GridView.
In JS if i User doPostBack('xyz','') page flickering is ocurred and if i user doPostBack('updatepanel1','') ID also flickering is not occuring bt values gets binded to GRidview after 5 sec delay....
is ther any alternate sol for this to do...
any Jquery or any JS???
or if i use ScriptManager Page Method is there any issues with that bcz we need to have a static method in server side.....:(
i have the following function in default.aspx.....i have webusercontrol which have 10 checkboxes and 1 button .... i want when i click on button1 of user control then it can access the function of default.aspx ...page ...if i dragged the usercontrol to default.aspx
Normally if i use 10 checkboxes and 1 button in default.aspx then it works fine ... if i use 10checkboxes and 1button in usercontrol then drag that usercontrol in default.aspx then it will not work ..
[Code]....
I am getting a JSON object from a webMethod by the call below and I set some textBox values based on the returned objects attributes.Problem is, just for a moment my textBoxes are populated but then immidiately they return back to empty.Do I make a mistake or I cannot make DOM elements modifications within a success function?
var ajaxCallOptions = {
type: "POST",
contentType: "application/json; charset=utf-8",
url: "/JQuery/Chapter16-AJAX/PersonWebServices.asmx/GetPerson",
personId'));"/>
[code]...
I'm using jQuery BlockUI Plugin to show busy message when a click event is fired.
In the scenario below, it's working fine. The busy message shows and locks UI on click event, and dissapears when postback's done.
No file creation involved, which invokes browser Open/Save As dialog box
Mark-up:
$(function() { // when document has loaded
($.unblockUI); //unlock UI
//Show busy message on click event and disable UI
$('#btnDemo').click(function() {
[Code]....
I want to get rid of the busy message and unlock the UI when Open/Save As dialog box appears.