jquery

Output CSV to download via jquery

UPDATE: Solved via: append = append+'/output/'+output; var url = '/producer/json/index/period/'+period+'/empties/'+empties+'/movies/'+movies+'/fields/'+fields+'/start/'+start+'/end/'+end+append+''; $.ajax({ url: ''+url+'', success: function(msg) { ...

Javascript/jquery Images slideshow does not work.

Hi guys, I am trying to create an easy slideshow but It is not that easy at all :(. I have few problems to make it work. Here is my code so far: http://jsfiddle.net/WUE9g/1/ PS: I would much appreciate any kind of help. Thank you! ...

CSS and jQuery Simple Question

Just starting using css and jQuery and I have a CSS class called .content which I'm using for a side of the page navigation box, picture of the day box, statistics box, etc., which are layed out using a definition lists. So I need it when I click on the <dt> tag it slides up/down the <ul> tag underneath it which is simple enough. but h...

How to show hidden div on mouse over using jquery?

I want to show hidden div on hover of <div class="thumb"> and i have multiple div on page each thumb div has different content images. width is fix for all div but height of large div <div class="large" style="display:none"> can be extended upon content after the image inside div. Text of h2 will be always the same in both div. If mous...

ASP.NET MVC rendering partial view with jQuery ajax

I have a controller action which renders a partial view: public ActionResult Details(int id) { DetailsViewModel model = ModelBuilder.GetDetailsViewModel(id, _repository); return PartialView("Details", model); } and I'm loading the returned content into a dynamic element as follows: $container = appendContainer(); // ...

transfered img to canvas (with a jquery plugin), how to continue working with the canvas?

hi, i wrote a nice plugin which transforms IMG to canvas jQuery.fn.img2canvas = function() { return this.each(function(){ if($(this).get(0).tagName=='IMG'&&$(this).parent().get(0).tagName!='CANVAS') { //alert($(this).get(0).tagName); $(this).load(function() { v...

What is the difference between .click(...) and .live('click', ...) ?

Consider the following code: HTML: <div id='button' class='enabled'>Press here</div> <div id='log'></div> CSS: #button { width: 65px; height: 25px; background-color: #555; color: red; padding: 10px 20px; } #button.enabled { color: #333; } #button.enabled:hover { color: #FFF; cursor: pointer; } JavaS...

Concatenate href value and jquery result in href of anchor tag

Hi, Below is my code present in my application : <input id="input" value="Testing" /> <a href="/captures/getTranslation/?TB_iframe=true&amp;modal=true&amp;height=380&amp;width=670&amp;" name="Signup" id="signuplink" title="Post" > Test </a> I am posting some data to one page, i am getting all the attached parameter in my result pag...

remove quotes from keys in a json string using jquery...

Consider this as my json string, {"Table" : [{"userid" : "11","name" : "KumarP","designation" : "Business Head", "phone" : "9789234793","email" : "[email protected]","role" : "Admin", "empId" : "EI003","reportingto" : "KumarP"}]} and i want to have my string like this, {Table:[{ userid: "11", name: "KumarP", designation: "Bus...

Drupal jquery submit form without submit button

Hi, I have a drupal form which i post using jquery when you select an option from a selectlist (a sort of quicksearch selectlist). The porblem is that when i submit by clicking the button, it works. When I use jquery, and the button is in the form (hidden or not), it works. When I use jquery and I rmove the button, the post is done, bu...

Can I make an Ajax request inside an ongoing Ajax request (e.g. on the success callback function)?

Hi! I have a jQuery application, a shopping cart, that posts back info to the server, if the text inputfield is changed. This is done in an Ajax request. Now, if the Ajaxrequest is a success, I want to reload the shoppingcart asynchronously. The code is as follows: $(document).ready(function() { var jInput = $(":input"); jInpu...

increase size of text on mouse hover css/jquery/html

I have a large paragraph. Within that there is a span tag with id for a particular word. On mouse hover the size of that particular word in para should increase. It can come above the other text and cover the contents in paragraph but it should not affect the alignment of other text. ...

showing and hiding something on slide toggle in jquery

i have a panel having slide toggle effect on click of a button along with this slide toggle i am also hiding one div on the click event what i want when the panel slide down that div should hide and when panel slide up the div reappear how to do this ...

minimal javascript library to add css3 selectors to internet explorer using jquery

I know already about ie7.js and ie-css3.js, but since I have jQuery in all of my pages already, I was looking for something that uses its built-in selector parser to add this functionality only. I just need to be able to use selectors in my css such as .class1 + .class2, span ~ img, img[alt^=This] ecc and have them parsed with jQuery/ap...

[PHP - jQuery - AJAX] - Form submit

Hi Everyone, I'm basically just trying to submit a form through AJAX and want to show the return of the processing PHP page. The PHP page just validates the input and shows either the errors that occured, or a thank you message to the user. Normally I wouldn't use ajax for it, but in this case the customers setup requires me to. As sim...

select element inside of td

I have the following jquery code to highlight table cells. here is my html <table> <tr> <td class="day"> <span class='hiddenImage'><img src='/images/test.png' /></span> </td> <td class="day"><span class='hiddenImage'><img src='/images/test.png' /></span> </td> </tr> </table> here is ...

jQGrid, how to add a new row inside the grid, not via a modal?

Some quick searching only turns up adding a new row to a jQGrid via a modal popup with the editable fields. Can anyone point me to a sample or show me some code that allows you to add a new empty row into the grid itself, at the top? I have an action column at the rightmost end of the grid in which onRowSelect() I have a save button ap...

jQuery: if checkbox is checked, toggleClass..

Hi, I am a jQuery noob and seems I always will be, been trying to get this simple thing to work. What I want is, when the checkbox is checked, hide the div with display: none;. Here's a jFiddle example of what I'm making a mess of. Thanks for any help, or other solutions :) ...

How to re-label Object in array?

Extending a previous question about JavaScript and jQuery, I'm trying to make an array and then look into it, but the array contains dimensions and I can't get it right.. var markers = []; $.getJSON('GetList', "id"= + data.id, function(data){ $.each(data.list, function(index, data) { } ...

JQuery: Need a widget that displays new image after a fixed amount of time?

Hello, I don't know exactly how it's called (Image-timer??? I'm not sure), but here are the functionalities. Let's say I have a div where I need to display a group of images in loop, one at time (each 5 seconds, for instance). On top of that, I'd like some effects, such as fading out when an image replace an other. Can someone point...