A feature in Reddit that I like is the ajax login - you enter your username and password on the front page and you never leave the front page even if there is a login error. If your login succeeds, I think it simply does something like a flash[:message] onto the front page to say "login successful". If I wanted to do this in Rails, would...
Hi there,
I've a particularly long operation that is going to get run when a
user presses a button on an interface and I'm wondering what would be the best
way to indicate this back to the client.
The operation is populating a fact table for a number of years worth of data
which will take roughly 20 minutes so I'm not intending the int...
<p class="acp3">
<label>Status</label>
<select>
<% if <option>Active</option> %>
<%= account["status"] == "Active" %>
<% elsif <option>Disabled</option> %>
<%= account["status"] == "Disabled" %>
<% end %>
</select>
</p>
I am creating a selector with the html and I want to be able to have it access that variable...
Hi.
I am trying to get ASP.NET (Framework 3.5), AJAX, and JSON to work. I have two questions along those lines. This first is, when I add the below tag as required by ASP.NET:
[AspNetCompatibilityRequirements(RequirementsMode =
AspNetCompatibilityRequirementsMode.Allowed)]
I find that I cannot add it above an interface declar...
Below is my full code, its basic, you select a country and it shows, or hides the correct form underneath, problem is it gives an error
"getState" is not define
Now I am a total noob at this but how do you debug these kind of errors?
<form method="post" name="form1">
<select style="background-color: #ffffa0" name="country" onchan...
An example:
Say, I have an AJAX chat on a page where people can talk to each other.
How is it possible to display (send) the message sent by person A to persons B, C and D while they have the chat opened?
I understand that technically it works a bit different: the chat(ajax) is reading from DB (or other source), say every second, to fi...
How can I make comments like on stackoverflow?
What I mean more specificly, I use php/mysql how would I add a comment without reloading the page, I know this is a simple process of using AJAX but when you post a comment on SO it also has the option to delete it right away, when I insert comments into my DB there ID number is auto increm...
I have a long running server side process (gets data via a web service in batches as part of a do/while loop). On each pass through the loop I want to push a status message back to a label control in an update panel on the client.
I've tried assigning the value to the label in code behind and then using a timer control to refresh the u...
I have a database of links that users can submit. Every time a user submits a new link it is added to the database. I have a separate page that lists all the submitted links. How can I have this separate page check the database for changes and load them with AJAX when it finds them?
...
Hi,
New to the jquery ajax methods and I am just wondering how to capture the elements passed in the jquery.ajax() call using POST on a C# (ASP.Net) page.
Here is my jquery ajax call:
$.ajax({
type: "POST",
url: 'UpdateQuickLinks.aspx',
data: {"userid": contactid, "update": addString, "remove": remo...
I have some ajax calls on the document of a site that display or hide a progress bar depending on the ajax status
$(document).ajaxStart(function(){
$('#ajaxProgress').show();
});
$(document).ajaxStop(function(){
$('#ajaxProgress').hide();
});
I would like to basically overwirte these methods on other parts o...
Right now I'm loading nodes with jquery's $.ajax. By that I mean I simply enter in the node url and then load the whole page.
That's probably ridiculous and totally incorrect way to do it. How do I fetch a specific field in a node without loading the kitchen sink?
Thanks
I also see this module:
http://drupal.org/project/js
Am I to u...
Hello! I'm currently diving into web development after ten years of desktop development and I'm trying to get a high level grasp on the many concepts I'm learning. The two most recent concepts I've been reading up on are MVC (specifically ASP.NET MVC) and AJAX. I understand MVC is a pattern used to separate logic and data and AJAX is ...
I am writing an on line chat room based on AJAX/COMET. My design is:
Request
----------------- wait -------------------------> send dump data
----------------- wait -------------------------> send dump data
----------------- wait -------------------------> send dump data
----------------- wait -------------------------> send dump d...
Hello folks.. How to count values of two drop down using ajax or php
Example Form
Base Price : $10 Color [drop-down] Size [drop-down]
Base Price : $10
<select name="color">
<option>Blue</option>
<option>White</option>
</select>
<select name="size">
<option>8</option>
<option>10</option>
</select>
Calculation
...
Hi,
i got code like this:
swfobject.embedSWF("/Content/open-flash-chart.swf",
"my_chart",
"750",
"300",
"9.0.0",
"expressInstall.swf",
{"data-file":"http://localhost:8803/StatisticService/GetOpenFlashChartStatistic_Json?param1=123&par...
Hi,
Is it possible to have a nested ajax form in cakephp and firefox ?
i.e.
$ajax->form(form1...)
table
row
$ajax->form(childForm_rowId)
$form->end(childForm_rowId)
endrow
end table
$form->end
I found this works in IE7, but not in Firefox 3.5.1
Firefox will omit the childForm declaration, so the child ...
UPDATE:
Most of the answers given have just been some way of injecting the returned document into the html of the page, but this does not seem to be working. It might help if you could see what the aspx code is doing after all:
Try
RenderDocument = Session("docSelected")
If Not String.IsNullOrEmpty(Request.QueryString("download")...
I'm having problems with IE6 and javascript applied to ajax content.
I'm not able to use any sort of javascript (plain or with jQuery) on the content that is retrieved with ajax.
I have my main html page that loads the Header content with ajax (for this task I'm using the jQuery .load() method)
Something like
<html>
<body>
<div id="head...
I have a page with an update panel and a timer. The page updates every 5 minutes based on the timer. I also have some javascript that forces a __doPostBack on the update panel if another page (launched from the original) is closed. The problem I think I'm having is sometimes the forced post back seems to interrupt the postback triggered ...