jquery

jquery progress bar to show upload file progress

I want to use progress bar to show file upload progress. I'm currently using the following code <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="jquery.progressbar.min.js"></script> $(document).ready(function() { $("#spaceused1").progressBar(); }); HTML: <span class="progressBar" id="space...

IF IE neglect/hide div

Hello, I have page like this <html> <head> <div id="container"> Hello, this is NON-IE content. </div> </head> </html> What I want is to Stop Internet Explorer [ IE ] from loading OR Neglecting <div id="container"> & allow all other browsers to load It. Don't want to use <!--[if IE 7]>. Looking for Javascript to work with. How Ca...

jquery json problem

look at this function please $(".menu_tree img.edit").click(function() { id = this.id; lang = '<?=$lang_id?>'; var body_width = $("body").width(); var body_height = $("body").height(); $("#shadow").width(body_width); $("#shadow").height(body_height); $("#shadow").show(); ...

jQuery having trouble selecting things in different cases

Note: If you're 'just' a jQuery developer some things in this post may look a tad complex (Base62 encoding etc.) - it's really not. Although the more technical details are relevant to the question, the core is that jQuery won't select stuff with capitals. Thanks! Hi folks! So I have a list generated by Ajax. When you click the list's t...

JQuery selector multi-class objects

Hey all, I've been trying to get a series of objects to appear that have multiple classes associated with them <div class="Foo Bar"> Content </div> <script> alert($('.Foo').length); </script> The selector above is returning 0. This is unfortunately one of those questions that is completely impossible to ask to google (at leas...

jQuery Autocomplete, enter triggers another binding

Hi, I am using jqGrid and have inline editing with a textfield using jQuery autocomplete. My problem is that autocomplete binds my enter key (to the input element) to select an item in the autocompletion list of suggestions. This is all nice, however, my jqGrid has also bound my enter key to the table row, saving the row and exiting edit...

jquery one liner for finding and highlighting rows where contents of 1st cell is gte 2nd cell

$('tr').find(need help here).parent().css('backgroundColor', '#fcc'); would like to perform inequality check of two dates (both strings) in the 'need help here' section of the above snippet. Thanks ...

simple preloader for jquery load function

hey guys , i know how to load a page in jquery and somehow i know how to use success but what if that page failed im looking for a way to show loader image before the page loaded and if the page failed show a message this is the function i wrote : $(document).ready(function(){ $("#loading").html("<img src='images/preload.gif' ...

Serialize jquery sortable

Hello all, I have been digging around on this site and googling for a while now and I cannot find a good solution to my problem. I would like to be able to save the state of my jquery portlets on a page. I would rather not have a "save state" button if I can avoid it. Anyway, I just have the jquery code copied from their portlet examp...

jQuery solution for content zooming/switching?

I'm designing a page for a kiosk at a local business that displays both a flash solar monitor as well as a slideshow of images of their new green roof but want a way to focus on each of these objects individually, making the one in focus larger in the foreground while having the other smaller and more subtle in the background or on the s...

jquery dropdown simple problem?

hey guys, i'm almost there but I'm not able to solve the last problem. I'm trying to create a simple dropdown menu with jquery on a Indexhibit page. $('#menu ul li.section-title').hover( function () { $(this).parent().children().show('fast'); }, function () { $(this).parent().children().not(this).hide('fast'); } )...

jquery, div with table is not visible when I call show();

<div id="abclink"> + click here to view </div> <div id="abctable" style="display: none;"> some text here, allot of text </div> So using jquery I try and do: $("#abclink").bind("click", function() { $("#abctable").show(); }); This doesn't work, and I don't know why? ...

jquery absolute position animation

I'm having trouble with a piece of code $(function(){ $('input.no').click(function(){ $(this).animate({"left" : "80px"}, 150); $(this).removeClass().addClass('click'); }); $('input.click').click(function(){ $(this).animate({"right" : "0px"}, 150); }); }); and here you can see the full code http://pastebin.m...

check if <ul> <li> has an active link?

hi guys, i have <ul> <li class="section-title">HEADER which triggers dropdown</li> <li><a href="element_one">element one</a></li> <li><a href="element_one">element one</a></li> <li><a href="element_one">element one</a></li> </ul> i'm hiding all li-elements (except the first one) with this line: $('#menu ul li.section-title:f...

Div Appear After 5 Seconds Jquery

Hi, I'm having problems getting a div to appear using jquery after 5 seconds. right now I was using $(document).ready(function() { $("#message").delay(delay).fadeIn(5000); }); But it's not working (#message being the name of the div serounding the content I'd like to show) If anyone could help me get it working that...

JQuery with Asp.net validation

I have a form that displays an asp.net grid with different people listed in the grid. A user can add new user's to the grid, by clicking an asp.net button on the page: <div id="content_button"> <asp:Button ID="btnAddperson" runat="server" CssClass="content_button" PostBackUrl="addperson.aspx" Text="Add Person" Tool...

php variable to know when jquery has loaded?

I know you can get a $_SERVER['HTTP_X_REQUESTED_WITH'] php variable if jquery has loaded. That's great but if you use an iframe then that variable is no longer available. Is there a way to detect if jquery has loaded and give php a varaible in an iframe? I don't want to load a header or footer if jquery has loaded 100% but otherwise put ...

PHP Progress bar

I have one form as shown below: Page 1: <form name = "form1" method="post" action = "page2.php"> ........ </form> Page2.php: <?php For loop ... ..... end ?> Now i want to have progress bar on page 1 so that it can show the completion progress of for loop in page2.php. Tell me how can i do that? Please don't direct me to any pro...

MVC Edit View, JQuery change

I have an MVC view with the following jquery. <script type="text/javascript" language="javascript"> $(document).ready(function () { $('#myinput).change(function () { alert('Changed'); }); }); </script> When I change the text in the 'myinput' box, I want the alert 'Changed' to be displayed. This wor...

Close dialog causes Too Much Recursion

I have a table with rows which can be deleted by clicking on an icon next to each row. When the icon is clicked a confirmation dialog appears asking the user to confirm. Whichever action is taken (Yes, No, X) causes a Too Much Recursion error. The function works, in that the row is deleted, and the dialog closes, but it causes the TMR e...