jquery

HTML select refreshes page when I submit form

Hi all, I have a simple form with some input fields and a dropdown list (). I use 'return false' with jQuery to avoid the page to refresh after I submit the form and this works like it should. However, with the 'select' html in the form it does refresh the page and this is not what I want. Does anybody have an idea on how to avoid the ...

How to generate a Color Sequence in javascript ?

I have to display a number whose color changes from Red to Green uniformly as the value of the number decreases. Is there any way to generate the font color of that number according to the value ? ...

jQuery.Load() not triggering Request.IsAjaxRequest in ASP.NET MVC2

Hi I'm using the Jquery full calendar plugin, and i want to be able to click on an event and the details of the event to be populated via AJAX into a div with the id of #details. here is my controller action that i'm trying to load. When debugging, the action does not consider the incoming request to be AJAX and returns the full view ...

Need help with variable scope in Javascript

I have the following Javascript function that should return an array of groups that are in database. It uses $.getJSON() method to call get_groups.php which actually reads from the database. function get_groups() { var groups = []; $.getJSON('get_groups.php', function(response) { for (var i in response) { gr...

Using jQuery in jira

hello folks, I am trying to develop a plugin for jira and I'm having issues with jquery. I am pretty sure that its already part of the framework and all i need to do is include it but nothing seems to be working. I have tried putting this in my atlassian-plugin.xml file <web-resource key="jquery" name="jquery" > <dependency>jira.w...

Reset setinterval on click

I've written this simple Carousel. At the moment I'm using setInterval to run my nextSlide function at certain intervals. I want to defer the timer from running when a user clicks on the navigation links for a certain length of time. Check it out here http://jsbin.com/uzixi3/3/edit Any feedback on how the rest is written would be good ...

Image Slider pagination

Hi, I wish to create pagination for this image slider I am creating however I have no clue how to go about it. Could anyone help me out? You can see the slider here: http://matthewruddy.com/slider Thanks in advance. Matthew. ...

jQuery datepicker, disable month selection

Hi i'm sure there must be an easy way to do this but can't find the option to set it anywhere. I am trying disable the left/right buttons that allow the user to change months. I've removed the drop down list of months but can't get rid of the buttons. $("#date").datepicker({ changeMonth: false, changeYear: false, dateFo...

why backslash is added when I pass the value from Jquery to PHP?

When I pass a value from Jquery (For Example test's name) in post method.When I get the the same value in PHP and return it I got like this test\'s name.I don't know why? I used the encode URI also.Thanks in advance. ...

jqGrid: Enable paging while converting HTML table to grid

Been googling all this while on how to convert an html table to something pagable and sortable, and I have stumbled across jqGrid jquery plugin. I've learned so far that we have to call tableToGrid() to convert the table (which we pass as a jquery selector string to the method). I've also tried a host of other things, like for e.g: tabl...

jwysiwyg Jquery

hello.. im using jwysiwyg and i dont know how to clear the value of the frame to where the user will input the text.. im doing it like this.. $('#wysiwyg').val(""); but it is not working.. ...

jquery.sheet cell selection

Hi All, I am working on a web project using spring mvc and i am using jquery.sheet plugin to create a spreadsheet on the web page. You can check this at http://www.visop-dev.com/jquerysheet.html The sheet is internally using html table to display the rows. I want to select a particular row from the sheet but i am not able to do it. A...

How to change Jquery ui button to be selected when the underlying radio is checked through code?

I am trying to use Jquery UI button plugin for my radio button group. The UI looks cool but the problem is when I change the underlying radio button's checked property the UI does not change. for ex. If I have 3 radio buttons say radio1, radio2, radio3 and if I make radio1 to be selected then the button does not change but when I refresh...

Jquiery ui: multiple ranges for date picker?

I want to use the jquery-ui datepicker for my project, but I need to be able to have multiple, disjoint ranges of valid dates. Dates not in one of these ranges shouldn't be selectable. $(function() { $("#datepicker").datepicker({ numberOfMonths: 1, minDate: new Date(2010, 8, 1), //range 1 maxDate: new Date(2010, 8, 20) //rang...

jQuery element.remove undo

Hello, I have code(thanks to roosteronacid) which removes web page elements when user click on them. I need to add additional functionality to undo action - revert removed elements. Any idea how to do element.remove undo with jQuery? Regards, Tomas ...

Output JSON object from unordered list with jQuery

I am working on this jsFiddle: http://jsfiddle.net/8vWXZ/10/ I want to post the order of the list items and their associated ID on the form submit to the server as a JSON object but am not sure where to start. ...

jQuery delay() works after effect, but not before?

I'm showing a line of text using a typewriter effect [http://plugins.jquery.com/project/jTypeWriter]. I want to: 1) Delay 3 seconds 2) Show typewriter text 3) Delay 4 seconds 4) Fade out But step 1 doesn't happen with this code: $('blockquote').delay(3000).jTypeWriter({duration:1}).delay(4000).fadeOut(); Why does delay() not work at t...

jquery first slide out, and when finished got to the clicked page

Me again. The sliding in works like a charm. But I want to extend the script. I want that the boxes slide out, en when that's finished then load the clicked page. The sliding out part is working good, but the page always loads to fast. I tried stuff with delay, pause, and much more, but since I'm a jquery noob I still can't get it to w...

jQuery datepicker shows up behind popup

I am using two different jQuery plugins that I'm trying to combine. First I'm using a popup plugin from http://fancybox.net/home. When the popup shows I need to have a textfield with a datepicker inside the popup. The datepicker is from jQuery UI. The problem is that the datepicker always shows up behind the popup so it is impossible to ...

How can I make ALL links load pages dynamically? (Even links in dynamically loaded pages)

So I have a script like this <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"&gt; </script> <script type="text/javascript"> $(document).ready(function(){ $("a[href*='http://']:not([href*='"+location.hostname+"'])").attr("target","_blank"); ...