I am trying to use a jQuery plugin in a control. The pages that the control can be on use partial postbacks via an UpdatePanel. I include jQuery and the plugin during the control's PreRender event like this:
The customPlugin jQuery plugin sets up a new function called "executeCustomPlugin". Later in the PreRender event of the control, I use the plugin on an element on the control:
However, when it executes, I get the JavaScript error:
$('#elementId').executeCustomPlugin is not a function
It would seem as if the jQuery plugin is never executed at all, but I set up window.alerts in the jQuery.customPlugin.js file, and it is indeed being executed.
I have created a web page in asp.net 3.5. The page contains number of div. Based on user selection i will show the div as per requeriment. But now the number of divs are increased and the size of the page becomes too large. Then i decided to create the user control of every div. Now, my problem is how do i open a user control using UI Block Plugin of jquery. Because i have to block the backgroud controls.
I have a custom user control with some input fields and a submit button. I need to validate the fields using the jquery validation plugin when the submit button is clicked. (The function of the submit button is to create another custom control which displays the data entered in the above mentioned control)
Bt as far as I knw, validation plugin works only with form validation ryt? And my custom control does not contain a form tag as I am using master pages. The custom control is present in one of the content pages and the master page already contains a form tag with a runat=server attribute. And I guess one page can contain only a single form tag with runat=server attrib ryt?
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.
Is there any jquery tooltip plugin that allows to write some values in popup bubble and save that value in DB via AJAX?!It should also be able to display values from DB
I'm building an easy plugIn for validations, after setting up some options to be editable, and after cycling all the fields i wrote:
$(this).submit(function () {
where "this" is the main element (the form).Now I was wondering to use this plug-in in asp.net as well, so without using an html form, where there are just some inputs into a div and on click on a specific button it start...So I know that here I have to change the submit... and trying to bind it on click of the button... I don't know how to solve this...
am using Autocomplete Jquery from the following URL:[URL]I am making my project in MVC 3.0 (Razor) In this I am displaying list of names from the database and its running fine.Now I want to show this whole list in the div according to my project requirement.
i want to use jquery ui auto complete plugin in asp.net.
this is my behind code :
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim locations As String() = New String() {"Las Vegas", "Los Angeles", "Tampa", "New York", "s", "sss"} Dim jsArray As String = GetJSArrayForVBArray(locations) Me.ClientScript.RegisterArrayDeclaration("usernames", jsArray) End Sub Private Function GetJSArrayForVBArray(ByVal vbArray As String()) As String Dim myResult As New StringBuilder() For Each item As String In vbArray With myResult .Append(",'" & item & "'") End With Next If (myResult.Length > 0) Then Return myResult.ToString().Substring(1) Else Return "" End If End Function
I am making my custom jQuery plugin whose code is this:
[Code]....
My question is that how can I make item4 value to be compulsory? I want that user must enter value for Item4 . In my plugin I need to do some operations with item4 so how can it be made compulsory. I will be having one or more items too which should be compulsory. Is there any way by which I can warn user if the that value is not passed by the user ?
I am testing this JQuery plugin "Tag-it" by Levy Carneiro in my ASP MVC application.[URL]I want the plugin to fetch tags that i have in my mssql database and i wonder how to connect to it if someone could help?Now, my javascript looks like this:
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.
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.
my page are 1 checkbox and 1 hidden label and 1 hidden panel. With the help of forum member raghav_khunger I've managed to write the code which shows panel and label when checkBox is checked. I've also added the code which is checking on every page post back the status of checkbox and hide/show panel and label appropriately. This is working fine.However when I add jQuery Safari checkbox plugin [URL] problems appear.
Looks like the code which is handling click event is doing reverse thing: when panel and label should be hidden are shown. I can change this but then there would be problems because of the second part of the code which is checking checkbox on page load. So when I check the checkbox nothing happens. I must uncheck it and label and panel appears. But if panel is uncheck the label and panel would be hidden because on next page load (when user clicks button next).As I said before the same code is working fine and it's test in all browsers (IE,FF,O,S,C). Maybe there is problem with checkbox plugin since it's in beta version.
I'm using jQuery Multiple File Upload Plugin to upload several pictures. But form posts only 1, top, item. Fiddler (POST): POST /Images/UploadImages HTTP/1.1
Now I want to access the value of the "TxtItemId" control in the code-behind through a postback. How do I go about doing this ? BTW, this is for a scenario where a person will drag an item from a panel into a shopping cart and I need to capture the Id of the dropped item and trigger a postback after the drop to update the quantity of that item in the cart.
I have a problem to use jquery Plugin/Validation.I want to add a method and follow the documentation but I think I still missing some thing.First I add the method but I think I have a problem to implement it.
I 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.