jquery: reliable plugin for jquery 1.4 that allows ajax file upload
Could you point me to some tested jquery plugin for ajax file upload? I would like it to be jquery 1.4 compliant. ...
Could you point me to some tested jquery plugin for ajax file upload? I would like it to be jquery 1.4 compliant. ...
One that is identical to Twitter.com's horizontal scroller is perfect. ...
I want to edit some HTML I get from a var I saved. like: var testhtml = $('.agenda-rename').html(); console.log($('input',testhtml).attr('name')); Also tried console.log($(testhtml).find('input').attr('name')); But i get undefined? I figured it'd work like an $.ajax, $.get, $.post? How else can i do it? ...
Lets say you have a list of items: <ul id="ImportantNumbers"> <li id="one"></li> <li id="two"></li> <li id="topNumber"></li> <li id="four"></li> </ul> Every five seconds these list items get reordered. Using jquery whats the best way to keep #topNumber, at the top of the list during the reordering. ...
Hi all, thanks in advance for your help. I'm using this piece of code to replace a circumflex a that keeps appearing in a website I'm working on, however it only replaces the first occurance of the circumflex a in a given tag. Can anyone help me extend the code? $(function() { $('h2, h3, h4, p, a, div, body').each(function() ...
Hi I have a list like this one: <ul> <li> <a href="..."> ... </a> <a href="..."> ... </a> </li> <li> <a href="..."> ... </a> <a href="..."> ... </a> </li> <li> <a href="..."> ... </a> <a href="..."> ... </a> </li> ... </ul> and the jQuery: $("li").each(function(){ // do stuff }); How...
Hi guys, I am fed up with this problem. Here is two pages, test.php and servertest.php. test.php <script src="scripts/jq.js" type="text/javascript"></script> <script> $(function(){ $.ajax({url:"testserver.php", success:function(){ alert("Success"); }, error:function(){ alert("Error"); }, dataTyp...
I've got a jqGrid along with a jquery UI button toolbar. My toolbar consists of View & Edit Mode. In my jqGrid onSelectRow I check edit mode with method isInEditMode. This returns true if the button with ui-active-state is edit button. My grid seems loads correctly, and hover classes turn on/off as a drag my mouse over the rows. If I'm ...
Hi, How do I print the value (count) of work done? (Now show empty when page just start and i don't wish thaht this.) <script type="text/javascript"> $(document).ready(function() { var count = 0; $("#fileInput2").uploadify({ 'uploader' : 'uploadify.swf', 'script' : 'uploadify.php', 'onCompl...
currently I have following code: home.php <form name='myformname' id='myformid'> <input type='text' name='mytext1' value='abc'> <input type='text' name='mytext2' value='123'> <input type='submit' value='Submit'> </form> <div id='textone'></div><div id='texttwo'></div> _home.php $arr = array( 'textone' => $_POST['mytext...
I have a WCF service that I am calling to using jQuery 1.4.2 (polling it actually every second or so). Over time, the ajax calls slow. Initial request to a method are around ~30ms, but over about a half hour i can watch using Opera's DragonFly (and verified with chrome's tools too) my request times slowly increase. In about a half hou...
I have a navigation menu that has submenus slide down on hover. The menu is structured like so: <ul class='nav'> <li><a href='#'>About</a></li> <ul class='submenu'> <li><a href='#'>Stuff</a></li> </ul> </ul> etc.. What I did to create slideouts was the following: $('ul.nav li').hover(function(){ $el = $(this); $el.nex...
Is there a way I can have collapsible list and have the clicked list expand when clicked and stay expanded even when the page refreshes? I'm using PHP, CSS and Jquery ...
I am trying to call an ASMX from jQuery using JSON and get a SOAP error response. What am I doing wrong?! This is my jQuery call: $.ajax({ type: "POST", url: '/Services/TeamPerson.asmx', contentType: "application/json; charset=utf-8", data: {'active':false, 'team_id':team_id, 'player_id...
Hi, I have been teaching myself JS and Jquery primarily for GM scripts (im not a programmer by day) and tried to come up with a solution to append a DIV to another DIV for every single listing on autotrader.com. They are siblings under multiple parents. The full code is here http://userscripts.org/scripts/review/83865 and working. I...
I am using jquery for validation set some rules. If validation success I want to redirect to another page. How can I do it? // validate contact form on keyup and submit $("#contactForm").validate({ //set the rules for the field names rules: { name: { required: true, minlength: 2 }, ...
For a medium sized app with a medium amount of javascript (in the way of jQuery), what's the best way to combine the javascript into a single file while also avoiding acting on absent elements? For example, given the html: <html> <head><title>Foobar</title></head> <body> <div id='foo'>Bar</div> </body> </html> And the foll...
I am having a problem with matching elements in jQuery. Basically I have list items, and onclick I want to compare two elements to find out its position within the list, ie. <ul id="someID"> <li>something</li> <li>something</li> <li>something</li> </ul> // here is the script var row = 0, element = $('#someID > li:eq(1)'...
I want to use jQuery's (or something similar) selectable functionality: http://jqueryui.com/demos/selectable/#display-grid. However, I would like to be able to force selections. For example, for the grid, if a user starts at 1 and drags to item 6 only 1,2,5, and 6 are selected. However, I want 3 and 4 to be selected because they are...
How to apply Tax, discount to subtotal and calculate grand total?? I have these paragraphs with the following ID's <p id="subtotal">15000</p> <p id="tax">10</p> // In percentage <p id="discount">1000</p> <p id="grandtotal"></p> // Grandtotal will be calculated and displayed here using jquery The grand total would be 15000 + (1500 //t...