ajax

Javascript game / Server communication / Answer validation

I have a quiz-like javascript game and it is supposed to be fast-paced. The user needs to answer as many questions as he can in a short time. He is presented with a Yes/No question, the answer is sent to the server, validated there and a feedback (correct/incorrect) is shown back to him. I use Javascript and AJAX. The problem is the del...

Rails-friendly DHTML grid?

I have an Excel-based UI that I'd like to replicate as closely as possible in a Rails view. I'm looking for a DHTML grid control that ... can be easily formatted (w.r.t. column width, font size, etc.) is responsive (the page will have up to 200 columns and 200 rows) can have cells containing select controls has good Rails integration (...

ASP.NET Long Process and Sending updates to Browser

Hello, I've asked this before but I was hoping for another answer and perhaps some code samples because I've been having a difficult time with this. I have an asp.net page. The user hits the "Run" button and I have code IN AN ASSEMBLY, not in the APP_CODE folder that is called and runs a long process that moves product info from a file ...

Why doesn't filterJSON work with more complex JSON hierarchy?

I would like to use jQuery filterJSON with flickr, and I found that it does render remote JSON files and not only local ones as shown in its author's demo page. When replacing the default path to local JSON file with remote Twitter JSON file, it renders fine. BUT when using other JSON feeds like the flickr JSON in the code below, returns...

Best Online Video Tutorial Source to Learn Web Development similar to Lynda.com

Please suggest premium or free online video sources that address web development. I'm looking for the satisfy the following areas in particular. Web architecture and planning Web Usability and Design Specific programming languages/frameworks namely (PHP, RoR, javascript, CSS) Database Design AJAX, jQuery Any other areas needed to be a...

ASP.NET AJAX htmlEditor Control issue

I'm using the HTMLEditor control from the ASP.NET AJAX Control Toolkit. It works fine in most instances but 2 of my customers are experiencing an issue. Whenever they CTRL-C copy or CTRL-P paste function is used, any of the toolbar buttons are clicked, or the backspace key is hit, the browser window closes! I cannot find ANY reference ...

Using Firebug to send form data

Is it possible to send AJAX data with params, that aren't in the URL? I have a script that gets information from a form, and the server uses POST and not GET. I noticed the possibility in FireBug to send the params only in the URL. In case it's impossible, is there another program that might help me with that? ...

How to implement a twitter like message appearance?

I'm now developing comment system for my site on Ruby on Rails. I try to make comments to be appeared when user click on SEE MORE button. I see this is not like we do in pagination, so I need your little help guys! When all comments have been displayed, the SEE MORE button should be removed from the page. ...

What's the right way to handle data paging for UX and SEO?

I have ListViews and DataPagers in place throughout my site. Most of them are wrapped in an UpdatePanel for better UX. However, when I start using AJAX to improve UX, I lose value in SEO. What's the right way to get the best of both worlds? I see that I can add the QueryStringField parameter to the DataPager, which will automatically r...

Form validation with Ajax and PHP - return a variable from PHP to use in javascript function

I'm using Ajax via jQuery for the first time ever. I have an html input and when a user clicks it and types something and then the focus blurs, i'm using jquery to call a php script to validate the user's input. I'm trying to figure out how to take the variable in PHP and compare it in jQuery. Please give me any advise Right now when ...

Evaluating Returned Data after AJAX call with JQuery/CodeIgniter

EDIT: I found the problem with my evaluation not working. All the text being returned from my codeIgniter functions has a space before it, so while I saw "success" it was actually " success". I don't know why it is, but I can certainly work with that. As for the next step - opening a new view - Donny's answer was perfect! I am usin...

MVC Ajax TextArea tiny_mce_src.js

I want to used extended Textarea from tiny_mce_src. What am I doing wrong? <%using(Ajax.BeginForm("CreateArticle","Home",new AjaxOptions(UpdateTargetId="content" })) {% <div><p><label for="body"></label> <%= Html.TextArea("body", new style="height:500px"})%></p> <input type="submit value="Save"/></div> <%}%> <script type="text/javas...

jQuery ajax call issue with GET

I have the following code that works: <script type="text/javascript"> $(document).ready(function() { // Initialise the table $('#table_1').tableDnD({ onDrop: function(table, row) { $.tableDnD.serialize(); location.href="test.php?" + $.tableDnD.serialize(); } }); }); </script> And it sends through a re...

What are the benefits to using iframes for ajax long polling?

What are the benefits of using iframes for Comet long polling? Why not just keep an asynchronous ajax request in a script file pulled into the main page? Thanks. ...

Help! me with "AJAX"

I am working around AJAX for few months now and i see Ajax request as following, Pass parameters to background page (PHP/ASP/HTML/TXT/XML ... what else can be here?) Do some processing on server Get back the results and show to client (HTML/XML/JSON ... what else can be here?) If there is something else to add on Request lifecycle ...

CodeIgniter AJAX bug returning same page

Hello , when i try to make AJAX request with jQuery as a response i get the html of the same page ! here is a live preview (edit not available due to me fixing it ) here are my files Edit : I have made changes to some of the files main controller : Class Main extends Controller { function Main() { parent::Controller(); ...

Why My Whole Page Refreshes While Using ValidatorCallOut in Ajax Control Toolkit?

I downloaded Ajax Control Toolkit and want to add its components to my project. I Used ValidatorCallOut Component as an extender of a Textbox and when user changes focus to another Textbox ValidatorCallOut pops up. but this action will cause the page to refresh. How can I prevent that? Here is my code: <%@ Page Language="C#" MasterPage...

jQuery AJAX call using POST is only retrieved with $_GET?

I have the following code that works: <script type="text/javascript"> $(document).ready(function() { // Initialise the table $('#table_1').tableDnD({ onDrop: function(table, row) { $.tableDnD.serialize(); $.ajax({ type: "POST", url: "test.php?"+$.tableDnD.serialize(), data: "", success: function(...

Switching my form submit to ajax-can I just change onsubmit action?

I see lots of jquery tutorials from building the submit form from scratch, and that is cool, but I'm wondering if I can convert my existing form. I'm using a typical form, and already have an email and blank values checking in place. Right now, on submitting the form, the user is taken to the confirmation php page withing form-submit.p...

How to pass javascript var into a ajax remoteFunction?

I have a view where ill have 3 divs: Div 1: List of Brands with checkboxs. Div 2: List of Categories with checkboxs. Div 3: List of Items. This last div will be refreshed with the all the items according to what is selected in the first two divs. At beginning it shows all the items, after we select some of the brands and/or categories...