jquery

arrow keys not working in fancybox

Ok this is too weird! I have an input box within a fancybox, when I type something and want to move between characters and when I press the left or right arrow keys, it doesn't move... The arrow keys just doesn't work! anybody faced a similar issue before? Thanks... ...

How to generate a XML from XML in jQuery (Javascript)?

I'm trying to generate a XML from client side XML according to this link. But it isn't work. Here is my js code: // XML Builder $.createElement = function(name) { return $('<'+name+' />'); }; $.fn.appendNewElement = function(name) { this.each(function(i) { $(this).append('<'+name+' />'); }); return this; } ...

How can i pass JavaScript dictionary to action result?

i have a java script dictionary. its dictionary<string,dictionary<string,string>> if it is helpfull. i cant pass it to controller class using jquery ,ajax is ther any way to do that? <script language="javascript" type="text/javascript"> var dictionary = {}; var props = {}; props["test1"]="test1"; props["test2"]="test2"; props["test3"...

Using jQuery, find the links that contain a certain string and add a class

Hi, I have the following HTML structure: <div><a href="link1">blah</a></div> <div><a href="link2">blah</a></div> <div><a href="link3.swf">blah</a></div> <div><a href="link4">blah</a></div> <div><a href="link5.swf">blah</a></div> <div><a href="link6.swf">blah</a></div> Using jQuery I want to retrieve the links that contain the '.swf' e...

jquery selector id,class,rel etc where value greater than a given number

I would like to fade all divs that have a numeric attribute greater than or less than a given number. Something like $( "div[id$=2]" ).fadeTo("slow", 0.6); but I would like to use the ">" or "<" operator instead of "=" basically I would name all my divs something like <div id="22">text</div> <div id="35">text</div> <div id="40">tex...

Stop propagation with jquery delegate/live function not working

Heres the problem html: <ul id="update-list"> <li class="update" onclick="window.location('some_url')"> <h2> some header </h2> <p> some paragraph </p> <div> <a class="popup-link"> <span> Show Popup </span> <span> + </span> </a> </div> </li> // this repeats n times //... </ul> When i click on .popup-link li...

finding a certain tr by attribute in an array of tr's

hi im trying to find a tr inside an array of tr's the attribute name is docId is there anykind of jquery selector for this? i dont want to just iterate throught the array with a for loop and find it myself. unlesss you will say i have no choice... thank you ...

swfupload cancelling upload

I have a form which is using swfupload with the jquery plugin. I have some required fields which should be filled before I allow upload. So I add a handler to file_dialog_complete_handler Somethings like, file_dialog_complete_handler = function(dom_el){ alert(10); dom_el.cancelUpload(); return false; } This doesnt work...

Set attribute selected of particular option of select box using jquery

Hi all, I have a select box with following options select id="box" ><br/> option value="1"Same Day<br/> option value="5">96<br/> option value="4">72<br/> option value="3">48<br/> option value="2">24<br/> select> I Want to add attr selected to option value '4' , i know i can show it selected via $("#box").val(4) But this...

create unordered list dynamically using jquery

hello folks., how to create unordered list dynamically using jquery? i read the image filepath(href and src) from xml file. <ul> <li><a href="images/test1.png"><img id="imageSlide" src="images/test1.png" alt="" /></a></li> <li><a href="images/test2.png"><img id="imageSlide" src="images/test2.png" alt="" /></a></li> </ul...

Replace value in unordered list (html) + JQuery

Hi, I got this: <ul id="navigation"> <li id="nav-d1"><a href="#d1"><span>D1</span></a></li> <li id="nav-d2"><a href="#d2"><span>D2</span></a></li> <li id="nav-d3"><a href="#d3"><span>D3</span></a></li> </ul> I need to change just the values between <span> and </span> D1, D2, D3 with JQuery, with ...

Set alternating row class with rowspans and jquery

If I have a html table with <tr>'s, but with those tr's there are <td>'s with rowspans, I need to figure out the quickest way to set the alternating row class for coloring with jQuery. Does anyone know of a plugin that does this? ...

Jquery & Php Contact Forum

I cant get it to submit. It will say if the email is not there but after that all the other error messages do not work and in the end it wont let you send. Any help would be greatly appreciated. The Html <form id="contactForm" action="bin/sendme.php" method="post"> <span> <input type="text" name="contactTi...

jQuery validation plugin and Colorbox

I am opening up both a registration form and a login form in a modal window using Colorbox Unfortunately, the jQuery validate plug in doesn't work anymore. I did a search and found someone a question with the answer I needed here at Stack Overflow. I'm not really well versed with JavaScript yet so I had a bit of a problem implementing t...

Using JQuery Autocomplete combobox

Hi There, Im trying to use this JQuery code in my program: http://jqueryui.com/demos/autocomplete/#combobox Its basically a combo-box which has a auto-complete field and a dropdown button. When I try to use my combo box inside form tags, it doesnt work properly - the dropdown button keeps submitting the form when i just want to look ...

jQuery load page only once on tab click

I have a page with some tabs on it and upon clicking on certain tabs, other pages are loaded dynamically. The only problem is that these pages load every time the tabs are clicked on. How do I make them load only once, at the first click? The code that I use is this: $(document).ready(function(){ $(".tab-content").hide(); $("#o...

jqgrid loading deleted records after refresh

Hi, This is quite strange. here is the issue: Some Info: I'm using a multi-select jqgrid. I have my own delete button to delete multiple orders The problem: When i press the delete button on the pager of my jqgrid, the records are deleted from the database but JqGrid shows some records (4-5). On refreshing the grid, correct number...

multiple month jquery datepicker

I am trying to use jquery datepicker that supports multiple month. I found this link http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerMultiMonthPopup.html. There is a small problem in it. It display December 2999 as default date. Can anyone please suggest how can I correct it to current date. Your help will be appreci...

Jquery colorbox breaks on page that uses another jquery function in ie

Hi I have a colorbox which opens on every page when the user clicks a button at the top of the masterpage. I have an FAQs page that I have just discovered breaks the colorbox in Internet Explorer. This script appears before a repeater that shows the faqs. basically it hides the answers to questions until the user clicks on the question....

jQuery $.get onstatechange problem

Howdy, I have the following function that uses jQuery "get" to perform an ajax call to an MVC controller. function updateTables(firstMonth, getReduced) { $.each([cContactType_Email, cContactType_SMS, cContactType_EmailSMS, cContactType_Telephone], function(index, value) { var toUpdate = $("#" + value); ...