jquery

flash progress bar in webpage? Using javascript

How to make progress bar in my page, that show how much flash file got progress in dwonload. ...

issue when dragging an image using javascript (jQuery)

Hi all, I am trying to create a draggable div with an image. I could drag a div with some text, but whenever I replace the text with an image dragging not working fine. Please check this link, If you replace the image with text, it will be able to drag the text on the window,but it wont work if we replace the text with an image as it is...

Making a GET call before leaving page - Javascript

Hi folks, performing a GET in order to send data to an API before a user leaves the page can be seen as a performance issue. Is there an alternative or a way a developer can optimize the client side javascript? One of the great examples is: Google Analytics! ...

jQuery draggable div makes overflow:hidden page scroll

I setup a draggable div with the .draggable() UI from jQuery's site. My main container div is set to be the width and height of the window with overflow:hidden so there will never be a scrollbar on the page. My problem is that when I start dragging my draggable div off the page it makes my page scroll (which I do not want). Here is my...

Jquery "reusable" function

Silly question I think, but is there a way to use the "if" statement as a reusable function success: function(msg){ if(msg=='o'){ $j('#ok').show(); $j(button).show(); $j('#chk').hide(); } else{ $j('#ok').hide(); $j('#chk').show(); $j(button).hide(); } } ...

jQuery jScrollpane plugin strange behavior

Please check this site: pixeli.ca/works/italia There I work on the site. The problem is when I just open this address, it doesn't show two panels using jScrollPane properly - these look like narrow horizontal stripes with content inside them. Then I click any of the top nav bar items and it becomes what it should be - all looks fine. Wha...

jquery next() and elements that aren't necessarily next to each other

I know there are other questions on the subject, but I haven't been able to get any of the to work, so I'll ask again: I have an html list that looks like this: <ul> <li>Item one</li> <li>Item two</li> <li>Item three</li> <li>Item four</li> <li>Item five</li> </ul> Using jQuery some of the li tags are hidden, and some are v...

Unreliable javascript regex test in Firefox and Chrome

I am encountering a strange javascript regex problem on Firefox 3.6 and Chrome 6 dev. I am working on a massive form entry website that has some basic javascript validation using jQuery. $(document).ready(function() { $("tr[id^='" + BaseRowId + "rid']").each(function(){obj.WireRowEvents(this);}); } var obj = { "WireRowEvents": funct...

jQuery UI button won't stay hidden in IE7

Ok, I have made a twitter-style control panel to apply filters and sorting to a list, the code for it is like this: <div id="drawer"> <div id="orderDrawer" class="subDrawer" > <div class="closeDrawer clearfix ui-icon ui-icon-closethick">close</div> <h4>sorteer</h4> <div id="orderPanel"> <!-...

how can get attributes of root element?

<?xml version="1.0" encoding="UTF-8"?> <data columns="12" rows="0"/> how can get attributes (rows) of root (data) element in jquery? i can with var records = $(xml).find(":first").parent().attr("rows"); but not works :-/ thanks Rob ...

Basic help using Firebug

Just starting using the Firebug console. I have a test script which I'll post below. I open up the Firebug console and type $("p"); this returns null. Its my understanding it should return all my p elements ie p, p.foo, p, p#bar. A conflict maybe or am I just using the console incorrectly? <!DOCTYPE html> <html> <head> <title>Testing ...

jQuery syntax - when to use $ vs jQuery

What's difference between this two? $('#SPANID').html("Some Text"); jQuery('#SPANID').html("Some Text"); Is it something prototype vs jQuery? ...

is it possible to open a popup with javascript and then detect when the user closes it?

The question is pretty much all in the title. Is it possible (and how?) to open a popup with javascript and then detect when the user closes it? I am using jquery within the project so a jquery solution would be good. Cheers! ...

JQuery add delete row table from another

I have two tables with FIRST and SECOND id. <TABLE ID="FIRST"> <TR> <TD></TD> <TD></TD> <TD></TD </TR> </TABLE> <TABLE ID="SECOND"> <TR> <TD>1</TD> <TD>First Value</TD> <TD><A HREF="#">Add</A></TD> </TR> <TR> <TD>2</TD> <TD>Second Value</TD> <TD><A HREF="#">Add</A></TD> </TR> <TR> <TD>...</TD> <TD>...</TD> <TD><A HREF="#">Add</A></TD>...

Jquery menu and button selection

Hi I am trying to use jquery to build a top navigation. When a link button/menu is selected the button should be higlighted and display the selected item and when its goes to that page selected. Is there anyway to do this. I have this script it kinda works but not completely. <script type="text/javascript" src="js/jquery-1.4.2.js...

fadeout() images with delay using jQuery

Hello, I have about 10 images, which I want to fade out, but delay the fadeout show that each image is shown clearly. for(i=1;i<=24;i++) { $('.stretch').fadeOut(5000).attr('src','images/hello'+i+'.jpg'); } I want to use jQuery. Thanks Jean ...

Get Tree Node name

I have a ASP.Net TreeView Control with Checkboxes along Child nodes. I want to get Text of the checked Child Node in the TreeView control. And I want to get the checked Child Node Text using jQuery/javascript. Mostly I had used jQuery in the page I had done. I had used $(this).text(). But its not working. Since the control is ASP.Net Tr...

jquery qtip plugin

Hi, I am using the jQuery qTip plugin and am having trouble loading html content into it from another element. I have the following code: $('.tip').qtip({ content: { text: $(this).next('.product_info').html() } }); with the following html: <a href="#" class="tip">An Image</a> <div class="product_info">Some conten...

javascript (jQuery) not working in IE6

Hello all I have developed a dragable div with an image inside using jquery. The script is working perfectly in Firefox, chrome but not it IE6. could you please help me to fix this issue check the web page here : my web page Thank you very much for your consideration. ...

Requesting something via ajax - how to stop other requests until this one is done

Hi, I have a php script that outputs json data. For the purposes of testing, i've put sleep(2) at the start. I have a html page that requests that data when you click a button, and does $('.dataarea').append(data.html) (php script returns a json encoded array. data.html has the html that i want to put at the end of <div class="dataare...