ajax

Ajax.BeginForm show loadingElementId when OnBegin return false

Hello I'm having the same problem from this post: http://stackoverflow.com/questions/1164251/ajax-beginform-not-hiding-loading-element-when-onbegin-fails but I have not found how to solve it yet. Basically when I use Ajax.BeginForm with a OnBegin function and this function returns false, the loading elementID is still shown and it nev...

Web Service returning xml data using jquery works fine on local but not on server

I am having a webmethod that returns some data.I'm using jquery to call that function with its Content type specified as XML.The problem is that it is working on local machine but not on server.The code i'm using is: var arrInputs = pnl.getElementsByTagName("input"); str = arrInputs[0].value; $.ajax({ type: "POST", ...

redirect non-index page requests to hash links with .htaccess

i'm weak in regular expressions, i need to redirect any FileName.htm or FileName.html page request to ./#FileName, only if the request is incoming from an outside link. These files will all reside in the root directory. this is what i have so far. it gives me errors : ( RewriteCond %{REQUEST_FILENAME} !index.html$|!index.htm$ [NC] Rew...

How to automatically process contents of <textarea> without user pressing a button?

On my page I have a textarea where users can enter a list of items, items being separated by a newline. I would like to process the user's input without him/her having to press a submit button. ("Process" means send the information the user entered to the server and update other elements on the current page.) I thought of two days of do...

jQuery Ajax - Status Code 0?

For some reason, my Dashcode developed application has just stopped ajax'ing and returning status codes of 0. Does anybody have any idea why.. has this happened to you? ...

SharePoint AJAX Web Part 401.2/3 errors

I recently began writing an AJAX web part for use in SharePoint and I am having a strange error. It seems that EnsurePanelFix() is causing the web part to throw a 401 error; in the log, both 401.2 and 401.3 errors are showing up right around the same time. I made some changes to EnsurePanelFix() after doing a bit of research on here and ...

Why does my jQuery event handler fail when attached to multiple elements?

I am using jquery to add mulitple new "addTask" form elements to a "ul" on the page every time a link is clicked. $('span a').click(function(e){ e.preventDefault(); $('<li>\ <ul>\ <li class="sTitle"><input type="text" class="taskName"></li>\ <li><input type="button" value="saveTask" class="saveTask button"><...

ASP.NET callback to encoded URL with UTF characters fails on IE

I have Russian blog built with BlogEngine.NET 1.5. I use Russian words in links encoded with URLEncode, so links are human-readable in most browsers - FF, Chrome, Opera (except for IE, but this is not the real problem with this browser). This idea is not mine, I borrowed it from Wikipedia - it uses encoded URLs on localized sites. The ...

JQuery newbie - dialog

Hi there, I'm trying to use the jqueryui dialog (http://docs.jquery.com/UI/Dialog) within my html page. Has anyone got any links on the web to the javascript libraries needed to use the dialog widget? My HTML code taken from (http://jqueryui.com/demos/dialog/modal-message.html) is below - I think linking to the javascript libraries is...

Retrieve Facebook Fan Names

Hi everyone, I'm trying to grab the names of fans of a Facebook fan page that I administer. I've done some snooping around, and apparently, the FB API doesn't support that, but Facebook actually uses AJAX/JSON to populate the list. Anyways, can anyone suggest a way to make that call myself and grab the data as plain text? Also, I've fo...

Embed youtube video without youtube link

as you know that when you Embed youtube video in your web page, it works fine , but if you click on any part of screen, youtube website will open in new window. is there any way to Embed youtube video in our website, but disable that youtube website opening when click on screen to pause the video? or you can play you tube video in othe...

jquery Ajax call - data parameters are not being passed to MVC Controller action

I'm passing two string parameters from a jQuery ajax call to an MVC controller method, expecting a json response back. I can see that the parameters are populated on the client side but the matching parameters on the server side are null. Here is the javascript: $.ajax({ type: "POST", contentType: "application/json; charset=utf-8",...

execute clientside javascript function using codebehind function in asp.net

I have been using Anthem.NET in ASP.NET 2.0 projects for a few side projects and have a question regarding a slick piece of functionality that appears unique to this framework. I have worked with Telerik and Microsoft ASP.NET AJAX Frameworks and the ability to execute a JavaScript function from within an "ajaxified" control in a code be...

Is there any OOP way to secure this MVC web app design?

I'm writing a shopping cart application for a family member's online seed business. It's a fairly straight-forward workflow - users select what they want to order, type in their contact information, and the application generates an HTML E-Mail receipt and sends it to the contact address. Now, here's the rub - I've implemented the appli...

Rails Ajax Authentication

Hello, Does anyone know if it is possible to create a secure authentication system using AJAX? I would use the same recommended security techniques, except that the user name and password would be posted using AJAX. If anyone has any ideas on why this would not be secure, or if they could point me to any resources that discuss this I ...

Make sure first ajax function finishes before second one.

I have a JavaScript function that makes two consecutive Ajax requests using jQuery. I want to make sure that the first request has loaded before the second function is called. Is there a way I can do this? ...

Make sure ajax function finishes before 2nd non-ajax function fires

Similar to the question I just asked, If I call an ajax function in jQuery and then a non ajax function how can I prevent the non-ajax function from firing until after the first ajax callback function has completed. Will declaring async: false in the first ajax function be enough? ...

using populated xml element from ajax

I have created a javascript object and associated method which looks very similar to this. "getUserInfo" is executed in $().ready(function(){} function userObject(userId) { this.userId = userId; this.getUserMachineList = function(infoId, machineListId) { jQuery.post(machDBPHPPath + "/listAllUserMachineAccess.php", ...

AppEngine/Python, query database and send multiple images to the client as a response to a single get request.

I am working on a social-network type of application on App Engine, and would like to send multiple images to the client based on a single get request. In particular, when a client loads a page, they should see all images that are associated with their account. I am using python on the server side, and would like to use Javascript/JQue...

Malsup's jQuery form plugins with file upload fail in Google Chrome

Hi, I have used Malsup's jQuery form plugins for a quite some times. The plugins working great and the file upload is working using hidden iframe technique. Yesterday I tried to use it in Google Chrome browser, but it failed. This morning I try the example in the http://malsup.com/jquery/form/#file-upload but I got the same failed resu...