ajax

Submitting a form through AJAX using CodeIgniter

I am building a web application that will let users follow discussion threads, in Q&A format. To that end, when displaying questions, I have a "Follow" button next to each question. I want users to be able to follow these threads without reloading the page, thus using AJAX. So, I want the AJAX call to: 1) Submit a form updating the d...

How to skip view/layout in a zf controller.

I am making a controller that will be responsible for a bunch of actions and I don't want to have to create a view file for each one, sometimes i just want to output strings. I could just do echo 'Hello World'; die(); into the action. but is there a more correct way to do this? ...

Solving Dual URL Problem..?

I am using cakephp I have 2 links: <a href="#" tabindex="1" onclick="base_load_demo1('http://www.boxyourtvtrial.com/widget/beer/main/');" >beer</a> <a href="#" tabindex="2" onclick="base_load_demo('http://www.boxyourtvtrial.com/widget/cocktail/main/');"&gt;cocktail&lt;/a&gt; With the following JavaScript: var Url1 = "http://www.boxyo...

INVALID_STATE_ERR: DOM Exception 11 when I execute the req.open("Get",url,true);

Thanks, resolved one issue, this is the next. As a novice at this, I am still getting an error and the simple application is not working. I get INVALID_STATE_ERR: DOM Exception 11 when I execute the req.open("Get",url,true); command in the javascript in located in the following index.html file. The simple appl is not working. I get this...

Ajax Upload fails with Ajax Push Engine (APE server) enabled

Whenever I disable the APE comet Server, AJAX file uploads run properly. And when enabled, the response.responseText from PHP is not parsed. This problem has been bugging me since about more than a month. There's another person here with the same problem: http://stackoverflow.com/questions/3012636/can-not-use-ajax-upload-because-of-ape...

JSP code to display a JFreeChart using Struts2

All, I have been trying to use this guide to render a JFreeChart on a JSP page. Could someone help me out with the JSP code required to show this on a tabbed panel using the struts-dojo-tags. Eventually I want to render a different graph on each tab and refresh them using AJAX. At the moment I have configured everything as shown in th...

Problem with MVC2 Ajax form and xval client side validation.

Hi, I have loaded a prtial view in my MVC 2 application. The partial view is loaded via the jquery get method. The partial view contains the following code below. The problem I am having is that when the submit button is clicked the xval validation message appears but the form still gets posted. Has anyone any ideas how to stop the ...

Refresh the contents of a tabbed panel in Struts2

All, I have a question regarding Tabbed Panel in Struts2. If I have a few panels and I want the content on a tab to be updated every five seconds would how would I do this? Also, I only want the tab which is currently being viewed to update at the given interval. The other tabs should update when selected and then continue t be updat...

How get snapshot of my canvas

I develop small application using javascript, using this I can draw on the canvas.I want to know, How get snapshot of my canvas and send it another one, using javascript or any other server side language. please help me.thanks. ...

Ajax request inside update panel...synchronous?

Hi, please bear with me, hope you can help me out: I have 4 .NET LinkButtons and a .NET Placeholder inside a .NET UpdatePanel. When i click one of the aforementioned LinkButton, a user control is loaded in the PlaceHolder; All LinkButton are set as AssyncPostBackTriggers of the UpdatePanel; It's all good so far...everything works out f...

Wordpress username availability with AJAX using Form-Validation-Engine

Well, my previous question brought me to use this script: http://www.position-absolute.com/articles/jquery-form-validator-because-form-validation-is-a-mess/ Because of my total lack of knowledge I don't understand how can I fit the "Inline AJAX validation" with the "ajax[ajaxUser]" class to work checking username availability when set...

can i remove the X-Requested-With header from ajax requests?

I wanted to know if anyone has had experience with trying to remove the 'X-Requested-With' header from the ajax request made by jquery (or plain JS). is it possible? 2nd part: do you know if Grease Monkey's ajax requests set this header? Thanks header looks like this: X-Requested-With XMLHttpRequest ...

Collecting values from the part-AJAX form with PHP

I currently have a form with a dropdown box, and when the value in the dropdown changes, a PHP file with some more form elements get loaded via jQuery's $.ajax function into the main form. However when I submit the form (using just the non-AJAX way) the values from the 'ajaxed' area of the form are not included in the $_POST values. Do y...

flot graphing with mysql and ajax

Hi guys, i've finally zoomed down on how to dynamically plot graphs using flot. its been a journey. currently i've got function draw() on setInterval for every 5 seconds. My Mysql table is constantly updating, and my phpfile (response.php) echos the last value. The php looks like this: //Get the last row $result = mysql_query("SELECT * ...

How to assign the model to an partial view loaded via jQuery

Hi, normally i load a partial view by doing <% Html.RenderPartial("MyPartialView", Model); %> But how can i assign the Model to the corresponding action, when i instead use jQuery to load this partial view? $.ajax({ url: "/MyUrl/", data: 'html', success: function (data) { $('#MyPartialView').html(...

Looking for a great Ajax enabled datagrid that will work with .net MVC

I am researching writing a website in Asp.Net MVC 2, it will rely heavily on a datagrid control for showing data and editing data. Ideally it would support AJAX so the page doesn't have to reload with every update. Rather than writing this from scratch, does anybody know of a really great, well supported 3rd party control for doing this...

JQuery Ajax call, return value problem

This is broken, reposting as an answer ...

pass a whole html table back to server and replace the database table?

Hi all: I met a problem like this. Here is the scenario: if I have a database table A, which contains several columns, for example. Once the sever (php script) pass the database to web client, it's rendered into a HTML table. Now, here is some requirements for the client side. The user will be able to add/delete several rows from the ...

Lost with .net and jQuery

I'm convinced this has been asked before and have found quite a few resources on this topic but I'm still very confused and not sure how to proceed. I have a textarea whose data I need to send to a server and I need to capture the result which is a string. Here is my attempt: $(document).ready(function () { $('#output-box').hide(...

Comparing AJAX Treeview & GridControls from different vendors. Whose is better?

I've been working exclusively with ComponentArt controls and want to know what else is out there. What Grid and Treeview controls are worth investigating? It doesn't matter if I need to pay for them... quality, speed, and reliability are key. I've seen a few issues with the CA Grid Control has issues with setting the column width dy...