Hello,
I have a problem posting file via ajax jQuery function. I have something like this:
$('#my_form').submit(function() {
var serialized = $(this).formSerialize();
var sUrl = "xxx";
$.ajax({
url: sUrl,
type: "POST",
data: serialized,
success: function(data) {
...
I am using jQuery. My main page is index.php. on load of this page. How do i load another page internally. say a small block in the page ?
...
Hey guys,
I'm going to try and describe the code in my view, without actually posting all the garbage:
It has a standard shell (header, footer etc. in the layout) this is also where the sub navigation exists which is based on a loop (to find the amount of options) - on this page, we have 6 subnav links.
Then in the index view, we have...
I'm developing a PHP application to retrieve the list of contacts from a GMail account. I'm looking for a solution which would enable the user of my application to provide the login and password to their Gmail account in my application (as opposed to getting redirected to Google) and then automatically do the retrieval. The retrieval pro...
hi im tryin to use the return from a jquery ajax call in my own function, but it keeps returning undefined.
function checkUser2(asdf) {
$.ajax({
type: "POST",
async: false,
url: "check_user.php",
data: { name: asdf },
success: function(data){
return data;
//alert(d...
Hi,
I am trying to find a client-side way to determine if a page on a remote domain has changed.
I can't load the page in an iframe and examine its contents due to same origin policy.
So I tried using .getResponseHeader("Content-Length") and .getResponseHeader("Last-Modified") but apparently these are also restricted by SOP even tho...
I was about to redo a Rails site today using AJAX so that the background could remain in place. Then I thought, "that would be exactly like using frames," and then I thought about SEO consequences and I dropped the idea entirely and took a look around the Web. It turns out that few sites -- except for Google itself, which has the link ba...
Hi All,
I've been trying things for the last 3 days to figure this out, and just can't seem to get it! I am loading an XML response from a third party, which I can receive and strip to just text to display on a div.
But, when I try to transform it with an xslt into the div, it doesn't work! Nothing shows up in the div. I just want it t...
function addRequest(req) {
try {
request = new XMLHttpRequest();
} catch (e) {
try{
request = new ActiveXObject("Msxml2.XMLHTTP");
}catch(e){
try {
request = new ActiveXObject("Microsoft.XMLHttp");
} catch (e) {
alert("XMLHttpRequest error: " + e);
}
}
}
requ...
Hi,
I have a problem regarding checking the page validation in javascript.
I have a user controls in my aspx page,for example control1, control2, and control3.
For each control I created a validation group, then I tried to use the code below, the problem is, it will always return a false value eventhough the page validation has been sa...
When $.post succeeds, there is a success handler for it. What happens if it fails? Is there a similar handler that we can use for this case, so that we can inform the user that something is not happening right?
...
I'm learning Ajax at the moment. The code below basically receives the echo from the PHP and then puts it in element id games.
My question is, if I wanted to have Ajax send 3 different HTTP requests to 3 different PHP scripts and if I wanted to retrieve data from each one and then put it in 3 different element id's then would I make 3 ...
Hi Guys,
I have a label inside an update panel which I wouldl ike to use as a status bar.
Basically the user clicks a button which executes a main fucntion that performs a series of tasks. I'd like to inform the user as to the state of the function as it progresses e.g.:
Stage 1: Retrieving data...
Stage 2: Calculating values...
Sta...
I want to use Wicket to build an application, but I have some designers that would like to write/maintain the javascript, and they basically expect 1 JS-segment per page, and a global JS-file.
I think the most natural way to add javascript in wicket is to add it per component (not per page), which would create problems for those designer...
xmlhttp.onreadystatechange=function() {
So this says onreadystatechange, invoke function(). Can I put parameters in function()? Second question, what does it mean when someone writes, xmlhttp.onreadystatechange=statechanged? Does that mean it will always be true or something?
...
function stateChanged(idname) {
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4 && xmlhttp.status==200) {
document.getElementById(idname).value = xmlhttp.responseText;
}
}
}
function openSend(php,idname) {
stateChanged(idname);
xmlhttp.open("GET",php,true);
xmlhttp.send()...
I'm developing an application in ASP.net and coding in VB.NET.
On a page when a User select some items from a multiple select list box and click finish,the mulitple select list box need to be reloaded through AJAX and Items previously selected must not be displayed after reload.
Also, the inverse of this.
Page shows individually, the ite...
I mean, for example an user types an address like this
http://www.mydomain.com/#hi_guys
Where may I handle this kind of hashes in Google Analytics?
Thank you.
...
I need to pass the grid rows from the view to the controller using POST. The idea is to pass an IList of objects (people) that have the following structure:
String Name
String Address
String ID
I want to read the data from the JQGrid and pass it to the controller to fill the IList.
I'm trying to build the data object to pass through...
I need to loop through a returned array in javascript but it doesn't work, it will loop through each letter of the word array instead of looping throught the value.
this is the javascript code
$.ajax({
url: "<?php echo site_url('home/getsubcats'); ?>",
type: 'POST',
data: form_data,
success: function(msg...