jquery

How to handle special characters in html element id/name in Jquery validation?

I have a HTML fomr which uses special characters in ids ( :,-,_ ). The form uses JQuery validation plugin to validate the user input. Specifically the id includes a GUID Following is the sample code: <script src="../../Scripts/jquery-1.3.2.js" type="text/javascript"></script> <script src="../../Scripts/jquery-validate/jquery.valida...

Jquery copy attributes

I google it up but didn' find something like this. I am having an iframe with 2 main attributes src=# and link=http://somesite.com <iframe id="myiframe" src="#" link="https://somesite.com?id=x&amp;anotherid=y" style="position:absolute; left:0px; top:0px; width:99%; min-width:80%; height:99%; min-height:80%; padding:0px;"></iframe> I ...

jquery autocomplete doesn't work on localhost

Hi there I hope you can help me. I have used on a localhost aspx page the following code so it autocompletes. It works perfect. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; <html> <head> <script src="http://code.jquery.com/jquery-latest.js"&gt;&lt;/sc...

Alternative to <rich:modalPanel> for Internet Explorer 6

Hello, The pages of my web application are loaded really slowly on Internet Explorer 6, compared to Firefox : around 6s for IE6, 3s for Firefox. The size of the pages are indeed a big problem in my application, but I also know that the <rich:modalPanel> is really slow on IE6 (due to DOM manipulations). As we use a lot ot them, I thin...

asp.net/ajax custom templated control, showing/hiding items with placeholder

Hi All, I have a custom templated control(toolbar) that contains a custom usercontrol(button) The button uses jquery to style and manage the states/postbacks/non=postbacks etc. A few of the buttons are hidden with a placeholder and are displayed when hitting one of the buttons. All the buttons with regards jquery seem to be initiated ...

change the position of jQuery UI Datepicker

Hi all, I am using the jQuery UI Datepicker. However a vertical CSS scrollbar overflow-y:scroll causes a bug for Firefox, Opera and Safari. This bug can easily be reproduced by copying the sample code of jqueryUI and adding 2 lines css declarations: body { overflow:scroll } #datepicker{ position:absolute; right:1px } A demo can b...

getJSON callback not happening

I have looked at similar queries here, but I can't seem to apply them to my problem. I am pretty new to jquery, so I may be doing something dumb. I have a simple getJSON test: $(document).ready(function() { $(".testurl").click(function() { // do a json call var url="testjson.php"; var rc=$.getJSON( url, {parm1: "P1"...

How to make ajax faster and a ajax loaded Reply text field like on orkut

HEllo, I have a site where I want to introduce reply user functionality. How to make an ajax loaded reply text field like a popup? currently, i m using a text field which takes hell lot of time on clicking reply. Is there any method to make it faster? My ajax call is : $("#replyMe").click(function(){ $().ajaxStart($.blockUI); $.aj...

Internet Explorer, How to change iframes src

For some reasons I'm using an Iframe to display googlemaps, when I want to change it's content I'm just changing the Iframe src using JQuery. $('#ggMap').attr('src', 'http://newurl.com'); Apparently it's not doing anything on Internet Explorer. Does anyone know how I could do the same thing with IE? ...

How can I stop this scroll

var f1; var f2; var i=1; var again_again = 1; function again() { go(); } function go() { $('.floater').animate({ left: "-=200px"}, 4000, 'linear', again); } ...

jqGrid - column resize event

Hi, all I'm having a problem with jqGrid. I need to call a function when a column is resized. I have tried the following... $grid = jQuery("#list").jqGrid({ ... resizeStop: function(width, index) { alert("resize column " + index + " to " + width " + "pixels"); }, ... }); ... but the event does not fire...

Problem with unique html() jQuery

Hi all. I have jQuery function, that if it will hit specific class is wrapping it with some oter divs. (document).ready(function(){ var Text = $('.bd_box_cont').html(); $('.bd_box_cont').html(" <div class='bd_box_tl'><div class='bd_box_rt'>" + Text +"</div></div> "); )} Only problem is that I have more then one conta...

'Collapse all' problem with jQuery Treeview plugin

And the problem is that after I click on the 'Collapse all' link, 'some' of the pluses and minuses are displayed opposite to what they should be: i.e. an 'expandable' node would be shown with a minus next to it. Apart from that, the tree works correctly. (Well, the 'expand all' functionality is affected, as well but I think this is part ...

clone() in jquery problem with IE and chrome

i am trying to clone a particular div and do some manipulation to clear the content and return. var tmp = $('<div>').append($('#masterdiv').clone()).remove().html(); It works fine in firefox. but in IE and chrome, this removed the entire div instead of cloning. Whats the workaround for this? Edit: The main aim is to copy the entire...

JQuery validation plugin - error highlight problem

I have a form with two input textboxes, and I have included jQuery validation rules for both: <script src="../../Scripts/jquery-validate/jquery.validate.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function() { $('#respondForm').validate({ onclick: false, onkeyup: false, onfo...

How to stop sliding if only one <li> using anythingSlider(jQuery plugin)?

I'm currently using the anythingSlider plugin, it works totally fine except when there is only one <li>. The <li>s are generated from the database so sometimes there's only one. However, the anythingSlider plugin still tries to slide through the <li>s, it works by sliding back to the first slide. Although this doesn't look great. Do...

How can i update div continuously

I have asp.net application where i have a div which showing the value from other site. The value of that site is changing continuously. I want that my div will automatically update in some interval time. How can i do this. ...

finding dynamic control

Hi, I have Telerik grid control, there I have an edit control like update and cancel buttons and so on. The edit controls are shown automatically when I edit image click, no manual coding used to invoke the controls. Therefore my problem is I have to validate the input control when I update button click. The controls are created dynamic...

Direct actions on html() and text() in jQuery

Is there a way to tell jQuery that you want what ever comes after text() or html() to be applied to it? Hard to explain, easier to show: $("#someElement").html().replace(oldWord, newWord, "g"); The above won't change the DOM, you'd have to do: $("#someElement").html($("#someElement").html().replace(oldWord, newWord, "g")); which is...

date Sorting Problem with Jquery Tablesorter

I am trying to sort a table which has column like 2009-12-17 23:59:59.0. I am using below to apply sort $(document).ready(function() { $("#dataTable").tablesorter(); } ); But its not working for the dates of format yyyy-mm-dd. Can any one suggest how can i apply this format for sorting? ...