jquery

get file names from uploadify jquery plugin

Hi, that is my first post I am trying here, to get the names of the files that are uploaded, so that the user can delete it if desired, the same way as yahoo. $("#uploadifysub1").uploadify({ 'uploader' : 'JS/uploadify.swf', 'script' : 'JS/uploadify.php', 'cancelImg' : 'cancel.png',...

Dynamic image and Ajax in ASP.NET MVC

I'm trying to show a detail partialview using ajax and colorbox. It's working fine but only the first time. After that GetGraph is not run and the first image is displayed again. If I reload the entire page it's working one time again. The detailinfo is updating OK it's just the chartimage that's not working. Somewhat related question ...

jQuery plugin dropdownchecklist wont update

I have a multiselect listbox with several different values, when a user selects values from first listbox another multiselect listbox gonna be populated with different values depending on the first listbox values. So far everything works as expected. The problem is that i'm using a jquery plugin called dropdownchecklist that transforms...

How to create fixed/absolute position Tooltips on iPhones and iPads?

For some time now I've been happily using the qTip jQuery plugin. No complaints there. However, on iPads and iPhones, the tooltips appears to be buggy. Symptoms: Before resizing the touch screen everything seems to be working fine. After resizing etc. -- Inconsistent behavior. Some tooltips are misplaced; no real logic there. Diagno...

jQuery ASP.net webservice consumption

Hi, I have been looking on how to consume a webmethod using the $.ajax call using this code below: $.ajax({ type: "POST", contentType: "application/json; charset=utf-8", url: "WebService.asmx/HelloWorld", data: "{}", dataType: "json", success: function(msg) { ...

How can I load a data table after the page loads ?

I would like to load data in a table but I would like to do this after the page loads. The actual page has a table, a textbox, and a search button. I was thinking ajax would help, but I am yet to find a good solution for my problem. How do I do this? Javascript, Jquery or otherwise. <table class="roundAll" > <tr class="titleRow"> ...

Apple,Banana,Mango,Ananas and Kiwi - Can I reorder the order?

Hello all, sort() orders the elemts alphabetically: var fruits = new Array("Apple", "Banana","Kiwi", "Ananas", "Mango"); Namen.sort(); document.write(fruits); Well, I don't want the alphabetical order...it should be like var reorderFruits = new Array("Kiwi", "Apple","Mango", "Banana", "Ananas"); Is it possible to reorder the order...

How to enable/disable a certain textbox depending on which radiobutton was checked?

Hello, I've 3 radiobuttons and a textbox next to each other (also 3 text boxes) like this: <input type = "radio" id = "myRadio" value = "A" checked = "checked"/> <input type = "text" id = "myText1"/> <br/> <input type = "radio" id = "myRadio" value = "B" /> <input type = "text" id = "myText2"/><br/> <input type = "radio" id = "myRadi...

Finding Image height/length with facebox to resize

Trying to resize image that is going to show with facebox, with the afterReveal.facebox function.. but cant seem to get hold of the image :/ $(document).bind('afterReveal.facebox', function() { var faceboxImg = $('a[href*=facebox]'); alert(faceboxImg.length); }); $(document).ready(function() { $('a[rel*=facebox]').facebox()...

DOM manipulation inside SimpleModal box

I'm having issues trying to append dynamically created html inside a SimpleModal box (OSX style). <div id="osx-modal-content"> <div id="osx-modal-title">Foo Modal</div> <div class="close"><a href="#" class="simplemodal-close">x</a></div> <div id="osx-modal-data"> <a class="dynamic">Click</a> <span class="...

Jquery Div sort and order =)

Hi All, The problem i have is i need to group certain divs together and reorder them, and if it was all animating it would be cool. Please see below: <div id="away">Some Content</div> <div id="online">Some Content</div> <div id="offline">Some Content</div> <div id="away">Some Content</div> <div id="online">Some Content</div> <div id="o...

You've used the same selector more than once

Why is jQuery.lint.js saying that I've used the same selector more than once? Here's my code: var seconds = 20; function updateCountdown() { if (seconds === 0) { document.forms[0].submit(); } else { $("#countdown").text("Refresh: " + seconds); seconds = seconds - 1; } } jQuery(function($) { setI...

Why does this jQuery code doesn't work (getScript)

Hello, I'm trying to use the jQuerty getScript function. But seems like nothing happens - the script isn't called at all. What's wrong? here's the page -> http://ultimateclassicmovies.com/uncategorized/botr-test/ The relevant code block is at $.getScript("http://content.bitsontherun.com/players/UhLR1fcb-Gv5Rv0Kc.js"); this l...

Export XML to local file using JavaScript

I have a Windows 7 Gadget that runs JavaScript locally. It sends arguments to a Perl script on the server that returns XML. The XML is just timestamps and raw data. I graph these results into a time series using Flot. The graphs are usually performance data (%CPU utilization, logical disk space, etc.) and I want to have the option to exp...

How to browse every 5 records using MYSQL and jquery ajax calls

Hi, I am looking for solution where using jquery I want to display 5 records per page and need Next/Prev functionality. So when user click on next button or image it will fetch data from PHP, Mysql and displays it. SO kind of pagination but using Next/Prev Thanks & Regards, web programmer ...

jQuery - Counting table rows not working in IE7

Hello, I'm coding an application that adds rows to a table without refresh using javascript and jquery. In order to append to the table, I need to do a count of the rows that are currently in the table. I'm using this code... var count = $('#columns tr.FIELD').length; The code works fine in Firefox and Chrome, but I am required to bui...

How to prevent toggle on element within toggle area using jquery

Hi there, I have a jquery toggle to show/hide a div tag using the h2 element in the code below. Within that h2 I have a clickable image (a context menu icon). The context menu works when clicking it, but the h2 also toggles the show/hide on the div. Is there a way you can cancel the toggle functionality on the icon within the h2 tag? <...

Calling PHP in jQuery

I have a site where you click on a product name and it launches a URL with a filter and it returns forum posts relevant to that product name: E.g. www.google.com/product?=blah Instead of having to navigate to this URL is it possible to launch it in a DIV dynamically rather than the user having to click a link. Looking to develop a dash...

How to Implement a Search Box Process in my HTML Website

Hi, Hoping someone can assist with a means of implementing a "Search" routine/page that I can apply to my site that is purely a HTML website only. I have provided a Search box for the user but unsure what the next step is, i.e. can I insert php to perform the Search of my site. Would really appreciate any help/tutorials/links that dem...

How to Implement a Contact Us Form in my HTML Site

Hi, Hoping someone can assist with a means of implementing a "Contact Us" routine/page that I can apply to my site that is purely a HTML website only. I am assuming this will need to be a php process to send emails from a Contact Us form but unsure how to do. Would really appreciate any help/tutorials/links that demonstrate this. Tha...