ajax

Sending and receiving a file to an aspx script.

Hi Guys, I have a need to send a file to an aspx script so that it can be processed and then returned. We have 2 servers (let's call them A and B) and I have a website on server A that allows users to upload a video. When they upload the video I need to pass the file to a script on Server B because I have some software on server B that...

How to activate two JavaScript functions in parallel?

Anyone can tell me how to activate two (or more) JavaScript AJAX functions in parallel? ...

jQuery .load Method causing page refresh AJAX

I have a functional JSP page that accepts URL parameters and updates a table on the page with info based on those parameters. I have a set of different tabs which pass said URL paraneters to the page they are on so it then re-loads and displays this new data. I have been trying to use jQuery .load and .ajax methods so that i can pass t...

jQuery AJAX problem in IE7 (possibly other versions as well)...

Can anyone enlighten me as to why the following code won't work in IE7 but it works just fine in Chrome/Firefox? $(document).ready(function(){ $.ajax({ type: "POST", dataType: "text", cache: false, url: "/ajax/ajax.asp", data: "cmd=check_forfeits", success: function(msg) { return false; } }); }); ...

Displaying JSON array through ajax (jquery)

I'm pretty new to Ajax and JSON and tried to get this to work but can't seem to get the hang of it. How do I call the json in ajax and display all the info inside the json file? here's my json file { posts: [{"image":"images/bbtv.jpg", "alter":"BioBusiness.TV", "desc":"BioBusiness.TV", "website":"http://andybudd.com/"}, {"image":"imag...

Ajax, jquery form plugin won't work...

Hi all, I'm trying to use the malsup jquery form plugin and I can't get the simple example to work (http://jquery.malsup.com/form/#ajaxForm). I've pasted my code below. What is going wrong? All that happens is I get an alert box that says "Thank you for your comment!". Nothing else happens. Thanks, Mark This is the ajaxtest.html ...

jQuery Update and Scroll like Polling

Hi Guys, Looking for something written in jQuery which allows polling or a plugin which would allow data updates similar to this website. Anyone got any ideas of something like this in jQuery ? Or how to write something ? ...

How to bind event after ajax success in jQuery

So here is my code: $(document).ready( function() { $('#form').bind('change', function(){ $.ajax({ type: 'get', url: 'api.php', data: 'task=getdirs&formname='+$('#form').attr('value'), dataType: "text", success: function (html){ $('#chdir').html(html); $('#chdir select').bind('change', getDirs());...

I can't add ajax controls to Visual Studio 2010

I can't add AJAX controls to VS2010 rc. I try to drag it to design view, but nothing happens, code remains unchanged. Where is a problem here? Should I install manually ajax toolbox to make it work? ...

Client side library or AJAX Control toolkit? - ASP.NET

For a slick UI, I am deciding between using a client side library (JQuery or ExtJS) or go with the AJAX Control toolkit. I understand that the widgets supported by ExtJS rich library does not match what's there in the toolkit. What are the pros of cons of using one over the other? ...

Jquery ajax auto complete problem

Hi all, I'm having newbie problems resolving an ajax autocomplete script if anyone would like to offer advise? In my form i wish for users to select an event type (drop down box) which on selecting then displays a text box. This text box then offers a user the ability to autocomplete as they start typing, the options having been genera...

"filter" json through ajax (jquery)

I'm trying to filter the json array through ajax and not sure how to do so. { posts: [{"image":"images/bbtv.jpg", "group":"a"}, {"image":"images/grow.jpg", "group":"b"}, {"image":"images/tabs.jpg", "group":"a"}, {"image":"images/bia.jpg", "group":"b"}]} i want it so that i can only show items in group A or group B. how would i have t...

JQuery Ajax File Upload

Hi Can I use this below Jquery form to perform file upload using post method ajax request ? $.ajax({ type: "POST", timeout: 50000, url: url, data: dataString, success: function(data) { alert('success');return false;} }); if it is doable, do i need to fill "data" part? is it the correct way? I only post the file to...

jQuery .ajax method in IE7 & IE6 not working but working fine in Firefox

This relates to my previous post: http://stackoverflow.com/questions/2318696/jquery-load-method-causing-page-refresh-ajax I changed my implmentation to use the .ajax method instead of .load and it works fine in Firefox but not in IE7 or IE6: $('ul#coverTabs > li > a').live('click', function(event) { // Find href of current ta...

Pulling Facebook status with jQuery returning null

I am trying to pull the status updates from a Facebook Page. I have the url for the feed: http://www.facebook.com/feeds/page.php?format=rss20&id=141941024749 Putting that into the browser returns the feed, however when I try to pull the same thing via ajax I get null. Here is the jQuery code I am using. $.ajax({ url: "http:/...

jQuery & jqTouch - ajax.load problem

I think my problem lies more in my approach and applies more to jquery, but something weird is happening here. I'm using jQuery & jqTouch. My html is: <div id="home" class="current"> <div class="toolbar"> <h1>Header</h1> </div> <ul class="rounded"> <li class="arrow"><a href="#currentloc">Current Location</a>...

[Ajax] Holding old image until new image is ready to update.

Hello, I am using setInterval and the jQuery load function to periodically update an image tag. var refresh_days = setInterval(function() { $('#box_name').load("dynamic.php");}, 1000 ); This works, but there is a slight delay before the new image is fully loaded, during which nothing is shown. Is there a way I can wait until th...

How do I continuously pass values from PHP to javascript

Hello, I need to update my UI (webpage) periodically with new values. I have PHP code that grabs the values form a database, but I am not 100% sure on what is the best way of getting that data to the UI side. The complication here is that: 1. I need to constantly update the values (every second) 2. I need to update many different areas...

Yahoo Weather, Yahoo GeoPlant, Google Weather or another API to connect to with javascript?

I need a way to get the current weather back for a certain city with javascript? Which API would I be better to use? Or are there any other apps that you can use an ajax request to get the current weather? GeoPlanit required an appid so I haven't tried this yet and yahoo weather is an RSS feed. I have also read that Google's weather API...

How can I display a "waiting" indicator on a web page whilst the http request is being fulfilled by the webserver?

Hi, Background - I have a web application for which a request takes several seconds. Question - How could I display a "waiting" type indicator (e.g. spinner) to the user after they initiate the request, until the actual HTTP request response comes back from the server? Notes - I'm assuming this to be a generic web development questio...