Hello
I'm trying to do the following: I have only a ScriptManager and an UpdatePanel (with empty ContentTemplate) on a page. I would like to add a button on it during the page load. Then after the button is pressed I would like to get an Ajax request and generate some dynamic controls on the page.
But it doesn't work, the code is belo...
I'm wanting to know what the best way to go about creating a list of say, users's statuses (similar to what facebook/twitter has) that is loaded in with PHP when the page loads. But ajax checks for new status updates every 10 seconds or so.
It looks like to me that there are about 2 options: Put the "new items" html in the PHP file th...
I have the following code and would like to use jquery to make it simpler:
var auctionBidAjax;
function auctionBid(auction_id) {
auctionBidAjax=GetXmlHttpObject();
if (auctionBidAjax==null) {
alert ("Your browser does not support XMLHTTP!");
return;
}
var url="/cms/ajax/auctionBid.php?auction_id="+auction_id;
auctionB...
As the majority of you know AJAX works poorly with fixed URLs and all major sites now use the # to split the AJAX part of the URL. I will also do that but am trying to achieve the prettier, less obtuse and fastest way of doing it.
Edit: So far I've analysed Facebook way of doing it (last night I've done it poorly) and silky pointed me o...
Hi,
I'm building a webapp using JQuery, Stripes, Spring and JPA (Hibernate).
I have a page that allows users to enter a number of order line items and each time onblur occurs in the price field, I have a JQuery event bound to the field which sums all the price fields (this is a subtotal), calculates 10% tax and adds the tax to the subt...
I have written a custom ajax extender for use with ASP panels and JQuery dialogs. The problem I face is that I need multiple buttons to trigger the dialog, therefore attributes aren't really a viable option. I am hoping to do something like the following:
<ex:DialogExtender TargetID="pnlSomePanel">
<triggers>
<button ID="btnOne...
I was just wondering if it possible to make an ajax request from a view to an action which injects image data directly in to an image tag.
To give more details, i am borrowing some code in stackoverflow.
Controller;
public FileResult GetImage(int id)
{
return File(PhotoHelper.GetImageBytes(id), "image/jpeg");
}
View:
<%= Html.Im...
Hey,
I am having a peculiar problem with getting an integer from an ajax response. Whenever I call the following code, parseInt(data) returns NaN despite data being a string.
function poll() {
$.ajax({
type: "GET",
dataType: "html",
url: 'images/normal/' + userId + '/' + saveCode + 'progress.txt',
error: fun...
I have a user page where the user can type and submit posts. I'm using Ajax to allow the user to do this from the user/show page. The problem that I'm having occurs when I try to let the user delete posts. When the user clicks the "remove" link, the post is removed from the page. However, when I reload the page, the post is back. It's...
the problem is whenever I use $.get, $.post or $.ajax, I can't find a way to trigger a callback when the server is processing something. I can do it with the ajaxform plugin via the beforeSubmit method, but with the formerly mentioned functions, I can't find a way to do it. $.ajax has a beforeSend method, but according to the documentati...
I have this code:
$('.be-delete').live('click', function(e){
e.preventDefault();
var object =$(this);
var url = $(this).attr('href');
$.ajax({
url : url,
error : function(){alert('An error has occurred, no updates were made')},
success : function(){
object.parent().fadeOut('slow', func...
i want to call a php with jquery ajax to perform some database things and then return 2 lists of links. so i have to pass these two link lists back to jquery so it can display list 1 in the left side of the webpage and list 2 in the right side.
i created the lists in separate arrays that i send back to jquery with json_encode but i noti...
django-smart-selects is an elegant solution that enables Django developers to have chained select inputs in their forms. But as reported by developers in its list of issues, it does not work well when used in formsets.
The javascript it renders is tied to the id of the "chained field" right in the model definition.
How do you think thi...
I am currently in the process of setting up AJAX capabilities in a SharePoint environment to support web parts I'm creating with C#. I am using Microsoft's walkthrough as a starting point just to get up and running, and I am running into what I believe is a strange error. The problem is occurring in CreateChildControls():
protected ...
I've tried specifying a few different border properties but I can't seem to do anything to get rid of that outline around each tab panel. Any ideas on how to get rid of it?
...
I have some tricky AJAX code on a form, and sometimes it will fail (don't ask why, I can't get around it). When this happens, I need to trap the error, reset a hidden field indicator, and submit the form naturally so that the user does not have an unpleasant experience. I planned on using window.onerror to do this, but it is never firi...
hi all
I have successfully implemented jcrop and paperclip to crop images by going to another page ie the crop.html.erb
but i want to be able to do all cropping on my current page where i upload the image(s) in a popup div / dialog.
so somehow i need to load this the crop.html.erb page into a popup div on click. Here is the code on t...
Hi
I have the following jquery code to call a webmethod in an aspx page
$.ajax({
type: "POST",
url: "popup.aspx/GetJewellerAssets",
contentType: "application/json; charset=utf-8",
data: '{"jewellerId":' + filter + '}',
dataType: "json",
success: AjaxSucceeded,
error: AjaxFailed
});
and here is the web meth...
I'm curious as to what pattern the community uses to make AJAX calls in a 3.5 setting. Patterns may be the wrong term to use here, but I've started working in an AJAX environment(been a while) and there's a few new options.
Originally(quite a few years ago), I would write up a function using XMLHttpRequest and use an *.aspx or *.asmx pa...
How do websites generally log users out and send them to the log in screen automatically when a user's session expires? Is this done through ajax or running async handlers? Can you give me a bit of an explanation.
...