jquery

Jquery datepicker showing previous date in MVC

Hi, I am using the jquery datepicker function on a mvc Html.Textbox, which is bound to my model, the first time I press my search button it gets the correct date in my model, however if I press search again, it should return a different date from the model but it doesn't - it stays cached as the same date that came the first time. I deb...

JQuery Flexigrid: How to wrap text in flexigrid column?

JQuery Flexigrid: How to wrap text in flexigrid column? ...

Radio buttons - show DIV based on checked button with jQuery

Hello I am trying to achieve the following - from a list of questions each with 4 multiple choice answers I need to show whether the user has answered correctly (immediately) by showing whether it was correct or incorrect once a radio button has been pressed. Here is an example of a question: <ol> <li id="question_one"> <p><input type...

How to at least display an item in JqueryUI autocomplete panel when no result found

I'm trying to force the jqueryUI autocomplete's panel/list to at least display a default item (such as "Add New Item") when the no match has been found. The item must be able to bind with some event-handler too. So far I had tried overcome this problem by adding a pseudo AC panel when the real AC panel is found hidden. I'm also wonderi...

how can I disable everything inside a form using javascript/jquery?

I have a form that pop up inside a layer, and I need to make everything inside that form read only regarding what type of input it is. Anyway to do so? ...

SimpleModal OSX Style

At the moment i have this code: <!-- modal content --> <div id="osx-modal-content-1"> <div id="osx-modal-title">OSX Style Modal Dialog</div> <div class="close"><a href="#" class="simplemodal-close">x</a></div> <div id="osx-modal-data"> <h2>Hello! I'm SimpleModal!</h2> <p>SimpleModal is a lightweight jQuery Plugin w...

stop working of function from another function

I have two functions function1() { //... } in function1 i make ajax requests and load an image there is another function - function2 where i call function1 to load an image. now, what is the question. How can i stop propagation of function1 before i will call it again in function2? function2() { // ... //...

How to store array in jQuery cookie?

Hi. I'm opening a new thread based on this http://stackoverflow.com/questions/1959455/how-to-store-an-array-in-jquery-cookie. I'm using function from almog.ori : var cookieList = function(cookieName) { //When the cookie is saved the items will be a comma seperated string //So we will split the cookie by comma to get the original array v...

Manual background div slideshow

Hello, I need to make a css background image fade slideshow. For several reasons, i cannot have a physical div in my html. It's the body with a class called -home- that has a current background. There will be 4 pictures for the slideshow, no more, no less, so that doesn't have to dynamic. I already have the following jquery: <script t...

Best way to store Hijri dates in mysql ?

I am developing a web application using CakePHP and mysql and all the dates in the system use the Islamic/Hijri calendar(http://en.wikipedia.org/wiki/Islamic_calendar) . I was wondering what is the best way to store Hijri dates in mysql? Note: I already use Keith Wood's jQuery DatePicker(http://keith-wood.name/datepick.html). ...

Accessing asp.net web server controls from jquery

In my C# asp.net 3.5 web application I am having controls like div tag inside that one textbox and one check box and the page is having a submit button. So in this submit button click I want to make the controls inside the div tag visible.. I am calling a JQuery function to do this. All the statements are getting executed but the control...

Any existing javascript library to change svg fill color? animated preferable.

googled but cant be found ... ...

jQuery.click not binding on elements added with jQuery

I have a calendar where I can ad events to a list. It works like this: I click save, and data is saved to DB using jQuery.post To refresh the list, I call getList() which returns a html list of events I replace the existing list with the new one. The problem is, that the new element is added after page load, thus not binding. I thin...

Back Button in Ajax disables Animation

Hi, I have a webpage at http://www.optiekmeulemeester.be/normal with sliding navigation. This happens with the following code: $(".link").click(function(){ var link = $(this).attr('href'); $("#middle").scrollTo(link, 800); return false; }); This works, but now I'm trying to enable the Back Button by using jQuery Address (http:/...

Is it neccessary to upgrade to jquery 1.4?

I have been using jquey 1.23 till now and nowadays most of the plugins are being developed in 1.4 version. So I just want to know is it necessary to upgrade to jquery 1.4? I mean all the modules I have right now, will they still work? ...

is there is any way to get the width and height of a resizable div

is there is any way to get the width and height of a resizable div while resizing i try the following code but it resulted as undefined in alert box i am using jQuery resizable $("#msc_div").resizable({ start: function() { var offset = $(this).offset(); alert(offset.height); alert(offset.width); } }); ...

PHP and Jquery's json

My html file: <script> $(document).ready(function() { $.ajax({ type: "POST", url: "search.php", data: "id=1", datatype: "json", success: function(msg){ $('.result1').html(msg["name"]); } }); }) </script> <s...

What are some best practices when using jquery for AJAX calls in ASP.NET?

Recently I have been working on project that heavily relies on AJAX calls. In the past most of these calls have been using there own aspx page to post to eg. AJAXgetResults.aspx. After doing some research I saw some examples using jquery's .ajax function and webmethods in the codebehind. I guess my question boils down to. Is there an...

$(this) OR event.target OR var input = $(this)

jQuery is currently providing me with a fun introduction to Javascript after 12 years of surviving happily without. I'm at the stage where I'm trying to learn as much as I can about optimising the code I write and, whilst I have found plenty of good reference material, there is something quite basic which is puzzling me and I have been u...

Stretch node width without to stretch the parent width

Is there anyway to stretch the width of a new row without to stretch the width of parent node (table)? Structure example: <table> <tr> <td> <div id="div_1"> Block 1 </div> </td> <td> <div id="div_2"> Block 2 </div> </td> </tr> <tr> <td> <div id="div_3"> Block 3 </div> </td> <td> ...