ajax

Ajax #anchors processing with MVC

I am looking to standardize the processing of ajax #anchors at the server side, using MVC. Before a controller action is invoked I want to convert every request with ajax anchors into a request without ajax anchors, so that the controller code does not know there were anchors in the request: For example: 1) /user/profile#user/photos ...

Why the remote validation doesn't work?

Hello all, I follow the demo http://jquery.bassistance.de/validate/demo/marketo/ and met some problems to achieve the same remote validation function. Here is HTML I used. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2000/REC-xhtml1-200000126/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://...

AJAX - Codeigniter

Hi all, Having gone through all the exisiting questions, I could not find a solution to the problem I was facing. I have a Codeigniter application, which on one of it's views has a form which makes a AJAX call to submit data. I have the Jquery code working for two AJAX calls but for one of the calls, from what I monitor in the header ...

Direct link to Ajax search results

Currently users can search a database using php and ajax with the results shown without a page refresh. This requires uses to enter a search criteria - is it possible to create a direct link to the search results by including the criteria in the url? For example: search.php?keywords=iphone would bring back any results for iphone with...

asp.net mvc - MicrosoftMvcAjax.js throws javascript error when updating table elements in IE8

In IE8 or anything older, innerHTML is not supported on certain elements like TR & TD. Unfortunately, the MicrosoftMvcAjax.js file included in the MVC 2 project uses innerHTML for the Ajax update method within the Ajax.BeginForm or Ajax.ActionLink. To fix that, look into Line 18 of MicrosoftMvcAjax.js and replaced it with this: Sys.Mvc...

Where do I download these files from and what do I need exactly for AJAX 4.0

MicrosoftAjaxDataContext.js MicrosoftAjaxTemplates.js ...

handling login authentication with ajax for OSX dashboard widget?

I'm wanting to build a simple OSX dashboard widget to tie in with my web application. The widget will need a login screen first (user and password) to use it though (checked against user table in hosted mysql database, password stored SHA1 encrypted) So my thought is that the widget will need to: show username and password fields Pas...

calling an ajax function via html

i have an ajax function(with arguments) and i want to call it via html the calling now is: <a href='javascript:;' class='vote_down' id='$wordNum'></a> and the ajax function starts with: $("a.vote_down").click(function(args){ how do i add the arguments to the html code ...

Serving JSON and HTML securely to JavaScript

Hi, I am thinking of secure ways to serve HTML and JSON to JavaScript. Currently I am just outputting the JSON like: ajax.php?type=article&id=15 { "name": "something", "content": "some content" } but I do realize this is a security risk -- because the articles are created by users. So, someone could insert script tags (just ...

load jquery htmlbox with ajax

I use this code to load a htmlbox-instance to my page (this page also loads the necessary libraries to use htmlbox in the head-section): <div id="container"></div> <script language="Javascript" type="text/javascript"> function showEditPnl() { var pnl = document.getElementById("container"); if (window.XMLHttpRequest) { // code...

JQuery Ajax bring in responses as they are created

I'm sending a post request to a php file that makes an MySQL query and iterates through the responses. During the iteration it echo's out a string that I want to bring into jquery one-by-one for each iteration. So for each echo I would like one success value so that the user does not have to wait for all the iterations to finish. The...

JavaScript method begins w/ variables assigned?? very confused...

Hi everyone, this is my first post, but i'm excited to join this community. I have a question regarding JavaScript which I am completely stumped about. I'm writing a JavaScript application which pulls data from a server using ajax and adds it to a chart. I'm using Jquery and Highcharts as the framework and then writing my own JavaScr...

Can HTTP headers be too big for browsers ?

I am building an AJAX application that uses both HTTP Content and HTTP Header to send and receive data. Is there a point where the data received from the HTTP Header won't be read by the browser because it is too big ? If yes, what is the limit and is it the same behaviour in all the browser ? I know that theoretically there is no limit...

Simple queuing system to manage frequent ajax call

I need to make a simple queuing system so that no more than 3 ajax calls are active at any given time. I am using jQuery. Can any one help me out. Thanks ...

AJAX exposing the API of a web app

A couple of years ago, before I knew about Stack Overflow, I was working in an office with a lot of competition between the programmers. There, I had to code a web page in PHP with Drupal, that needed to get data from another site by RSS. What happened was that there was no way to get the data beforehand: the data depended on the content...

How to load more than one DIVs using AJAX-JSON combination in zend?

I am learning AJAX in zend framework step by step. I use this question as first step and accepted answer in this question is working for me. Now I want to load more than one DIVs using JSON. Here is my plan. IndexController.php: class IndexController extends Zend_Controller_Action { public function indexAction() { } public fu...

AJAX Upload + Coldfusion

Hello, I'm using the following JQUERY Plug-in to upload ideas: http://valums.com/ajax-upload/ For some reason I'm getting the following error: The cffile action="upload" requires forms to use enctype="multipart/form-data". Even though the plug-in code has it: var form = qq.toElement('<form method="post" enctype="multipart/form-data...

jQuery: Check if image exists

Hi there I'm loading an image path via jQuery $.ajax and before showing the image I'd like to check if it in fact exists. Can I use the image load/ready event or something similar to determine that the file path is valid? Having .myimage set to display: none, I'm hoping to do something like $(".myimage").attr("src", imagePath); $(".m...

Posted models (via jQuery) come back with all properties set to default

I fetch most of my data as models from my MVC app and just operate on them on the client side. When I'm done with whatever the user is doing I just post back the model/array of models to the server. In a specific scenario, I'm posting an array with two models in it back to the app. I can see all the values of the model in the HTTP...bu...

WARNING: Target component for id thumbnailSelector not found

I am getting this warning in my jsf application when I upload an image through rich:fileUpload. <rich:fileUpload id="file" required="true" listHeight="50" immediateUpload="true" maxFilesQuanity="1" uploadData="#{entryHandler.uploadItems}" fileUploadListener="#{entryHan...