jquery

Syntax error. Help with one small JS snippet :(

Hey guys. I don't know much JS, but I wanted to do some quick work with jQuery. But I've been staring at this for about an hour and I don't understand what I missed: <script type="text/javascript"> $('#qty_6035').change(function () { var substractedQty, stockQty, remQty; substractedQty = (int) $('#qty_6035').val(); ...

Finding Image and Place into another img source

My Html Markup is like this <div id="main"> <div id="slider"> <img src=""/> </div> <div class="clear slider"></div> <div class="slider ndslider"> <a href="#" rel="bookmark"> <img src="#" title=""/> </a> </div> <div class="slider rdslider"> <a href="" rel="bookmar...

Image upload and jCrop and codeigniter

Hi There, I am trying to build a system that allows a user to select an image from their own computer, and crop it using the jCrop tool from jQuery. My question is can I show the image the user has selected from their system without uploading it to a system, I dont really want to do two uploads, unless I can do the first upload silent...

jquery: ordinal of td inside tr

I have a row in an html-table that contains only images. (this happens to be the first row too). Those images are wired for a click event too. While trying to handle the click event I can find out its parent (i.e. <td> element). But I want to know its relative ordinal in the table row (<tr>). ...

Using jQuery to Highlight (Select) All Text in a Textbox

I have an input text box with some text in it , onclick event I want to run a javascript function to select (highlight) all text that is in this box , how I can do that with jquery? ...

Implementing google dashboard type interface in asp.net

I'm looking at implementing a Google IG type dashboard in a .net app. There are a number of options I've found to do this, and i'm trying to establish what is going to be the best to use, in terms of speed, versatility etc. So far the options I am looking at are either to use asp.net webparts and .net Ajax, this would make it quicker t...

how to give image path in java script in asp.net mvc

i am using asp.net mvc for my project. i am using partial views for that i used ajax jaquery every thing is working fine but i am not getting image for loading when i upload an image. image get displyed at local host it has problem when i upload the project. i have given image as: $jq("#ajaxThrobber").html('<img src="/Images/ajax-loader...

jquery load function not working

function newPage(pagenum) { /* load page default from server - pass product name */ $('#data').html("<div id='response'>Loading.....</div>").load( '/college/college_change.php', { product:'college', city:"<?php echo $city ?>", university:"<?php echo $university ?>", programmes:"<?php $programmes ?>", t...

HTML Setting Active with different background colour

Here is my HTML List: <ul id="navlist"> <li class="item1"><a href="#">One</a></li> <li class="item2"><a href="#">Two</a></li> <li class="item3"><a href="#">Three</a></li> <li class="item4"><a href="#">Four</a></li> <li class="item5"><a href="#">F...

Is there any common fix for jQuery Firefox error: Could not convert JavaScript argument arg 0?

I updated jQuery latest version v1.4.2 and getting 'Could not convert JavaScript argument arg 0' this error. Is the any common fix for this. I found some solution and they are saying that when finding dimension for display none element it will give this error. Also the following fix is working for me Placing this if (!elem || elem == ...

jquery json parsing

How do I parse this json with jQuery? DayEvents : [{"0":"886","event_id":"886","1":"5029","user_id":"5029","2":"Professional","user_type":"Professional", ... ...

post form data to controller without page refresh

can any one guide me. Post form data to controller without page refresh in asp.net mvc application using Jquery ajax. ...

jQuery CSS and .hover() not picking up style

Im using jQuery to add .hover class to list items. $("#list .item").hover( function () { $(this).addClass("hover"); }, function () { $(this).removeClass("hover"); } ); Then followed by the style in jQuery (I have to supply the style in JS) $('#list .item.hover').css('padding-left', '20px'); The hover class is being ...

jquery. Need a slider, carousel, galleri for DIV's that does not use ID's (multible on one page)

Hi I am looking for something like CODA slider (http://jqueryfordesigners.com/demo/coda-slider.html), but need two on each page. And since the example works with an ID, then I cannot use it. Is there another slider/gallery for DIVs with all sorts of content that can be used without having to use an ID? BR. Anders ...

Modifying a Form Wizard Plug in - Add visited state for "Steps Left"

Hi trying to add a modification to the form wizard from http://www.jankoatwarpspeed.com/post/2009/09/28/webform-wizard-jquery.aspx I was already able to make it validate the current visible fieldset on click of next with tips found here but can't find anything on this. I need to add a "visited" class and apply it to steps that have been ...

jquery advice on tabbed system

Hello There, I create a 'my account' section for a site, the site has some e-commerce functionality too it, what I wanting to create is a tab that shows the users current basket/short list and the other tab to show there purchase history. On buying the products from the short list (this is done in a one click system using AJAX, if a su...

Retrieving values from a table in HTML using jQuery?

Hi i was just wondering whats the best way to retrieve the current values from this HTMl code using jquery and storing them in to a array? <table id="metric_summary"> <tbody> <tr class="editable_metrics"> <td><label>DataSet:</label></td> <td><input name="DataSet" value="prod"></td> </tr> <tr class="ed...

Passing cookies with jquery ajax request from a different domain

I'm building a greasemonkey script to make posting to craigslist a lot easier for our clients. Basically the flow is this: User logs into our system (established authentication cookies with asp.net) User navigates to a section on our site called "CraigsList". If they have the greasemonkey script installed it automatically opens up c...

highlite text parts with jquery, best practice

Hey guys, i have a list of items containig names. then i have a eventlistener, which ckecks for keypress event. if the user types i.g. an A all names starting with an A should be viewed with the A bold. so all starting As should be bold. what is the best way using jquery to highlite only a part of a string? thanks for your help ...

Show/Hide button (text) for Accordion

Have an accordion with a "view" button to open close the accordion panel (using jQuery Tools), but I would like to have dynamic text that says "show/hide" depending on the state... Here is the code for the accordion in asp.NET <div id="accordion"> <% foreach (var eventModel in ViewModel) { %> <% var isNewMonth = eventModel...