jquery

Pass Parameter to Custom jQuery Function

Here's what I have so far: <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <script type="text/javascript" src="/js/jquery.js"></script> <script type="text/javascript"> $(document).ready(function() { $("#weight").change(onSelectChange); }); function onSelectChange(){ var selected = $('#weight').val(); $....

jQuery Appending Attribute to Elements That Contain The Specified Text Node

For example, I would like to append selected="selected" to the option that contains This one, which jQuery selector should be used to append attributes into that element? <select> <option>Not this</option> <option>This one</option> </select> Thanks in advance! ...

Jquery form sumission with sucess and error message

Hi I am doing form submission and validation using jquey and from server side I am getting a response in JSON format.. I am displaying the message in jquery dialog box but not able to show the message from server.... my approach: <script type="text/javascript"> //<![CDATA[ $.validator.setDefaults({ submitHandler: function(...

Using amazon's link-preview with use of own jQuery

When trying to use amazon's link-preview-script and loading the containing page, we get an error about the not-existing amazonPopoverTrigger-function. This happens only when on our page another jQuery is included (amazon delivers version 1.2.6 on their own). On a test page we found out that changing namespace of our JQuery with the noC...

Jquery scrollTo issues in IE7

Hello, I have a page that uses jQuery's scrollTo plugin to manage some functionality. When you want to reset your password from the login page, it scrolls to a new form rather than taking the user to a new page. It all works fine everywhere but IE7, of course. Here's my HTML: <div id="blocksWrapper"> <div id="blocks"> <div...

Ajax.Beginform : Error: 'id' is null or not an object on form submit

I have a popup where a user is asked to act on something (accept or decline). My goal is that in this case they can have more than one of these pending items, so after they act on one, it refreshes the popup data with the next pending item. It works, except there is one error. Error: 'id' is null or not an object on form submit. The ...

jquery is(":visible") and is(":animated") bug during animation?

Here's the thing. I have multiple icons, which each show a message in a div. when i hover over the icon, the box shows, when i mouse out, it closes. when i click, i want that the box will not close automatic, but only after i click the X in the corner of this box. this all worked good, until I added animation. the problem is that the...

Help on how to link this current script to a radio button

As the title states I need some help on how to link this Jquery script for a show / hide effect to a radio button selection. HTML <tr> <td><input type="radio" name="es_custom_reg" value="Y" /></td> <td>Yes</td> <td><input type="radio" name="es_custom_reg" value="N" /></td> <td>No</td> </tr> Javascript <script src="scripts/jquery.js"...

jQuery addClass stopped working

For some reason jQuery.addClass has stoped working. I have no idea why. Other stuff works though. // Change row background color on click jQuery('#rowList tr').live("click", function() { alert(jQuery(this).attr('title')); // Just here for testing. This works alert(jQuery(this).css('border','solid 1px red')); // Just here for...

Determine if all checkboxes within jQuery object are checked, return as boolean

Hey all. I've been been trying to figure this out for a while now. I create a jQuery object of checkboxes and store it in a variable: $group1 = $('#checkbox1,#checkbox2,#checkbox3,#checkbox4'); The user cannot continue unless all checkboxes in that group are checked. I've been using an if statement combined with .is(':checked') to f...

How does one pass AJAX vars from jQuery to their controller?

I have an email form. But I'm making a test email form where a user can add a unique email, and have the email test send it to that particular email. To make it easy, I decided to make the test email perform via ajax, and stick the whole thing inside of the other email form. I can't figure out how to send the variables from my HAML to...

Changing the AJAX url in Jquery Plguin, JQGrid!?

I'm using the jqgrid plugin for jquery and jquery ui and I would like to change the AJAX url on a dom event. this is the instatiation of the jqgrid table: jQuery("#list").jqGrid({ url:'AJAX/JSON/json_member_mail.aspx', datatype: 'json', mtype: 'GET', colNames:['','Title', 'from','message',''], colModel :[ {name:...

php-jquery-pdf load a pdf on a div

Hi everybody! I'm trying to display by jquery load() a dynamically generated PDF created by PHP with FPDFlib on a div but what I get is a jam of chars. Is there a way to resolve it? thanks in advance I've tried to correct my code in this way but continue to display jam $.post("./php/stampa_login.php", {piatta:'<? echo $_POST[...

How to renew a text input value in a js var in jquery

Hello, I have a jquery + plugin Boxy + form input mess. That´s the situation: 1 - when I press a link, a form with only a text input and a submit button appears in a popup. 2- When I write some text and press the submit button, I get the text input value in a js var, and send it by ajax to a PHP function that performs a operation a ...

Order jqgrid by data that is not loaded into the grid?

When using jqgrid you can set the select statement via: $grid->SelectCommand = $query However you cannot set the ORDER BY here. jqgrid allows you to sort the grid on any column. If my DB table has a column called "cost" and I want my grid to be in order by cost but NOT show cost. Is there a way to do that? ...

Help in jquery validation.

I am using JS fiddle for trying my hands on jquery validation. You can access the code at http://jsfiddle.net/8MmCS/3/ I am changing the background color of a control to 'red' if its validation fails. And if the data entered is validated, then the control border is changed to green. But I need to change the border color to green , only...

remove html <tags> from database-driven text within a wmd text-editor TEXTAREA

looking at this issue on stackoverflow, i got going in the right direction to what i'm looking for: http://stackoverflow.com/questions/652917/in-jquery-want-to-remove-all-html-inside-of-a-div i have a textarea similar to the following: <textarea id="inputPane" cols="80" rows="40" class="pane" style="height:300px;"> <table><tr><td> <b>...

Staying on current jQuery tab across post back?

I am using jQuery tabs and an ASP.NET listview to display and edit some information. My problem is that when a user inserts a new record in one of the listview items my jQuery tabs go back to the first tab. Is there a way to keep track of which tab I am on or keep it from resting on post back? ...

Stackoverflow image uploader

There is an awesome image uploader in stackoverflow. Im looking for a tutorial for creating application like this with php and jquery. Thanks ...

How does JavaScript interpret indexing?

function highlightRow(searchRow) { if(searchRow != null) { var oRows = document.getElementById('Table').getElementsByTagName('tr'); //use row number to highlight the correct HTML row. var lastTwo = searchRow; lastTwo = lastTwo.slice(-2); //extract last two digits ...