jquery

Jquery Plugin Autocomplete Fade In List

Hi there I have successfully implement the Jquery Autocomplete plugin into my site, using the examples as a template. However, I am looking to fade in the suggestion list in the autocomplete so its a smooth transition, rather than just suddenly appearing and disappearing as it currently does. I have looked through the options, but can...

jQuery UI Datepicker regional language and max value

I'm trying to combine some options of jQuery UI Datepicker I'm using the code below: $("#<%=tStartDate.ClientID %>").datepicker($.datepicker.regional['tr']); I need to add option for max date which is: { maxDate: '+1m +1w' } Can anybody tell hot to add this parameter? ...

jQuery dialog does not appear on second attempt if using a custom theme

I am using a jQuery dialog with autoOpen set to false. The first time I call dialog("open") it works fine. However, subsequent calls (without a page refresh) do not show the dialog. This problem apparently started when I switched from using jquery.ui.dialog.js, jquery.ui.resizable.js, jquery.ui.draggable.js, and jquery.ui.core.js to a...

JQuer form processing

I am really trying to get somewhere with JQuery, but I just cannot getit to process forms. Here is my (test) code : <form id="form" > <input type="text" name="abc" /> <input type="text" name="def"/> <input type="text" name="ghi"/> <input type="submit" name="try" id="try" /> </form> and the jquery $(document).ready(function($) { $(...

jQuery manual toggle not working

Hi, I am trying to create a manual toggle to hide some div tags. But it doesn't seem to be doing anything. I added alerts to see if they even show up, but to no avail. Using the simple toggle(); function DOES work. In fact I am actually trying to work out how to show or hide all divs. Because at the moment, if some divs are open and so...

Need to remove target attribute from anchor tag before it gets added on above TD

Hi Guys, I am using HTML and Jquery Below is the html code for TD which gets appended after matching the IDs from below LI HTML code <td style="border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid" id="Physical"> Physical Science Course ...

How to override a class using jquery

All, A class jquery css class sets the following . .newwidget { border: 1px solid #5a9ee9; background: #5a9ee9 url(t6.gif) 50% 50% repeat-x; color: #ffffff; font-weight: bold; text-transform: uppercase; padding:3px 3px 3px 10px; font-size:10px} How to override this class and add a new class so that i can put different styles in it....

jQuery validate and tabs

Hi i am using jQuery validate for my form validation. The form is inside tabs.When i get an error i add an icon to the tab that error exist to be visual by the user So far so good. My problem is that after correct the error i can not remove the error in tab icon. I was assuming that validator is accessible via success but its not Ass...

How to Load Google's jQuery in External Script?

Stupid question, but does anyone know how to load google's jquery from an external script so it doesnt clunk up my header? In other words, I want to take the code below (probably starting at the google.load stuff and save it inside another file to include in my header. I want to keep my view source pretty :) <script src="http://www.goog...

Jquery display image problem

Hello, I have PHP page where users can upload photos (using Ajax & PHP script). Those uploaded photos (thumbs) are shown after upload in DIV below upload field. Then, after hitting send button I want to clone that DIV at that same page at message board, bellow other messages with or without uploaded photos. When I try to do that with:...

How to setup javascript redirect to send user to back page? see code

Hello, with onclick="history.go(-1);return false;" user can navigate to back pages. but if I want to put a confirm method before it takes user to the back.. how would I do that? I think it can be achieved by doing something like below but I am not sure how to redirect user to back page? $('.clickme').click(function() { if(confir...

Firefox (v 3.6 [and possibly other versions] not resetting variable values on page refresh

I am working on an administration page to add an article to a site. Two of the fields ("Tags" and "Resources") begin with only once instance labeled "Tag 1" and "Resource 1" respectively. Using jQuery, I allow the user to add additional tags and/or resources ("Tag 2", "Tag 3", etc) and it works ALMOST as I want it to. If the page has b...

Using jQuery selectors with normal Javascript?

I'd like to be able to do: if ($("cheese_tag") == document.getElementsByTag("cheese_tag")[0]){ alert("success!"); } Is this possible? Basically what I'm wanting to do is use the ease and power of jQuery selectors to manipulate elements. Is what I'm talking about possible? REVISION: Sorry, a better way to state my question would be "C...

How to match external links with javascript (but ignore subdomains)?

I have the following (jquery) selector looking for external links. This works, and ignores all links that include location.hostname (e.g. www.domain.com) My question is, how to extend this to also ignore links to subdomains of your site? (e.g. new.domain.com) $('a').each(function() { var href = $(this).attr('href'); if(this....

a good way to check which row is changed (html/jquery/php)

I've got an html table that is being generated with php. This list can have records of over 20000 records, so I added a paging on this list. In this list you can modify the rows you like, when you hit save, it saves the changes in a temp table and only after you hit apply changes, the actual changes are applied in the main table. Befor...

Simple Jquery load function work just in FF but dont work in IE and Safari

Works fine just in FF: <script type="text/javascript"> function loadContent(id,start) { $("#ContentRightBlockTest").load("cast_member.php?_type="+id+"&start="+start+""); } </script> whith onload in the body <body onLoad="loadContent('cast',4);"> ...

jquery disable multiple input children of a div

I want do do something like below from a checkbox, There's a checkbox on every row, and I'd like to disable all the inputfields on a row with the class .room when the checkbox is clicked. function toggleStatus(link) { $(link).closest(".room").children(':input').attr('disabled', true); } also tried function toggleStatus(link) { ...

jQuery ASP.NET MVC JSON call hackable?

I have a basic JsonResult method that is being called by a jQuery $.ajax call in my view. [AcceptVerbs(HttpVerbs.Post)] public JsonResult DoWork(string param1) { // do something important return Json(); } So my question is, could this method be called/hacked and passed erroneous data? Let's say it wa...

How to consume YUI editor events

I think this is a simple question, but I can not find the answer I have a rails app and I am using jquery and the YUI Rich Text Editor, I want to write some javascript/jquery to to have a minimum text length counter (i.e. you have 240 characters left). I have it working with a simple text-area: jQuery.fn.populateCounter = function()...

jquery val() failing on dynamically generated input

I have the following dynamically created html block: <form class="standard settingsPage" method="post" enctype="multipart/form-data" name="account" style="background-color: rgb(61, 80, 133);"> <h2>Add New Account</h2> <p> <label class="" disabled="true">E-mail address:</label> <input id="accountEmailAddress" class="" type="text" value="...