Hi
I have the following function, which works in Firefox but not IE7:
function flagDocRead(currentdocid, currentuserid){
alert(currentdocid);
alert(currentuserid);
$.get("./blocks/rc_importantdocs/flagdocread.php",{ docid: currentdocid, userid: currentuserid });
}
currentdocid and currentuserid are both integers.
IE7 ...
I have a search page that loads results. Each row has a 'Delete' button next to it which I want to fire a particular Javascript function on my page using some parameters specific to that row.
Is it best to put the function call directly into the HTML being generated, e.g. onclick="deleteFunc(<params from results array>);" or should I i...
Hi, i have an input element with & in value:
<input type="checkbox" value="Biografie, životopisy, osudy, Domácí rock&pop" />
When i try sending it through an ajax request:
$.ajax({
type: "POST",
url: "/admin/kategorie/add/link.json",
data: "id="+id+"&value="+value+"&type="+type,
error: function(){alert('Chyba! Rel...
I use the following jQuery (1.4) code to test whether cookies are accepted:
$.get("http://localhost:8080/cookietester/cookietester", function(data) {
if (data == "false")
document.write("Activate cookies!");
else if(data == "true")
document.write("ok");
});
But the browser signals that it doesn't stop page load...
In sharepoint site i've webpart with ajax calender extender .Today in calender localized but not months and days .
In script Manager i enabled
EnableScriptGlobalization="true" EnableScriptLocalization="true"
Added resource .dll in to bin of site.
Please help
...
I set the global ajaxSend callback as below in my $(document).ready function.
// global AJAX methods
$(document).ajaxSend(function(e, xhr, settings) {
alert('here');
});
However, I am never getting here even though I have several $.ajax() calls that run successfully after the document has loaded and on demand. Yet, here appear...
All,
I have a PHP5 application written with Zend Framework and MVC. On my home page, I want to incorporate the functionality to download a dynamically generated pdf file. The way this is done is:
User clicks "download file" link.
On Click, an AJAX call occurs to a PHP controller, which takes the form data, generates the pdf and return...
Hi, I have a problem on my page with code executing multiple times in IE and Opera, though it works in FF, Chrome and Safari. I am using the latest jQuery, the validation plugin and the form plugin. My code originates from the following html:
<form action="/case_study/php/survey_submit.php" id="mt_survey" method="post">
...
... ...
I currently have an ASP.NET, C# page that accepts some text and (currently) one file with the MS AJAXToolKit AsyncFileUpload. However, I want users to be able to upload multiple files - they could upload 1 files or up to 10 files. What's the best way to handle this? Ideally, I'd like them to upload one file at a time, and once that file ...
I am trying to parse a response data as html format. The data contains multiple tables (not nested tables). I load the html with ajax and trying to loop through the data with jquery.
The problem is No result when I start with 'table' for looping (I have multiple tables and have no ID for the table.) When I use 'tr' It works well in firef...
Hi folks,
if a GET request is made as follows
$(window).bind('beforeunload', function() {
// GET request
});
and the page is abandoned before the GET request is completed,
will the destination server still process the request? Or will it somehow vanish?
I would like to send a server data on "beforeunload" firing, but without ...
In a project I'm working on, I have an object that is a sort of Collection with a database back end. The exact results this Collection returns are dependent upon its configuration, which is itself dependent on a number of user inputs. I would like to have an element on the page that contains the records in the Collection and can be upd...
I'm having a peculiar problem with making simultaneous AJAX requests that modify a PHP object stored in the session. I'm having problems with race conditions but I don't understand why they're happening... only one AJAX call can have the session open at a time, so if they keep the session open while making modifications, shouldn't each c...
Hello,
I'm having an annoying issue, on complete i get undefined when trying to make simple url validation. success working fine.
i get a valid json response:
{"error":"some error"}
and this is my jQuery
$("#myform").submit(function(){
dataString = $("#myform").serialize();
$.ajax({
type: ...
When an ASPX page needs to make a call to a potentially long-running operation (lengthy DB query, call to a remote webservice, etc.), I use RegisterAsyncTask, so the IIS worker thread is returned to the pool, rather than being tied up for the duration of the long-running operation.
However ASMX webservices don't have a RegisterAsyncTask...
I'm pulling my hair out over this. I have this bit of javascript that asynchronously fetches data for an events calendar. Basically when you click on a day of the month a little UI pops up and a text area gets populated with the data that gets retrieved. On this UI are two submit buttons: one to save changes, and one to delete the event ...
This is a newbie question to AJAX experts: In case an unauthenticated user tries to post a comment to an article and send it to the server through AJAX, I need the remote PHP script to return...
a 401 and a logon/password form which the user will fill and try again, or
a 301 to redirect the user to a full-page logon/password form which...
I am using the below code to search a mysql database but cannot get the form to submit when the return key is pressed.
Does anybody have any ideas?
function ajaxFunction(){
var ajaxRequest;
{
// Opera 8.0+, Firefox, Safari
ajaxRequest = new XMLHttpRequest();
} catch (e){
// Internet Explorer Browsers
try{
ajaxRequest = new...
Google hasn't yielded satisfactory results. I'd appreciate it if people can provide some suggestions. Thanks.
...
Hey all,
I was wondering if there's a some algorithm or resource that will look at the changes made from an AJAX request and not update the whole box (causing a flicker) but just add/remove the changes made.
This is specifically used with the keypress command.
A good example is stack overflows "preview" it doesn't flicker when you ad...