jquery

Jquery method runs but doesn't alter the case of the textbox text

I have written a short jquery method that on the keypress event of a text box should change the textbox content to upper case. The method fires and teh alerts show but the case of the text never changes to upper case. Here is the jquery method $("#TestText").bind('keyup', function (e) { var mytext = $("#TestText").val(); $(myt...

Settimeout and setinterval memory usage

Hi Everyone, Does any body know the memory usage and possible memory leaks with javascript functions settimeout and setinterval? Thank you, Krishna ...

jQuery, IE and invalid argument

EDIT: OP here. Well, the problem is at the jQuery.JS archive. I just downloaded the last one, uncompressed, and the error changed to line 4619 character 4. I went to that line and there's an '}' symbol LOL... did i mention i hate internet explorer? I have no idea how to fix this, it seems to be a bug within the framework :S /EDIT ...

how do I submit jqgrid values as formfields?

I am trying to use jqGrid within a form where the user fills out traditional formfields such as username, phone, etc. The form contains a jqGrid for line items where the user can add/edit/del the rows, and when done, submit the entire form. I have the grid working as I want it to appear, I just can't get the contents of the grid submitte...

jQuery multiple character replace

I have a very easy question. Unfortunately, I can't find the answer. I just made 2 simple input functions Input 1:<br /><input type="text" id="i1" name="i1" /> Input 2:<br /> <input type="text" id="i2" name="i2" /> When changing input 1, I want to let appear the result in input 2. Also I want some characters being replaced and I want ...

jqtouch - no loading image appears

I'm creating a web app using jqtouch and have an ajax link to an external html page. The link works fine when there is internet connectivity, but when the connection is not available, there is no "loading" message. Should this be a default behavior in jqtouch? If so, what could be causing the image to NOT display? Thanks for your help ...

Using JQgrid and sortableRows. Update table row order

Using: http://stackoverflow.com/questions/2382879/using-sortablerows-and-know-when-rows-have-been-moved I have been able to call an alert after the modification of my row order. How would I send this data to PHP/ call the editurl passing this data, similar to when adding or editing rows the editurl receives a $_POST['oper'] variable? ...

Jquery, activate script if hashtag on end of URL matches a class name

Hey folks. I am using a little bit of jQuery to do a live sort of my portfolio when various categories are selected. Basically, the script matches the content of an <li> tag on click (my menu) with the class names of other <li> tags elsewhere on the page. The result is the portfolio items match the nav clicked will show and hide the rest...

jquery regex .* not working in jquery

Attemping to use jQuery to find a button on a page "id=btn.ar" using . returns no matches even though the button is clearly on the page. Is there something about .* in jquery being different from other Regex's? The buttons exact id is btnClear so its obvious that btn.*ar should match $("id=btn.*ar") ...

JQuery Syntax Checker

Does anyone know of any JQuery syntax validators or checkers? The braces are killing me. ...

Character encoding issue when loading a div using jQuery.load()

Dear gurus I have one page encoded with utf-8 that is login another page also encoded with utf-8. In order to load one page into a div in the other, I use them load() method of jQuery 1.4.2. Everything works fine in Chrome, but in FireFox all the non-american characters are shown as a strange mark. If I use FireBug to inspect the loaded...

jQuery UI Dialog - change the content of an open dialog (ajax)

I've got some links I want to have dynamically open in a jQuery UI Dialog using jQuery.load(). Once the dialog is open I want the links load inside the already open dialog. So, the site loads, you click a link, and it opens in a dialog. That's fine. You can close and open it as many times as you want. While it's open, if you click...

jquery-ui autocomplete does not select on enter

Hello, I have used the jquery-ui to autocomplete an input box and set a hidden value from the selected item. This I did using the select: function(event, ui) { ...$("#myDiv").val(ui.item.value)... } option (might be wrong now, don't have the code at hand, but it works up until my question...) It works when select an item from t...

jQuery and Ruby on Rails

I am working on a search function on RoR that basically just has a cool visual effect when a user clicks the search button. Here is the code in my view for search.rhtml <html> <head> <title>Tutor</title> <%= javascript_include_tag :defaults %> </head> <body> <h1></h1> <%= form_remote_tag :url =>{ :action => :s...

iFrame file upload with IE produces download dialogue

I'm developing a custom module for Drupal dealing with Document Management. At this point, the module loads, you can upload files (via a hidden iframe and some ajax requests), browse directories and set various levels of permissions. And everything works perfectly in Firefox. Issue: In IE however, I run into an issue. For some reason wh...

jquery - setting plugin defaults?

I'm talking with someone else's plugin, not my own. I'd like to do this without touching their code (I'd like to do it in a separate file). I thought there was a way to do that, something like: $.defaults.pluginname or something? ...

How to make this work in all other browsers other than Firefox

Hi I have a select list with numbers in it. These numbers go from 0 to 30. I want to hide numbers based on the number of days apart from the current date and the date the user set. So if today is July 28th 2010 and they Set July 29th 2010 it should only show "0". If it was July 28th 2010 and they set September 20th 2010 it should sho...

How can I remove scrollbars from an iframe using jquery?

I have a page that I don't control the source to. It contains an iframe. The iframe has scrollbars and a border. I want to remove both. I tried using Jquery like this: $('iframe').attr('scrolling', 'no'); Nothing I do will affect the iframes attributes at all. Any ideas? (IE8) ...

Ajax query to my webservices is returning xml in my json

Hi I am having this exact problem as raised in this question http://stackoverflow.com/questions/1121559/asp-net-json-web-service-always-return-the-json-response-wrapped-in-xml It's late and I have been sitting in this chair for 10 hours now trying to get ajax and json to work and all I got was deeply frustrated. So does anyone know ...

setInterval / clearInterval Issue inside it's scope

I have the following code, and it works fine until i hit the the #play button. I'm assuming it's because the var intID is set in another place and it's not in the same scope when i window.clearInterval() it... how do I fix this? BTW, this is the Google Maps API Version 3 function intervalTrigger(){ return window.setInterval(fu...