AJAX :: JQuery Plugin: Calling JConfirm From (code Behind)?
Sep 10, 2010[Code]....
[Code]....
[Code]....
[Code]....
I have a custom control which is used on many pages. I am making use of a jQuery plugin shown in the below link. [URL]
Problem is this plugin loads on the pages which take time to load and fails on those which load quickly.I also have multiple instances of this plugin on the same pages. I have tried calling the plugin in two different ways as listed below. But it is making no difference.I am doing everything in .cs file. I don't have aspx or ascx file.
01)
Page.ClientScript.RegisterStartupScript(GetType(), "dropdownchecklistOrg-setup" +
this.GetHashCode(), string.Format("$(document).ready(function() {{ $('#{0}').custSelectBox();}});", listBox.ClientID), true);
02)
Page.ClientScript.RegisterStartupScript(GetType(), "dropdownchecklistOrg-setup" + this.GetHashCode(), string.Format("$('#{0}').custSelectBox();", listBox.ClientID), true);
I get the below error on the pages which are loaded quickly.
$('#ctl00_FullRegion_MainRegion_EditForm_PredefinedLocations_DropdownCheckList').custSelectBox() is not a function.
This issue was due to different versions of jQuery library being loaded. I had 3 plugins on the same page. 1 plugin was loading jQuery 1.42 version and the other 2 plugins were loading jQuery 1.32 version.If the 1.42 version was loaded at start up the other two plugins would fail to work.
So I have this idea of creating a asp.net user control, to handle all forms of modal popups (whether it be error handling, forms, dialogs, etc).
I already created this before, placing the user control in the top master page, exposing it to all content pages, so I could do something like:
Master.Popup.ShowException(Exception);
And the usercontrol itself would have the necessary markup to look like a modal dialog, and in the show method just do a .Visible = true.
This is all fine, but I've started thinking of implementing a bit of style with jquery. I'd like for the usercontrol to have some sort of jquery animation on show. But I don't know how to go about achieving this, as I don't know how I would call that jquery function from the codebehind instead of the popup.visible = true.
have a problem with the command jConfirm ..
View 1 RepliesI have an asp.net TabContainer control on my page (web forms). The TabContainer has two tabs and works fine. The first tab just contains text, the 2nd tab however, contains a JQuery image slider plugin which I used from here [URL]
The slider works fine on a normal page, if even works fine on the first tab. However, I cannot get it to work on the second tab. I've read that it's something to do with the fact that the second tab is inactive on load, therefore its display is set to none.
Ajax tab change results init of uploadify, So upon tab change FileUploader turn back to its native mode, only allowing one file interaction
View 1 RepliesI am wondering how i can use JQuery validation plugin in Ajax Beginform for client side validation.
Here is my code:
[Code]....
Controller Method:
[Code]....
I am wondering how i can use JQuery validate plugin before the controller method is called. These are the validation rules.
Password field is required field. Minimum length is 6. I am not sure where to specify this
[Code]....
. Ex:
[Code]....
I developed a page where i m using jquery treeview plugin to generate tree. It worked fine on FF, IE8 with out ajax.But when my page loads thro' ajax call in IE8, it is not collapsing or expanding tree.
View 5 RepliesI have the following jquery function
[code]...
but I need a way of calling the growlUI jquery function from my code behind file in C# rather than clicking on a div in the UI.
Is this possible?
If I use jQuery AJAX to call a specific ASP.NET page method how to have that method return a value back to the AJAX method that called it?
Update
My situation is I have an existing web application with many existing methods. I would like to be able to use jQuery to execute some of these methods and then update the UI with the results. My mandate is to stay away from ASP.NET AJAX and stick with jQuery. Management is concerned about continued development and support with ASP.NET AJAX from Microsoft. I agree with them.
I m trying to call a JQuery .click funtion after page postback from code behind. I m using ASP.NET with C#.
View 2 RepliesI am calling a jquery function after inserting a record to database...
[code]....
But it doesn't seem to work...
I have a java script function which presents a countdown timer.when the timer reaches zero, I want to somehow activate a function on the server side in the code-behind.I understand it is impossible to directly call a server-side function, but is there a simple way to still fire it?I want to fire the (event-handler) code behind function: protected void ButtonFinish_Click(object sender, EventArgs e).
var _countDowncontainer = 0;
var _currentSeconds = 0;
function ActivateCountDown(strContainerID, initialValue) { _countDowncontainer = document.getElementById(strContainerID);
[code]...
Webform with button, onclick I would like to execute jquery and call a server function in my code behind. Is this possible and can someone show me a brief example of how to.
View 7 RepliesI am trying to launch colorBox from the vb.net code behind. The reason for this is because I need to open another .aspx page displayed in colorBox.
If i was to hard code this an example would be:
[Code]....
The example5 is referring to:
$(".example5").colorbox();
The above works but I want to be able to achieve the same functionality from vb.net code behind when the user click HyperLink1.
I am trying to implement your code in "Calling ASP.Net WebMethod using jQuery AJAX", but the alert is giving me the value "Undefined".
I believe my website (asp.net c#) is not correctely configured for webmethods.
in default.aspx i am calling web method. bt every time its going to error method.
code is...
function login(btn) {
alert('a');
var email = document.getElementById("txtUserName").value;
var password = document.getElementById("txtPass").value;
[Code].....
my page Evaluation.aspx has this code
[Code]....
and I am calling the webmethod by javascript like this
[Code]....
The result is, I get the error function running and I get "undefined error" alert.Am I calling the procedure correctly? I put a breakpoint on the webmethod and it.
I am using asp.net3.5 C# with Jquery
I have created a webUserControl timer.ascx, I have a page showTime.aspx I have added timer.ascx into ShowTime.aspx on drodown change I want to display the current time.
but I am getting this error
This type of page is not served. Description: The type of page you have requested is not served because it has been explicitly forbidden.
[Code]....
I am trying to call an asmx service using the jQuery ajax call-
[Code]....
I have double checked the url of the service and spelling/case of the name of the method as well as the parameters in the dataStr.
I still get the error-<b> Description: </b>HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. review the following URL and make sure that it is spelled correctly.
in the responseText of XMLHttpRequest, above.
I've tried a bunch of different examples and still can't get this to work. I have a jQuery GalleryView control I'm using and I simply want to log impressions. I set up a webservice that works, but I can't figure out how to get it to work in javascript. I have verified that the webservice is working as expected.
Imports System.Web
Do not know if you know this plugin but basically it displays a tree.I'm having trouble using it, and would like your help to use this plugin.This link has a presentation of the plugin.Basically I have the project groups and projects where I display the tree, each project within their respective group. And once the user clicks on the group, the group is expanded showing all projects that group.Here is an example of use.
My environment is asp.net (C #)I would like to use this plugin to display the group's projects and projects under the tree:Follow the link for a code, as far as I could do.I would like to view the ul and li tags in the tree.
I want a sample that uses splitter jquery plugin dynamically with 2 panes.
View 1 RepliesI have just discovered the modal function and so am fairly new to it.I have a signup procedure that requires a member to be approved by the website administrator.During this Approval I wanted to display a Modal after the Approve button is pressed, which I have managed to do , but I have a textbox on my Modal so that the administrator can enter special notes about the members application. Once the OK button on the Modal has been clicked I want the Modal to save the content of the textbox back to database along with a couple of other things like changing the application status to approved and entering an approval date. I can do this in the codebehind no problem but how do I get the Modal to call the codebehind function and capture the content of the text box from the modal.I thought I could do this by setting the "OnOkScript" parameter on the Modal Popup Extender to the name of my code behind function but this just errors, presumably because it is looking for a jscript function? So my next step is to call the codebehind function from a jscript on the page.
View 1 RepliesI am doing a small application in asp.net using JQuery
View 2 Replies