I have a web page and I am associating a note with the page storing it in my database, so that the whenever the next time the page is loaded that notice can been seen till it is deleted by some other user authorized to do the same. However, say I associate a note with the page after some content is loaded through AJAX. I want the note to...
I was trying to find some more information on the following jQuery function:
jQuery.active
It is described here to test the number of active connections to a server and will evaluate true when the number of connections is zero.
http://agilesoftwaretesting.com/?p=111
http://web.elctech.com/2008/11/10/jquery-ajax-loading-and-selenium-r...
Say I have this code:
function onComplete(event, request, settings)
{
// How do I get the data? In the correct format?
}
$('body').ajaxComplete(onComplete);
In regular ajax success handlers, I can just access the data directly since it will be the first parameter to the handler. It will also be in the correct format (as long as t...
I've been pulling my hair out this morning trying to figure this out.
I have a simple jquery json request to a jsonresult action on my controller. When I run this on my local machine (IIS7), it works fine. When I deploy to a dev machine running IIS6, I get a 404 error.
script:
$(function() {
$('#search').click(function() {...
Excuse my daftness, but I can not understand how ruby vars can be attained with jQuery. I made a button that by json POSTS to the server to make a credit_status = 0. But I would like that 0 to also auto-update on the page as well.
My View:
HQ $
= organization.total_credit
= link_to 'redeem', redeem_admin_organization_path(organization)...
I have simple form with a textarea and a button, and I submit the form with jQuery .post() function and in 'json' format.
My form submits correctly until I wrote some html tags like bold etc. in the textarea, then the form dose NOT sumbit to server anymore.
I don't know what is wrong with what I'm doing and how do I get html segments s...
hi,
as you all know using [WebMethod] only accepts Static Methods, of course to avoid the whole Page life cycle, but sometimes you really need to access some other methods and properties of the page, and more you also know that [WebMethod] dont work with user controls.
now after reading on the New Dynamic Feature, i decided to do some ...
Okay, so pretty much I'm banging my head up against a wall right now. I'm making a form that is spread across three tabs. Basically you would select an employee at the right and their information would be populated to the left in three tabs. Each tab has a different form.
I am working with coldfusion and I tried using CFLAYOUT + CFDIV,...
I am learning how to utilise external XML feeds within our Intranet, to better serve our staff and reduce their need to go outside the network for content.
I can render the basic information from the feed without a problem. Where I come unstuck is trying to display one of the video thumbnails to use as part of the my chosen layout.
Pro...
It seems that the success, error, and complete callbacks only fire when the ajax request is able to get some response from the server.
So if I shut down the server the following error callback is not executed and the request fails silently.
$.ajax({
type: "GET",
url: "http://localhost:3000/",
dataType: "script",
success: functi...
Hi :) When using Firebug i can see it returns 0 or 1, so the php is ok. But seems like ajax server_reponse isnt getting it.. somehow. Anyone see the problem?
j.ajax({
type: "POST",
url: "php/inc/ajax_check_username.php",
data: "username=" + username,
success: function (server_response) {
j("#availability_status"...
Hi, I'm trying to build a tree from json data, this data are loaded on demand from php files. My problem is that i can't find a way to get to lvl 3 ;). Here is my code:
$(document).ready(function()
{
//Get the screen height and width
var Height = $(document).height()/2;
var Width = $(window).width...
In my project I have to add functionality for deleting friends from users list. When clicking on 'Delete friend' link, the following view is loaded (with the friends.id sent) :
def delete_friend(request, id):
friend = get_object_or_404(Friend, id=id)
friend.delete()
return HttpResponseRedirect(reverse('user_profile',))
...
I don't want to hit the server and bring back every row when I am paging through the records by using the pager. I read that if I set the datatype = local in the complete blog in the .ajax function AND if I set loadonce:true then I should be able to avoid having to wait for the grid to reload with the data.
However, when I do these thi...
I've got the following code:
<script type="text/javascript">
$(function(){
$("#AddMaps").submit(function(){
var $form = $('#AddMaps');
$.ajax({
type: 'POST',
url: $form.attr( 'action' ),
data: $form.serialize(),
dataType: "json",
...
I've encountered a pretty weird situation, I'm using Win7, VS2010, ASP.NET MVC2, jQuery. I have a simple form a textarea and a button doing a .post() ajax call to server, pretty simple setup.
It works when I input plain text in the textarea, but if I mix html tags like bold, then it works sometimes!!
I do have [ValidateInput(false)] ...
Could you recommend some lightweight jQuery plugin to detect if fields specified by selector have changed?
E.g. like this one on SO, showing confirmation dialog when I want to reload page during post edition.
...
I have an textarea for user to input comment and a button to submit using jQuery .post() and JSON.
$('#submit').click(function () {
var comment = {};
comment.Author = $("#author").val();
comment.Email = $("#email").val();
comment.WebSite = $("#url").val();
comment.Body = $("#comment").val(); // te...
I've got the following code
$(function(){
$("#AddMaps").submit(function(){
var $form = $('#AddMaps');
$.ajax({
type: 'POST',
url: 'test_multiple.php',
data: $form.serialize(),
dataType: "json",
beforeSend:function(){
$('#ajax-panel').ht...
I am developing a web application using asp.net mvc... I am listing out the details of Clients,Staff,Reports via ajax requests using jquery... What i am doing is writing seperate functions(jquery ajax requests) for each actions (ie) view,add,edit,Delete ...
//Clients
function getClients(currentPage) {
$.ajax({
url: "Clients/...