I have started with the project where I am suppose to use client side scripting @ extreme.
this is the scenario :
There are two drop-down lists in my form on my web-page ..one is COUNTRY and other is STATE.
The drop-down list STATE must be disabled untill One of the values in Country is selected and According to the value selected in dr...
I cannot find how can I attach an timeout option to the Ajax prototype call or what is the default value for it.
...
My view url is /Customer/Detail/1
I'd like to update a div element in this view, but I cannot reach the action method.I'm using jQyery like this:
$.ajax({
type: "POST",
url: "List",
data: formData,
success: function(newHtml) {
setTimeout(function() {
$...
I wanted to know how to scrape web pages that use AJAX to fetch content on the web page being rendered. Typically a HTTP GET for such pages will just fetch the HTML page with the JavaScript code embedded in it. But I want to know if it is possible to programmatically (preferably Java) query for such pages and simulate a web browser kind ...
I would like to add buttons dynamically from a backing bean to a JSF page (supporting Rich Faces as well).
The value of the buttons needs to be determined in run time and returned to the backing bean when the button is pressed. (Hence the title - I am actually trying to be able to do something like "#{beans.run(3)}", i.e - set a fixed p...
In answers to other questions it was pointed out that SourceForge's download page worked by adding a hidden <iframe>. This does no longer seem to be the case...
How is the current version of the download page implemented? I'd like to build something similar because I consider SF's solution quite elegant.
Ok, more precisely...True, the ...
Hi everyone,
I've developed a rails website in which I've got a text box with autocompletion facilities (When the user starts typing, a list of valid values "drops down" under it). For this, I used Rail's autocomplete.
Now I'm developing a mobile version of this site. Since the target browsing phone will be the iphone, I'm using jqtouc...
I am trying to modify a portlet to load data for a table over AJAX because the WS calls take a ridiculous amount of time to complete. The table is basically an overview with one entry per table row and a link in each row to more detailed information on the entry.
Here is how I am currently creating the URLs for each row in the table:
...
Is there any way I can determine the currently focused control on a web page? I wish to save the focused control before my ajax callback and restore it afterwards.
Can this be easily determined?
Thanks,
AJ
...
This is the jQuery, both the game_id and the $(this).val() are integers
/* AJAX call: save to DB input name=#game_id# value=#game_rating */
$.post("game_rating_submit.cfm", {
id: game_id,
rating: $(this).val()
},
function(data) {
alert('data: ' + data);
});
This is the coldfusion part tha...
I have a search that operates by AJAX. It works perfectly well when the user presses the search button, the problem is... if the user presses enter... it submit the form rather than executing the AJAX javascript function. How can I make the Enter button call my AJAX function as opposed to submitting the form?
...
Let's say you were building a multi-step ( 5 part ) booking engine that had a fully working backend but had a layer of ajax, where you can go through all 5 steps in the initially loaded page. The steps would be:
input dates and specify availability information
availability results where you can choose rooms
input your information inclu...
function myobj(){
var gup=this;
this.lastindex=-1;
this.criticalSectionInTimer=0;
this.updateTimer;
this.start = function(l){
if((typeof this.updateTimer)=="number"){
clearInterval ( this.updateTimer );
}
this.updateTimer=setInterval(function() {gup.getMessages();} , 30);
}
this.stop= functio...
In a browser-deployed Flex app, is it possible to create several freely floating and independently draggable panes, each of which contains Flex GUI elements, and each of which can communicate with each other as well as with the DOM via the Flex-Ajax Bridge?
...
I'm not trying to load javascript with jquery or anything of that sort.
Currently I'm modifying swfupload (if you'r familiar with it, great, otherwise it shouldn't matter) to work with a website I'm building. I need the ability to upload, store and delete files. I have the uploading and storing working great.
I have a file called hand...
I have an old site that uses xml documents, and when I created it i had firefox and IE7 to test on, and it worked just great. Since then, IE8 appeared, and it seams that the site does no longer work properly.
This is the current code:
if (window.XMLHttpRequest)
{
XMLHttpRequestObject = new XMLHttpRequest();
XMLHttp...
I have a javascript object that looks somthing like this:
var obj = {
"name": "username",
"userid": "9999",
"object1": {
"subObject1": {
"subArray1": [],
"subArray2": []
},
"subObject2": {
"subArray3": [],
"subArray4": []
}
},
"object2"...
I am trying to add a TextBoxWatermarkExtender control into my ASP.NET 3.5 web application. I followed the tutorial Microsoft supplies here http://www.asp.net/learn/Ajax-Control-Toolkit/tutorial-47-cs.aspx and then I added in the control I wanted. My code looks like this:
<asp:TextBox ID="txtEmailAddress" runat="server" Width="130px"><...
I would like to refresh the #calendar div with the new content sent to calendar.php
I'm getting a success alert, but the content isn't refreshing. How do I get the new calendar.php to show up with the POSTed data?
$(document).ready(function(){
$('#next').click(function() {
$.ajax({
type: "POST",
url: "calendar.php",
...
If I have a form that updates via AJAX, there is a chance that the original value field (as it was output to the browser) will not match the text that the form field now has inside.
I know from a blind user that I help on occasion that Jaws 9 and later has strong support for rich internet applications (specifically AJAX and DOM changes)...