Im using Ajax to send values to a PHP script which writes some value to a database:
$.ajax({
type: "POST",
data: "action=vote_down&id="+$(this).attr("id"),
url: "vote.php",
success: function(msg) {
$("span#votes_count"+the_id).fadeOut();
$("span#votes_count"+the_id).html(msg);
$("span#votes_count"...
I'm looking for a Ajax rating script similar to the one on metacritic, ign, gamespot, etc.
(example)
I've found only star rating systems and one slider that is not similar to the one that I'm looking for. (jquery ui slider)
Anyone knows something like that I'm looking for? Otherwise I'm willing to pay someone for this work.
...
I'm trying to call to external PHP script using Ajax like this:
$(function() {
$.ajax({'url': 'http://stokes.chop.edu/web/zscore/result.php',
'type': 'POST',
'success': function(response, textStatus, XMLHttpRequest) {
alert('[' + response + ']');
},
'error': function(XM...
hi fellows,
i just bought a joomla template from template monster.
there is photo gallery on home page which skips to photos by clicking onto them.
what i need is a self sliding photo gallery you know what i mean automatically skipping photos in preset interval.
http://www.mirelmuhendislik.com/home-tr/index.php
this is the homepage.
i ...
hello all,
My X-site scripting using JSONP encounters error on IE8 but works fine on both firefox and crome...
here the returned JSON object passes an array with a comma at the end and no last element ...i.e something like {a,b,c, } ..as you can see the last element is succeeded by a comma and that is what is causing problem on IE.
the ...
Can anyone help with this issue i have with the auto complete extender for asp.net 3.5.
Basically when i type the text into the texbox, the autocomplete extender does not appear underneath the textbox. It appears sometimes on top or underneath the textbox.
Is there a way i can fix the position of the autoextender popup?
Thanks
...
I am using AJAX/JSON combination in Zend Framework. Whenever I click any link in my application, AJAX request is called and content is loaded successfully in DIVs But the address bar is unchanged. How to change address bar according to current active action.
Here is My Working Code:
When I use http://practice.dev/ my index.phtml file...
Possible Duplicate:
Detecting idle time in JavaScript elegantly.
I have a table with some rows that I want to refresh for example every 10 minutes. Is there a way I can do this, but only if the user isn't currently active on that page?
Is there for example anything like an inactivity timer or something in JavaScript?
...
I got this script from here
$(document).ready(function() {
$('#choose').change(function(event) {
$.post('select-ajax.php', {
selected: $('#choose').val()
},
function(data) {
$('#update').html(data);
}
);
});
});
<form id='form'>
<div id="update"></div...
Hello,
I've one problem with editing a row... I wanted to use a button to enter edit mode in the table (generated from php array (data taken from mysql))
I have two rows for each data:
<tr class="dataline">
<td><?=$row->id; ?></td>
<td><?=$row->pl>0 ? '<div id="gain">' . $row->...
Hello All,
I need some suggestions here or maybe some explanations. I have a jquery ajax call,
$.ajax({
type: "GET",
url: base_url+'/ajax/fetch/counts/',
dataType: 'json',
data: {},
error: function(xhr, error){
console.debug(xhr); console.debug(error);
},
success: display_counts
});
It's working fine. My success callba...
Dear all
I want to create a WCF service that will simply reply back the query string, HTTP headers, and the HTTP verb used in a request it received.
I want to use it to unittest a AJAX enabled JavaScript framework I am building so I can verify that the HTTP headers and HTTP verbs are being set correctly.
Basically I need a way to make...
I have the following call in my JavaScript:
new Ajax.Request('/orders/check_first_last/A15Z2W2',
{asynchronous:true, evalScripts:true,
parameters:{first:$('input_initial').value,
last:$('input_final').value,
order_quantity:$('input_quantity').value}});
What do I need to do to get Spring MVC (3.0) to handle this?
...
I have a PUT request (same-domain) done with XHR and it does not get through (on Firebug, the icon loads and i get no data, no response).
PUT http://hyveup.net/xvrelation/dev/api/ui/?section=texts&action=add
Host hyveup.net
User-Agent Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.8) Gecko/20100723 Linux Mint/9 (Isadora) Fire...
The following JavaScript
new Ajax.Request('/orders/check_first_last/A15Z2W2',
{asynchronous:true, evalScripts:true,
parameters:{first:$('input_initial').value,
last:$('input_final').value,
order_quantity:$('input_quantity').value}});
triggers an Ajax call to the checkFirstLast method in the OrderController:
@Controller
@RequestMa...
A user click a button that makes a request and then click again and again and again...
I wanted to use xhr.abort(), but I don't know if I can retrieve it from $.load.
Is it possible?
...
So I have an area on my page that I would like to update every 10 minutes.
Right now, I'm using this code:
var refresh = setInterval(refreshArea, 600000);
But this updates on the client side, so if 100 different users are looking at the page, the content will update at 100 different times.
I'd like for the content to update every 10...
In the following code all of the tabs initially display their proper text (Home,Reports,Setup,Documentation,Support). When any of the ajax tabs are clicked (Home, Documentation, Support) the text on the tab changes to "Loading...". However, the 2 non ajax tabs (Reports and Setup) keep their text. How do I keep it from going to "Load...
Is there a more elegant way of passing a variable after performing an Ajax request (JS->PHP) other than printing the results?
Printing can get a little messy and also doesn't offer a lot of flexibility in terms of the return value (e.g. hard to pass objects).
Also, I had this random space that was printed in one of my Ajax request cal...
i get the data from DB and display it in a div... what i want to do is when i click a link it should change the content of the div
one option is to pass parameter through URL to itself and reload the page...
I need to do it without reloading\refreshing...
<?php
$id = '1';
function recp( $rId )
{
$id = $rId;
}
?>
<a href="#"...