Hello,
My php file located at port 80 (default port) while my ajax call are on port 8080.
My index.html on port 8080
$(document).ready(function(){
$.get("userCheck.php",
{"username" : "lazy", "favcolor" : "FFFFFF" },
function(data){ alert("Data Loaded: " + data);
});
My PHP
$user = $_GET["username"];
if($...
I've a simple UpdatePanel and a button outside of it. I've introduced the button as an AsyncPostBackTrigger in the UpdatePanel. UpdatePanel itself works fine but the button does not. Whenever the button is clicked, its click handler does not run just like the button is not clicked at all!
Why the button is not working and how can it be ...
Hi all,
I have a JSF 1.2 application (Sun RI, Facelets, Richfaces) that was used only on IE6 browsers. Now, we must also support Firefox (yeah !).
In one of my pages, I have a form that contains a button that will re-render the whole form. After the re-rendering, some links (<h:commandLink/>) are added in this form.
The JSF code looks...
I want to reload a part of a form generated with the form_for-helper via AJAX.
After reloading the part I still want to have access to the form object.
How can I do this?
Best regards
...
Good morning all - new to Jquery $.get and $.ajax and your help is appreciated.
I have created a PHP script functionexchangeRate($exchangeFrom, $exchangeTo) that uses uses two parameters.
I am trying to call this PHP script with Jquery's $.get function but I can not figure out how to send the two parameters (I feel like a turkey - pu...
How to use Ajax and Jquery to send all the values of input elements within a form to the server? The input elements are dynamically generated so a list of input names in an Ajax post is troublesome. So is there an elegant way to do it?
...
Hello,
I can manage to get values from mysql using select box in php, but i can't make it with two-level chained select box.
Anyone have some example code or idea for that?
Thanks.
...
Hi!,
I wonder if any of you guys knows how to show an ajax loading image on a jQuery $.ajax call, only if that call is taking more that a specific time. Thanks for any help!
cheers
...
Hi
Firstly I tried fiding some similar posts but could not quite find anything. Mainly because I see this problem in FF and not IE only.
I had a web page that was updating a mysql db no problem with some data. Then today, I switched the way it does this so that I can use an ID instead of a value, so for sizes, instead of small, medium ...
Hi.
Given this, which preloads an image:
$('<img />')
.attr('src', 'source')
.load(function(){
$('.profile').append( $(this) );
// Your other custom code
});
do you know how to do the same but for several images?
I tried something like :
var img1 = new Image();
var img2 = new Image();
$(img1).attr('src', ...
I'm building a web application with the Zend Framework. I have wanted to include some AJAX type forms and modal boxes, but I also want my application to be as accessible as possible. I want my application to be enhanced by AJAX, but also fully functional without AJAX.
So as a general guideline...when should I not use AJAX? I mean, shoul...
I have a clickable div loading the next 5 comments from my database, sort of how Twitter loads new tweets into your timeline. I have a few other POST functions in my code and they can be fired off multiple times, but this one won't.
Here's the code - the comments are returned from a URL (the site is codeigniter), inserted into a hidden...
I'm implementing Comet using the script tag long polling technique, based on this page. Following on from my previous question, I've got it all working, except for one annoyance, which only happens in Firefox.
On the initial page load my Comet client JavaScript sends two requests to the Comet server (in the form of dynamically generated...
I have a div tag which is filled with script via an ajax call, but the script does not execute.
Is there a way to cause the script to execute?
...
i have created project referring to http://weblogs.asp.net/johnkatsiotis/archive/2008/07/23/asp-net-ajax-4-0-template-example.aspx
this example .
now i want to separate the" some data....." template to another page. with the "" remains in the same aspx page.
PROBLEM : in .js file
var t = new Sys.Preview.UI.Template.getTemplate($get("my...
Which MVC version should I download to use the Ajax functionality in my MVC application? Is it possible with MVC 1.0?
I also want to use Modal Popups in my application.
Thanks
Ritz
...
Hi,
i am pretty sure, that i've seen such a feature on a website somewhere in the web.
i want to give the user a form, where he can input some data and attach the current clipboard content (very likely a screenshot) to the form and then submit it as an image file.
after all, i don't want the user to go through all the hassle: take a ...
I am using ExtJS to send an Ajax request to a PHP page on a server, wanting to send the parameters as POST variables rather than in the querystring.
I have included a random token in the querystring since we were having caching issues on one of our proxy servers.
Ext.Ajax.request({
url: 'ajax.php?action=test&randToken=' + generateRando...
Using AntiForgeryToken requires each request to pass a valid token, so malicious web pages with simple script posting data to my web application won't succeed.
But what if a malicious script will first make some simple GET request (by Ajax) in order to download the page containing the antiforgery token in a hidden input field, extracts...
Hi all
I'm running an AJAX request from a JavaScript-powered (+jQuery) webpage every 5 seconds for a set of JSON data. I left my application on overnight, and by morning my computer had completely frozen. I narrowed it down to my web browser and now, using Google Chrome's Resource Tracker, I can see that each request contributes a new m...