Hi,
I've been thinking about how I can create a poll that allows users to submit new entries and vote up existing entries. The poll would then update periodically, adding any new entries (that other users may be adding), updating votes for each entry and then resorting all entries by decreasing votes - all through ajax.
Some areas I'm ...
I am calling some data which has pre-formatted HTML code in it, but when it renders from the jquery it appears to ignore my markup. This is my jQuery:
function GetFeed(){
document.getElementById("marq").innerHTML = '';
$.ajax({
type: "POST",
url: "xmlproxy.ashx",
dataType: "html",
success: function(obj) { ...
If you go to this page on our website:
http://www.divethegap.com/scuba-diving-programmes-dive-the-gap/dahab-divemaster-training.html
The buttons at the bottom that say 'Beginner' 'Open Water Diver' etc....
They take you to another page where you have a series of options and can book.
We would like it so that rather than have to navigat...
I'm having trouble understanding why my code will not work asynchronously.
When running asynchronously the get_price.php always receives the same $_GET value even though the alert before outputs a unique $_GET value.
var arraySize = "<? echo count($_SESSION['items']); ?>"; //get items count
var pos = 0;
var pid;
var qty;
getPriceAjax...
1) A while ago I’ve started learning Asp.Net, but then I’ve heard that Ajax is “the new thing”. Since I don’t want to throw away the time I’ve invested into Asp.Net, I’d like to know if it is a common/recommended practice to use both technologies ( Asp.Net and Ajax) when creating websites and web apps in general?
2) If it indeed is a c...
I have a form being AJAX'd in by jQuery on a page with multiple forms. I'm performing the following function, which is a wrapper for the $.ajax function:
function do_json_get(uri){
var ret = '';
var url = AJAX_URL + uri;
$.ajax({
type: 'GET',
url: url,
async: false,
success: function(data) {...
Preface: I am sure this is incredibly simple, but I have searched this site & the jQuery site and can't figure out the right search term to get an answer - please excuse my ignorance!
I am adding additional form fields using jQuery's ajax function and need to then apply additional ajax functions to those fields but can't seem to get jQ...
The most common method is to assign a sequential order field for each item in the list and do an update that maintains the sequence with every ajax sort operation. Unfortunately, this requires an update to each item of the list every time someone sorts. This is fine for small lists, but what's the best way to implement sorting for larger...
I'm trying to get cross-domain Ajax to work. I downloaded a PHP proxy script from the Yahoo Developer site, ran it from command line and verified that it receives the XML from the server with a GET request.
Now, I'm trying to connect to the PHP script within JS with no results. I have the following:
<script type="text/javascript" src=...
Suppose I have a simple daemon type script that I run on my webserver.
I run it in a terminal, with gnu screen, so I can keep an eye on it.
That works fine (incidentally, I use this trick).
But now suppose I'd like to make a web page where I can keep an eye on my script's output.
What's the easiest way to do that?
Notes:
This is main...
I want to use jQuery's ajax functionality in a DotNetNuke module I'm developing.
I want the ajax call to be authenticated via DNN's membership functionality.
I want the ajax response as json.
How can I do this?
I've looked at IWeb and IWebCF -- it's not clear to me from much Googleing and scanning the forums whether these modules wou...
I'm trying to reverse engineer how facebook handles their notifications, where when you get a message you get instantly notified via the browser.
I've fiddled with it for a little bit and realized that there is always a pending GET request "listening" if you will to some sort of update from the server. This appears to be some sort of...
From what I understand, it's a best practice to reuse XmlHttpRequest objects whenever possible. Unfortunately, I'm having a hard time understanding why. It seems that by trying to reuse XHR objects you increase your code complexity and you introduce possible browser incompatibilities. So why do so many people recommend it?
After some...
I'm using Master Page in my ASP.net application, in the master page I put a ContentPlaceHolder in Update Panel to support AJAX in child pages, the question is how to stop Refreshing "master page controls" while navigating between pages?
For navigation between pages I tried to use Response.Redirect, windows.location java script with no s...
im using ajax call on a comment form for a greek site. The encoding works fine for Firefox but not in IE.
$(document).ready(function() {
$.ajaxSetup({ scriptCharset: "utf-8" , contentType: "application/json; charset=utf-8"});
$('#submitAjax').click(function() {
var name = $("#name").val();
var email = $("#email").val();
var comm...
Can you give a very simple example of reading a jsonp request with jquery? I just can't get it to work.
...
Hi, I have a form which on submit I want to run a script via Ajax, but for some reason it is returning an error. Any idea what is wrong? My code is as following:
$('.spiderform').submit(function (event) {
event.preventDefault();
alert($(this).serialize());
$.ajax({
type: 'get',
url: 'http:...
Hi, I have the code below, which sends the value of the textarea and either gets a fail or Successful response, for now I just check if it says "hello".
function postdata()
{
$.ajax({
type: "POST",
dataType: "text",
url: "makepost.php",
data: "post_text=" + $("#post_text").val(),
cache: false,
success: funct...
(dismay response to previous question)
I'm building a website in php and I have tables presented that i need to allow the user to:
1. add new entry (only one at a time, which should appear as a new modal overlay)
2. delete multiple selected entries from
3. edit an existing entry (only one at one time, in a view similar to 1.)
4. re-arra...
Thinks at a backgammon online multiplayer game with over 100, or even 1000 online users. The game communication is done using Ajax + 3 seconds Comet connection interval + ASP.NET technology. Is this a real scenario ?
Didn't so many Comet open connections block the server resulting in big latency ?
...