jquery

jQuery UI Tabs and ajax form with mvc

Having problems with this setup what im trying to do is like so. Steps Fill out all elements of a Ajax.BeginForm(). Click submit The Ajax form then renders a partial view. The partial view has a list of tabs that handle different tasks. All tabs essentially have their own partial view. When each partial view is loaded they perform the...

Why doesn't the following jquery script work?

I have a simple single page setup. Under a root folder, I have 3 subfolders (js, css, and images). In the root folder, I have an index.html page with the following content: <html> <head> <title></title> <script language="javascript" src="js/jquery-1.3.2.min.js"></script> <script language="javascript" src="js/myscript.js"></script> </h...

How do I disable a Jquery function after some other event?

I want to disable the hover event on a particular list when another event occurs. ...

Can someone explain the following javascript code?

In addition to the explanation, what does the $ mean in javascript? Here is the code: var ZebraTable = { bgcolor: '', classname: '', stripe: function(el) { if (!$(el)) return; var rows = $(el).getElementsByTagName('tr'); for (var i=1,len=rows.length;i<len;i++) { if (i % 2 == 0) rows[i].className = 'alt'; Even...

JQuery GridView control

Does anything like this exist? What I am looking for is a control that is going to be client-side, with the Edit, Cancel row capabilities of a GridView. I wish to use it to collect the data from the user and then save on the server after the user is done entering data. EDITED: Thanks for all the recommendations. One thing that I wo...

Post multiple parameters to MVC Controller using jQuery.post

I have a controller defined as: [AcceptVerbs(HttpVerbs.Post)] public JsonResult PostMoreData(DataContracts.Address address, DataContracts.GeoLocation geoLocation) { return Json("test"); } where DataContracts.Address and DataContracts.GeoLocation are complex types. From my View i'm trying ...

Firefox plugin and document.ready

Hi, I am trying to develop a firefox plugin, which should be executed, whenever a page is loaded.Can someone please tell me which event to use it. In firefox, document.ready gets executed when I open a new window and it does not gets executed, when I open a new tab :(. Any help is appreciated. Thanks ...

troublesome javascript

I'm trying to make a little tag list doohickey for adding and removing tags. I have a textbox where the user can enter the tags, separated by commas. and an add button. I would like it for when the user clicks the add button to add a small div to the inside of a div below the box. the small div should contain the tag and a little x for w...

JQuery Autocomplete in Django not working

Guys, I have the following code from some example i got from here, but its not working on my django application. On my templete i have this function: $(function(){ setAutoComplete("tags", "tagResults", "/taglookup/?query="); }); and on my urls i have the following line (r'^taglookup/$', 'twine.twineapp.views.tag_lookup'),...

Creating and Removing Information with jQuery

I'm working on a tagging system and I want users to be able to add and remove tags on the page. for each one thats added I am displaying a small div with the tag and an x to remove the tag. I have the adding functionality working, but I'm not sure how to go about making it so I can remove them. I also have a hidden input which should hol...

proper way of bringing in jquery into asp.net (or any other external javascript)

What is the proper way, or perhaps can someone explain what is the difference between those three below? (I've seen people using jquery in their examples, and each one of them brings jquery into asp.net in a different way) 1.Page.ClientScript.RegisterClientScriptInclude(typeof(demo), "jQuery", ResolveUrl("~/js/jquery.js")); 2. <asp:Sc...

jQuery loop over JSON result from AJAX Success?

On the jQuery AJAX success callback I want to loop over the results of the object. This is an example of how the response looks in Firebug. [ {"TEST1":45,"TEST2":23,"TEST3":"DATA1"}, {"TEST1":46,"TEST2":24,"TEST3":"DATA2"}, {"TEST1":47,"TEST2":25,"TEST3":"DATA3"} ] How can I loop over the results so that I would have access to ...

Jquery - POST request turns out to be a GET request.. how come?

I never had such a problem and I'm pretty puzzled: function delete_post(id) { var answer = confirm("Are you sure you want to delete your post? (this action cannot be undone)") if (answer) { $.ajax({ method:"post", url: "ajax/delete.php", data:"id="+id, beforeSend: function(){ $('#delete_post').show('slo...

how to pass a parameter from an URL to a XSL stylesheet?

I have something like this: $('#output').xslt({xml: 'x',xslUrl: 'Test.xsl'}); How do I pass a parameter to the Test.xsl file and retreive the same url in the xsl file? I am using the jquery libraries: jquery.1.1.3.js and jquery.xslt.js Or is there any way I could send a parameter to my xsl file via js or jQuery ? ...

Jquery can't access original jquery objects from new div on ajx load event

I have a page that has a bunch of JQuery objects. On that same page, I have a form where you can enter search terms in a series of fields and click on a search button, which will then send an AJAX request to the server and then load the resulting HTML into a div. A very simply Jquery application... The problem is this. When you click on...

How to use css within a javascript function.

Hi, I am using jQuery monthly calender, in which every day is a cell, onClick in the cell, I am able to print the alert, but I also want to change the background color of the cell, on which I clicked. But I am not getting the way to call CSS using javscript. Please help me out. Thanks, Ram ...

jQuery: Batiste Rich-Text Editor -- how to update content?

Hello, I'm using this lightweight jQuery plugin to create a rich-text editor:Batiste RTE jQuery Plugin As part of a more complex form, I have the functionality of clearing changes and I want to be able to do this for the editor as well. I keep the initial content in a variable, and I want to do something like: setContent(INITIAL_CONTE...

JQuery addClass not working

I have the following code: function showAccessRequests_click() { var buttonValue = $("#showAccessRequests").val(); if (buttonValue == "Show") { $(".hideAccessRequest").removeClass("hideAccessRequest"); $("#showAccessRequests").val("Hide"); } else ...

jQuery: Adding to an element's event

Is it possible in jQuery to add an element's event? For example if I wanted to add a .fadeIn() to an element when it is clicked but also retain any other functionality that may already exist (given that I do not know if there is or isn't currently anything firing on click). ...

how to add paragraph on top of div content

How can I add multiple paragraph tag, newly tag on top within div container. <div id="pcontainer"> <p>recently added on top every time on click event recently added paragarph on top</p> <p>added before recent</p> </div> I am using append but every time I click button it add to bottom I need it to added on top of all paragraph plea...