I am currently working on a ASP.NET AJAX application. Having decided to not use UpdatePanels for evident reasons, what alternatives to I have? This application has pages built dynamically and so most or all the components of the page exist as User Controls.
I need to make AJAX calls from ASCX user control page. And as ASCX user control...
I have a drop down list that triggers an updatepanel when the index is changed. Thats great and all, but I see it loads the update panel before running the drop down list control's even method. Is there a way i can tell it to run the controls event method, BEFORE loading the update panel? I hope that makes sense.
...
Hi everyone, I have a problem with the returned data from a ajax request. Basically when I click on a link it runs a ajax request to load some html into a div, that part is working fine the problem comes when the data has been loaded.
Part of the html loaded is a form, this form works fine if I load the page directly but when it is loa...
Hi!
I'm learning Ajax currently, and I use "Sams Teach Yourself Ajax in 10 minutes".
I've learnt much, and understand Ajax basically. The book writes code-examples and go through the code bit by bit to explain what each bit does.
However. In this code there is something wrong written by the author, and I don't know what..
Here is the co...
I'm using JQuery to make an Ajax call. I used a sniffer to catch the response text:
{"error_code":0,"message":"SUCCESS","data":{"session_token":"3efd9dde-a839-4e91-9415-4c2f6cba5b7b"}}
But the response returned on the success callback is null. Anyone got any ideas? (see jquery code below.
Jquery code:
$.ajax({
type: "GET",
u...
An odd case I'm trying to figure out here. I'm trying to design a mailbox system, and making some of the options ajax-y. Here's the scenario:
We have a page with 2 tabs, inbox and compose. Inbox is a essentially a list of links of the form mailbox.php?msg=xxx. Clicking on the inbox or compose tabs does an ajax switch.
So, let's say...
I am trying to build a little javascript class for geocoding addresses trough Google Maps API. I am learning Javascript and AJAX and I still can't figure out how can I initialize class variables trough a callback:
// Here is the Location class, it takes an address and
// initialize a GClientGeocoder. this.coord[] is where we'l...
I'm maintaining a CMS where I have this feeling it was made in the age of dinosaurs (Asp.net 1.0?) and decided to upgrade it with Asp.Net MVC and jQuery. But I have some problems regarding the design/specifications of the CMS which I cannot change.
The CMS
The CMS uses JavaScript. Alot. As in "I don't load pages, I request new pages u...
For the dataType option to the JQuery.AJAX function, I don't see byte array or blob as one of the possibilities.
How can I get it so my server can return a byte array as the result of an AJAX call?
I could convert the blob to text, but I'm going for compactness.
EDIT:The blob will not be shown to the user. My javascript will look at i...
How can i upload a file and get its contents in javascript. For example, i want to upload an mp3 and play it in the html5 audio tag without having it on the server. Is this possible?
...
Afternoon all,
Using the code below I'm trying to load what is render by the clicked link in to #loader,
this works but I don't want the whole page I would like just a selected DIV i.e. #photo.
Whats the right way for this to be done?
$(function() {
$(".style_image a").live('click', function(event) {
$("#loader").load(this.href)...
I've been working on a complex app with one main dashboard. I don't particularly like the design because it tries to do too much on one page. So the lead developer thought it would be a good idea to use ajax - because the page is so big. Refreshing part of it is far faster than loading it again.
Problem is there's several ways data c...
Ok...
I've downloaded and implemented this Recaptcha implementation for MVC which uses the ModelState to confirm the validity of the captcha control.
It works brilliantly... except when I start to use it in an AJAX Form.
In a nutshell, when a div is re-rendered with AJAX, the ReCaptcha that it should contain does not appear, even tho...
I am having the hardest time wrapping my head around this. I recently asked this question Create/Edit/Save data in a jQuery pop-up for ASP.NET-MVC and Linq2Sql I'm sure that the response is the right way to go, but I just can't figure out how to write the back-end code to make it work. I originally made my site by following the nerddi...
I have a number of links which I would like to get some information by using ajax calls and display the information as tooltip.
I have bind the function that make the ajax call with the event on mouseover of the link
something like:
$('#div a').bind('mouseover', function () {
//sending the ajax call
}
everything looks/work fine e...
Is there a library simplifying the process of dragging and dropping between the Flash/Flex environment and the surrounding browser?
I've done some research on the process, and so far the closest thing that I have found is from HTML to Flash in a Floorplanning application. I have yet to find a demo going in the other direction however.
...
Hi,
I have to integrate a graph with nodes and edges on a web page. Ideally, i would like to be able to interact with it (like moving the nodes around).
Actually, i'm beginning by representing trees, so i would appreciate to be able to collapse subtrees.
How can I do that ? I was considering google-visualization api but i wasn't able ...
Here's the situation:
I've got two partial views. One has a form.
What needs to happen is when the form is posted via an AJAX request, if the operation succeeds, the area with the second partial is repopulated with the content. However, if the posted data was invalid, the original partial is repopulated with an error message.
I'm usin...
I have this script
<?php
if (!empty($_FILES)) {
$tempFile = $_FILES['Filedata']['tmp_name'];
$targetPath = dirname(__FILE__) . $_POST['folder'] . '/';
$pathinfoFile = pathinfo($_FILES['Filedata']['name']);
$targetFile = str_replace('//', '/', $targetPath) . uniqid() . '.' . $pathinfoFile['extension'];
move_uploaded_file($tem...
Hello,
I have an MVC project where I have a form with fields a user can enter and save. On that same page I have a table which shows a brief listing of information that the user just saved. The problem I am having is trying to update only the table after a save and not an entire page refresh.
Is this possible in jquery or MVC? If ...