i have an ajax call
$.ajax({
url: '<%=Url.Action("SaveDetails","Survey") %>',
dataType: 'JSON',
cache: false,
data: { Id: selectedRow.Id, Value: surveyValue, FileName: filename, FileGuid: fileguid },
success: function(data) {
...
...
Hey all, This is more of a standards and structure question.
Consider this .load() scenario. I have a page that loads a second page into a div with the .load() function.
<html><head><title>My Page</title>
<script type='text/javascript' src='myfunctions.js'></script>
<head>
<body>
<a href='#' id='click_link'>Click Me</a><br>
...
Hi, Im trying to use jqeury ajax with MVC i can get it to post back to the action i want and it returns the ViewData objects with updated Data but never renders the HTML. I have i View which contains some MVC User Controls and i want them to update on a timer.
Here is my View Markup
<%@ Page Title="" Language="C#" MasterPageFile="~/V...
I have this js code:
$("#startSearch").live("click", function(event) {
$("input:checkbox[name='searchId']:checked").each(function() {
var searchId = $(this).val();
var host = '';
$.post("php/autosearch-get-host.php",{sId: searchId},function(data){
host = 'http://' + data + '/index.php';
})...
I have a function to load a html part into a element in main index page kinda like this
$(".ajax").click(function() {
//load a page into a element
});
This works
But the HTML part which i have just loaded also have links that need to trigger same function above, but it does not.
Until I save that function in a separate .js f...
Currently working on a mobile site using the .load() technique:
$.ajaxSetup ({cache: false});
contentLoad();
function contentLoad() {
$('a.inline').click(function(){
var toLoad = $(this).attr('href')+' #content';
$('#loading').show();
$('#content').load(toLoad,'',showNewConte...
Hello,
I'm creating a J2EE web application that uses jQuery and Ajax to help with some of the presentation for a user-friendly interface. I've done a lot of work ensuring security around persistant login cookies, and I've decided to request the password from any user that logged in using a persistant login cookie before being allowed to...
Hi,
I have a html page with a form.
The form has Div which gets populated dynamically with Input elements like text box,radio,checkbox etc.
Now I want to retrieve the values of these dynamically created elements in the Html page,so that i can submit it to a page.
//HTML PAGE
<script type="text/javascript">
$(function() {
...
I am developing a mobile site that will load page content using AJAX if JavaScript is enabled. I have been using the JQuery load() functionality to load page contents from other static pages but I feel I am wasting precious bandwidth loading the entire JQuery library when I'm only using a small piece of it. With this said should we be av...
I'm trying to convert a database-driven multiple-choice-style study website (written in JSP) into an iPhone app using JQTouch.
If I load all of the Q&As into their own divs in the same file I can easily link and animate between them using links to hashtags, like: a class="button" href="#question22"
Unfortunately this isn't practical. T...
Hi guys!
I want to show progress with jquery ui progress bar when an ajax request fires and when it finishes. The problem is I don't know how to set values for the progress bar depending on the progress of the ajax request. Please hlep. Here's a code to start with:
function ajaxnews()
{
$('.newstabs a').click(function(e){
...
Does anyone see anything wrong with the following:
$.ajax({
url: '/tags/ajax/post-tag/',
data: { newtaginput : $('#tag-input').val(), customerid : $('#customerid').val()},
success: function(data) {
// After posting
alert(data);
arr = data.tagsinserted.split(',');
alert(arr);
//Loop th...
Hi guys,
I have set up a PHP form for a competition, for users to enter and all information to be stored in a database. I used the following NetTut+ tutorial to do so: http://tr.im/SwAd.
I've got the form submitting to the database as required, but with so many additional questions being asked, I would like to split the form into two ...
I use the Ajax JQuery command to call a PHP script that generates a CSV file and returns a link to that file for the user to download.
I would like to make this more user friendly by automatically starting the download so the user sees the browsers "Save or Open" window instead of having to click the download link.
I'm guessing I nee...
Hey everyone. This is my first post here, so I hope I'm doing it appropriately.
I have several jQuery $.post calls that work just fine. They send data to a PHP script that modifies a database and returns some data. No problem.
But this one doesn't work. The returned data is just NULL.
$.post("act_addTaskLog.php",
{description: $("#lo...
<script type="text/javascript">
function testing() {
$.ajax({
type: "POST",
url: "testing.php",
data: "call="+$("#abc").val(),
success: function(msg){
alert( msg );
}
});
}
</script>
<textarea id="abc" cols="" rows=""></textarea>
I want t...
Hi,
I have an ASP.Net MVC view in which I have a list of item category displayed .When a submit button is pressed I am posting this form using $.Ajax() function. I get the result (Category Name & Description) back in JSON. This application works fine when I run from Visual Studio 2008.But the Ajax call is not working (success: function n...
I have a PHP process that takes a long time to run. I don't want the AJAX process that calls it to wait for it to finish. When the PHP process finishes it will set a field in a database. There should be some kind of AJAX polling call to check on the database field periodically and set a message.
How do I set up a jQuery AJAX call to po...
I want made an Ajax request with response on JSON. So I made this Ajax request :
$.ajax({
url: 'http://my_url',
dataType: "json",
success: function(data){
alert('success');
},
error: function(data){
alert('error');
},
complete: function(data) {
alert('complete')
}})
This code works goo...
I'm trying to run .ajax and insert a data element from the onClick of an item from the page. Whats the best way to do this?
Something like this:
function grabinfo(foo){
$.ajax({
url: "infospitter.php",
method: "GET",
data: "id="+foo,
success: function(html){
$(#showstuff).html(html);
}
...