jquery

asp.net webservice with jquery on different domain

Hi Friends, I got to work on PHP app which requires a webservice call to an Asp.net webserivce. Client insist to call this webservice with POST directly via jquery. My knowledge says its not possible to call different domain webservice from JS and I'll have to create a proxy page to consume this webservice. So I just want to confirm,...

change the value of a qantity field with jquery

Hi eveyone I have form with multiple qty fields,I'd like to add the qty but pressing the add button and subtract the qty by pressing minus button, I got it working for one but I can not make it work for multiple qty fields,I have 24 qty fields, any help would be appreciate it. <form> <input name="minus1" type="button" ...

jquery create css rule / class @ runtime

usually i have a css file which has the following rule: #my-window { position: fixed; z-index: 102; display:none; top:50%; left:50%; } how can i avoid creating such a static css file by adding the css-information during runtime actions to the body or what else. (only using jquery) i want to define it once but with...

jQuery UI " $("#datepicker").datepicker is not a function"

When i use DatePicker, jQuery's UI plugin, in an existing .aspx page i get errors that "$("#datepicker").datepicker is not a function". However, when I copy and paste the same code that creates and uses the DatePicker to an html file that's also in the same directory as the aspx page, it works flawlessly. This leads me to assume that the...

jquery: why css('width') returns different value than width()

When I run following code: node = $('.period') alert(node.width() + ' ' + node.css('width')) i get '0 144px'. How is that possible? ...

Jquery: one call triggered by multiple events

I have a simple search page with a single input box. I want to be able to trigger the search action either by clicking "Go" or by pressing Enter in the input box. I did it like this: $("input[name='entry']").keyup(function(event) { if (event.keyCode == 13) { search_...

asp.net mvc : custom ViewModel form post

Hi All, Just starting out with ASP.NET MVC and have come across a stumbling block already. The situation is that I have a custom ViewModel to pass to the view, which contains a list of items to be rated ( will be using the jQuery star rating ), so these are created using the radio button helper, to have the same name, just different va...

jquery dialog image

Hi all, i am calling the function given below on dropping a tag on an area. If that tag drops successfully it should append an image and on double click it should produce a dialog box.This happens for the first time when i drop a tag but does not work when i drop that second time. function dropFile() { $(".File_div")...

Using jQuery show/hide toggle in a table

Hi all, I'm trying to adapt Andy Langton's show/hide/mini-accordion (http://andylangton.co.uk/jquery-show-hide) to work within a table. I'm wanting to create a list of events with a confirmation form attached to each event. Upon clicking on the 'confirm' button in the last cell or the row, I would like the form associated with this pa...

calling javascript function on mouse release Jquery UI draggable

I'm using JQuery UI to drag divs around a container and i want to fire an event when the user releases the mouse (stops dragging). Any ideas on how to do this would be great. Thanks in advance -Shawn ...

Problem with hidden content when using jQuery on IE7

I'm using jQuery to switch between 'simple' and 'advanced' search panels by sliding up/down the panels. After the slide I want to set the input focus to the first field, however this causes the panel to blank out on IE7. It doesn't happen on FF 3.5.1 The original code is using ASP.NET but I've managed to reproduce it with some simple HT...

AJAX not "capturing" event without refresh

I'm kind of new to this so please bear with me... Let's say I have this javascript code $(document).ready(function() { $("a").click(function() { alert("Hello world!"); }); }); The way I understand it, this code will "capture" any link selection and post an alert box. Normally this works fine. Now, on the same page I...

Making a Javascript array of multiple CSS classes assigned to an element with jQuery

MY javascript: Updated Again. $('.calc').change(function(){ var classArray = $(this).attr('class').split(','); $.each(classArray, function(){ alert(classArray); }); }); And the input: <input type="text" class="calc R#r# C#i#" /> The pound signs are variables, I'm using ColdFusion. What I need to be able to do ...

Javascript Namespace Conflict

I have the following plugin, which takes a partial game name, bounces it off our DataQuery object to get a list of items from the server (basic autocompleter/selector). The problem I am having is this. I am using it on a page, where the selector appears in a dialog box. When the user is done, I 'destroy' the selector, and then recreate...

Jquery load and then edit loaded content

Hi, I am using Jquery load and then as soon as the content is loaded into the div I want to change some of the tags to language dependent variables. My problem is that I am having to use a settimeout to get the script to wait long enough for the elements to be ready to edit. When I use the callback function parameter the elements I wa...

jquery onmouseover of an image/link shows a div at the same position (tooltip)

i want hover over an image -> which is in an link during i'm over the image should popup (like a tooltip) an div, which i can fill also with some stuff - any idea?! $this is the link which includes an img: i found the image within and wanted to span a div above the image and make some jquery effects which lets the user get the info, th...

Learn JQUery websites

Possible Duplicate: Where can I find a tutorial to get started learning jQuery? I am very interested in learning JQuery. Is there any website out there besides this one that could aid me in learning Jquery? Any good book recommendations would be great too. I love javascript and use it often but jquery is a different beast in its...

How can 2 Html forms share 1 hidden field?

I have a page with 2 forms and a hidden field that is outside of both of the forms. How can the hidden field be submitted with either of the forms? I thought about doing something like this with jQuery: <script type="text/javascript"> $(function() { $('form').submit(function() { // do something to move or copy ...

How can I use jQuery AJAX to update my Gridview?

I have a gridview with rows that can be edited, inserted etc. I wrapped it in an updatepanel to give it an AJAX effect and update the system without reloading the page. I recently got into using jQuery and webservices for my AJAX calls and I absolutely love how it works and how fast it is. I would like to know if it is possible, and i...

How can I implement a "Select All" checkbox in my ASP.NET MVC app?

I have a table with a column full of checkboxes. At the top I would like to have a single "Select All" checkbox that would check all the checkboxes on that page. How should I implement this? I'm using jQuery as my JavaScript framework if it matters. ...