ajax

My AJAX tabs callback function is getting huge... Need some guidance.

I'm using jQuery UI tabs to display a few pages of a pretty big form my users have to fill out. The form is, unfortunately, Web 2.0. It has the 'Add more' buttons to add extra inputs to the array, there's one tab that utilizes jQuery UI's draggable() functionality as a kind of 'add more alternative'. Basically, there's a lot of Javascri...

loading flash preloader before the game content loads

hi there, as i am new to javascript with flash. i have a small requirement. like i am currently working on a games website in which whenever i open the game a flash preloader needs to open first and hide the game file while the flash preloader loads. once the flash preloader completes its loading then immediately the game content need t...

Why Some Sites not opening in Pop Window?

I have an html page. On that page I want to open popup window. I have a link on which I have to click & open new pop up. But, it is not a new browser window. It is AJAX based popup. I do have used Queness popup & YUI dialog popup. Now, in that window I want to show an iframe which will display page related to link I have clicked. But, ...

PHP AJAX UPLOAD ?

I am having problem uplaoding file, here are my codes: Any help? Thanks! test.html function insertPhoto() { var description = document.getElementById('description').value; var image = document.getElementById('photo').value; var url = "ajax_insert.php?action=add&image="+image+"&description="+description; var ajaxRequ...

Help on Understanding jQuery $.post - w/ code sample

$.post('testeUpdate.php', 'autocomplete', function(dadosResposta) { $('#ns-nome').val(dadosResposta.nsName); $('#ns-endereco').val(dadosResposta.nsAddress); }, "json"); I'm trying to understand this. So, and having the jquery $.post reference link near me: 1) A post request is send to teste...

Monitoring User Sessions to Prevent Editing Conflict

I'm working on something similar to a pastebin (yeah, it's that generic) but allowing for multiple user editing. The obvious problem is that of multiple users attempting to edit the same file. I'm thinking along the lines of locking down the file when one user is working on it (it's not the best solution, but I don't need anything too co...

FileUpload in UpdatePanel

Hi All, I have a problem with uploading file to server. I have panels of information on my page. Each panel specify a step of information. And on the last panel, I have a FileUpload control to enable user attach a file. All panels are placed inside UpdatePanel. But, I am not receiving posted file on the server. I tried doing full post...

Jquery $.post - From server to client - how does it knows what response to get?

So we have this: $.post('testeUpdate.php', 'someValue' function(dadosResposta) { $('#ns-nome').val(dadosResposta.nsName); $('#ns-endereco').val(dadosResposta.nsAddress); }, "json"); From client to server: Is sends 'sameValue' to testeUpdate.php using POST. On success, it receives the data retur...

jQuery DataTables server-side processing using ASP.NET WebForms

Problem: jQuery DataTables server-side processing using ASP.NET WebForms. Solution: Darin Dimitrov answered the question using an example which pages and sorts, but doesn't do any searching. Here's my **basic** modification of his work to make searching work on his example: public class Data : IHttpHandler { public void ProcessRe...

Secrets of Twitter and Foursqaure Ajax-like.

Hey folks, Does anyone know how to make things like these: Im talking about theses "hidden ajax" on Twitter home (Top tweets) and Foursquare Home (Recent Activity), that is in constant update, but theres no request under tools line Firebug. Seems to be "hidden ajax". Does this exist? Thanks. check it out here: http://i.imgur.com/aN9X...

jquery $.post - The triology ending here - some questions about json integration with $.post

Hello all, Here's some code that I've seen on the internet to help me out archieving more or less the same: <input size="30" id="inputString" onkeyup="lookup(this.value);" type="text" /> function lookup(inputString) { if(inputString.length == 0) { // Hide the suggestion box. $('#suggestions').hide(); } else { ...

Passing data to ModalPopupExtender and fetch records from database based on that data.

I have a DataList control on my page which contains a LinkButton/HyperLink control in each row. Now on click of this LinkButton control I want to show a panel with the help of ModalPopupExtender in which I want to show more data about that particular row by passing the ID of that row. I have three problems in that: How to fetch the I...

AJAX https and SSL verification error

I have a page that loads a div via AJAX. The AJAX POST call is made in https from a page with the protocol also https. If I visited the page being loaded into the div directly, there are no SSL issues. If I visit the parent page before loading the div, there are no SSL issues. The error only occurs when I click a link to load the conten...

How can I RedirectToAction within $.ajax callback?

I use $.ajax() to poll an action method every 5 seconds as follows: $.ajax({ type: 'GET', url: '/MyController/IsReady/1', dataType: 'json', success: function (xhr_data) { if (xhr_data.active == 'pending') { setTimeout(function () { ajaxRequest(); }, 5000); } } }); and the Actio...

Loading animation doesn't show up until after ajax call completes in Safari/Chrome

Hello Everyone, I've run into a problem that I haven't been able to find a solution to yet. I'm creating a resource booking application which uses AJAX to process information given by the user into a back-end database. Whenever the user wants to create a booking they fill out a form with relavent information which gets sent via AJAX to...

Do I need to do anything special to make WCF calls work over HTTPS, ..if HTTP works fine?

I have two versions of the same proof-of-concept site: The unsecure version: http://www.tlsadmin.com/tlsadmin/PortalHome.aspx and the secure version: https://www.tlsadmin.com/tlsadmin/PortalHome.aspx The problem I have is that my WCF-Based web services don't seem to work under HTTPS. Is there something I'm missing, or not underst...

How can I get Webkit and IE browsers to prompt to save passwords for login through AJAX request?

I have an HTML page with a login form and a registration form inside of an overlay. When the user submits either of these forms, an AJAX request is made back to the server. If the registration or login is successful, then the user is logged in and certain parts of the page are updated. If there is an issue with the login/registration ...

How to start learning AJAX ?

AJAX - Asynchronous JavaScript And XML What does it include ? html, javascript, XML, jQuery ........... What is the way to start learning AJAX ? Is it basic from html & javaScript ? or on the basis of the language platform ? ...

Same Origin Policy - AJAX & using Public APIs

I know if on my own webpage, if my user is on : http://www.example.com/form.php and I make an ajax request from that page to : http://example.com/responder.php It will fail because of the Same origin policy (subdomain is different). What I am trying to understand is, how is it that AJAX requests can pull data from API's like flickr ...

Major Google Maps glitch using API V3

edit: this is now solved, see my answer below The situation: User clicks on a map-image google maps API V3 is loaded via ajax the map is shown in a dialog window / lightbox please see glitch here What happens: The map displays and all functionality works however there's a glitch with the top-left 'square' of the map. I'm stuck...