jquery

Jquery Selectors And Condition

Hi all. We have a requirement in application that on clicking on all images which do not have a css class of "xyz" we want to call a function. We are trying to write it somehwhat like this: $('input[type=image] class=xyz').click(function(){//something}); It doesn't seem to work. Ideal scenario would be that all images on clicking doe...

turning a jquery function into a normal function

I inserted some jquery code which is designed for an feature of one page into my common js file. Now all pages are throwing an error and I think it is because I don't understand the difference between a jQuery function and a normal one. The jQuery one starts off like this: $.fn.googleMap = function(address, options) { and is called fr...

FileUpload with UpdateProgress

UPDATE: I've added a java script function: function showWait() { if ($get('filUpload').value.length > 0) { $get('UpdateProgress1').style.display = 'block'; } } <asp:Button ID="btnUpload" runat="server" OnClick="btnUpload_Click" OnClientClick="...

Fix a id in JQuery

Hi, I am using JQuery for my application.. Having a doubt on how to add a id to my element tr. My code is <script type="text/javascript"> $(document).ready(function(){ var tr = document.createElement('tr'); var td1=document.createElement('td'); tr.appendChild(td); }); </sc...

Background color percentage?

Is their any way I can use a background color to show in 50% of my division using either css or javascript???The box in which I want to do this has a background Image[png] which I want to fill 50% with a color for showing ratings...... I can use an Image of the half filled background Image but I believe that would slow down my Rating sys...

Jquery help, making collapsible sidebar for a vbulletin forum

Hi guys, Im trying to make a sidebar for my vbulletin skin thats expandable/collapsible. Heres my code: jQuery(document).ready(function(){ $(".hide").click(function(){ $("#sidebar").animate({width:"0px", opacity:0}, 500 ); $("#sidebar").animate({padding:"0"}, 500 ); $("#sidebar").css("margin", "0"); $("#sid...

Get position correct for multiple drag and drops

I have two droppable divs and several images that I drag around between them. Every time an image is dragged and dropped I need to know which droppable div it was dragged from, what position it was dragged from, which droppable div it was dragged into and the position it was dragged into. All this information is then persisted so I have ...

Jquery IF maybe?

I use the following code to find a particular table, hide it then show it on click: $(function() { $('.Nav table .navitem').hide(); $('.Nav table.navheader').click(function() { $(this).parent().parent().next().find(".navitem").slideToggle('100'); }); }); Here is the HTML Output: <div class="Nav"> <table cellpadding="0" cel...

Bit more help with expandable sidebar(Jquery)

Okay, so ive got the collapsing thing done, and it does expand. My problem is, i cant use the same umm tag i guess you'd call it? You'll get it when you look @ the code(hopefully) <!--SideBar Jquery Start--> <script type="text/javascript"> jQuery(document).ready(function(){ $(".hide").click(function(){ $("#sidebar").animate({width:"h...

How to get horizontal scrolling with the div element?

I have this div element: <div id="tl" style="float:right;width: 400px; height:100px; background-color:Green; overflow-x: scroll;overflow-y: hidden;"> <div id='demo' style="float:left;height:90px;"> dsadsad </div> <div id='demo' style="float:left;height:90px;"> dsadsad </div> </div> The div demo will copy by ...

Is there a JQuery Table plugin that supports an HTML table as an AJAX datasource

I've been evaluating a number of JQuery table plugins to handle my paging and sorting needs. I am looking for something that allows be to page and sort my tables with an AJAX call. The problem that I am having is that all the plugins that I have found expect the Ajax call to return JSON. This is perfect for simple scenarios but falls d...

multiple postback events in an update panel

I have an update panel containing several divs which utilize jquery ui's draggable. On drag stop i want to do a postback which only effects the update panel. This works fine, but before continuing down this road i was wondering if a second divs dragstop event occured during a previous divs postback would both postbacks be executed prope...

Uploading a file to Sharepoint Via webservices without a page refresh using Jquery

I am trying to create a wizard using jquery (fill in a dialog of info, press next, dialog changes but page does not refresh). During this process I would like to upload a file to a document library. I do not wish to reload the page. Is this possible? How would you go about doing this? ...

how to handle multiple forms on one page?

On one page i have list of questions with diffrent tipe of answers. (texboxes, checkboxes etc) Page is dynamicly generated. I have to store answers in database. What is the best way to do this? multiple forms or something else? it would be great if i could send ajax request after every answer but i don't know how to accomplis that (how t...

jQuery Accordion gets scrambled when shown from a display:none DIV

Basically, I've set up a DIV in a display:none mode, showed when clicked (simple JS event). HOWEVER, I tried adding to the non-displayed div a qQuery Accordion; whenever the DIV is shown, the accordion is displayed incorrectly: the H3 tags are scrambled into the text, and the sliding/hiding won't go properly. Removing the display:none s...

Does jQuery's Ajax have anything like .NET's LoadingElementId

.NET's Ajax helper has the LoadingElementId: String property, gets and sets the ID of the DOM element to be displayed for the time it takes to complete the request. Looking for the easiest way to implement an 'In Process' spinner for forms submitted via jQuery's Ajax toolkit. mny thx ...

using variables in rel attribute in jquery selector

I'm using the rel attribute to match a div to a button. I use the button's id in the corresponding div's rel field. There are multiple buttons. When a button is clicked I want to show the corresponding div with the show() method, and to hide the other divs. The buttons work fine, but the divs are not responding. My gut says I'm not fo...

How to perform slide right using Jquery

I had a div class that generate a arrow >>. when that div is clicked i want to show the list of items which should slide from left to right and should wait for 20 secs. when clicked once again, it should slide left and disappear. Im Trying it using Jquery.But not working. Please help me. Any help will be highly appreciated. ...

multiple upload images on c#/jquery

is there out there any multiple upload images easy to users to upload images like the activex file uploader on facebook. but free :) i update my questions i saw that everyone recommend about the flash uploader. i have the problem that i"m using sessions, i"m passing the user album id for relation to the image that been uploaded and th...

multiple forms with ajax/jquery?

I am using this plugin: http://malsup.com/jquery/form/#getting-started I am having issues, getting it to submit (using a single function) more than one form on the page at the same time, and to make it more complicated, I am loading the form via ajax from a remote html call. So the form function needs to be loaded again. The question ...