Hi,
I need that when i check a checkbox i apply different background color to HTML table rows according to and ID of a user in database using jquery, and then i uncheck the checkbox go to previous state.
For the record i am not asking for code i am asking for concept.
http://www.freeimagehosting.net/image.php?ef44cf44a5.jpg
...
Hi.
I am trying to use JSON.stringify() (from json2.js of json[dot]org ) to convert a JavaScript array to JSON string and to pass it to an asmx web method. I use jQuery AJAX.
The call reaches the web method where I take a List <Object> as parameter but I get an empty list there in debug mode.
My JSON string looks like well formed with...
Here's my issue : using an autocomplete jQuery plugin, I'd like to avoid multiple ajax requests when user strikes his keynoard by surrounding the
$('#query1').autocomplete({
serviceUrl:'/actions/autocomplete?population=salon',
minChars:3,
maxHeight:300,
wi...
I have a large Javascript codebase to convert to jQuery. The code is structured such that DOM elements are created in Javascript (using a library called DomBuilder), and saved to variables if they will be needed later, before being added to the DOM.
Eg.
var inputs =
{
submitConfirm: INPUT({type: 'button', value: 'Submit'}),
su...
http://jsbin.com/urice
I want to remove . after number.
1. should be 1 only
With All browser compatibility inducing IE6 and validity.
I need solution without javascript.
Edit :
If it's not possible with css only then a simple javascript and jQuery solution would be appreciated, thanks.
...
is it possible to "override/overwrite" an input element fixed value using javascript and/or jquery?
i.e. if i have an input element like this:
<div id="myDiv">
<input type="text" name="inputs" value="someValue" />
</div>
is it possible to make a jquery object of that element and then change its value to something else then rewrit...
I'm basically trying to save all current css properties of an element in a local var/array.
I tried :
el.css();
and
el.css("*");
With no luck.
Is there any quick tip do to so ?
...
I need to reload the current tab in jquery ui (loaded with ajax).
I'm doing this:
function reloadtab(){
$('#tabs').tabs('load', $('#tabs').tabs('option', 'selected'));
}
Before you begin wondering:
$('#tabs').tabs('option', 'selected');
returns 3.
When I call reloadtab() I get no error, it simply doesn't work.
Why does th...
The following code works in IE8, FF, Safari, Chrome etc. (not bothering with IE6 for this one), but doesn't work in IE7. I've been through the code with a fine tooth-comb. Checked the commas, messed around with ; but it's not going anywhere. I'm using the jQuery Validate and Uploadify scripts.
Can anyone see the problem here? Thanks.
...
I need to trigger a click function assigned to a checkbox, but without actually changing it's checked state (which click() does).
Scenario: I have a form with several checkboxes that when selected reveal a textarea. This works fine, but I also need to call the click() function on $(document).ready()
My code is below, please note I h...
OK I have read many posts regarding Dual Licensing using MIT and GPL licenses. But Im curious still, as the wording seems to be inclusive. Many of the Dual Licenses state that the software is licensed using "MIT AND GPL". The "AND" is what confuses me.
It seems to me that the word "AND" in the terms, means you will be licensing the...
I've seen a few questions like this, but mine is a bit more specific so I hope this isn't considered a repost.
I am working on a website that is built with struts 2 and hibernate. I need to dynamically populate a drop down menu using data from a sql query based on an option selected in another drop down menu.
So basically when the firs...
Hi Guys,
I have a div on my website that should be the height of the window.
This is what i got:
$(document).ready(function() {
var bodyheight = $(document).height();
$("#sidebar").height(bodyheight);
});
However, it does not automatically change when the window is resized? Does any body know how to fix this?
Thanks
...
I'm using the Sortable/Portlets UI Code.
Is it possible to auto-resize the Containment Height's. Bascially I have a DIV that acts as a container with a black background, when I sort these elements I want the container DIV height to change to match.
OR is it possible to stop the bottom sortables from having sortables placed underneath t...
Hello,
I have a div:
<div id="p1" class="img-projects" style="margin-left:0;">
<a href="project1.php"> <img src="image1.png"/></a>
<div id="p1" class="project-title">Bar Crawler</div>
</div>
On mouse-over I want to add an image with opacity and make the project-title shown.
So I use this code:
<script type="text/javascript">
...
Hi,
Can anyone advise if its possible to pass data via jQuery to an ASP.NET MVC controller action and have a view rendered in a new browser tab based on the model data passed to the action method.
My scenario is that I have a jQGrid populated with product info on a page. The user would tick the items in the grid that they would like a ...
This is my Jquery
<script type="text/javascript">
$(function() {
var from = $.session("from");
var to = $.session("to");
var $th = $('#theTable').find('th');
// had to add the classes here to not grab the "td" inside those tables
var $td = $('#theTable').find('td.bluedata,td.yellowdata');
$th.hide();
$td.hide();
if (to == ...
Why i can't trigget handler via triggerHandler if it's was bound via live?
For example
form.find('#code').live('change keyup',function(){
process_code($(this));
});
Startups after window load:
/* Triggers */
if(checkCookie('banner_ready_code'))
{
$('#form').find('#code').triggerHandler('keyup');
}
Nothin...
I have some divs and each one has its own background image. The base images as stored is just a black silhouette.
What I would like to do is use the PHP GD package to modify the color of those images somewhat randomly and have the modified randomly coloured images be the background images of the divs.
One way to do it is just crea...
I have some basic html inside an asp.net update panel. Using livequery, I set up autocomplete, blur and keydown events so that they all continue to be wired up after the update panel does a partial page load. When the page initially loads, all the events work fine but after the update panel does a partial page reload, none of the event...