IsAjaxRequest is always false after upgrade to RC MVC
I updated the AJAX scripts and assembly referenced as per release notes. However, IsAjaxRequest still always returns false despite it actually being such a request. How do I resolve this? ...
I updated the AJAX scripts and assembly referenced as per release notes. However, IsAjaxRequest still always returns false despite it actually being such a request. How do I resolve this? ...
I have a Rails app with a model whose fields are dates which are checkpoints for a certain process. I want to prevent the user entering a date for the nth checkpoint until they have entered a date for the (n-1)th. Obviously, I can validate in the model to make sure that no dates are missing (and that dates are in chronological order) b...
I have some tabular data with some functionality to "view details" that fires off an ajax call to append a few new elements to the DOM (usually I insert another TR just after the selected row and innerHTML or append inside a TD with a colspan. My question is this, in IE6/7 my columns flex. Currently I don't have a "static" width per co...
Is this typical behavior of the UpdateProgress for an ASP.Net UpdatePanel? I have an update panel with the UpdateProgress control inside of a user control window on a page. If I then make the page in the background do some loading and click a button in the user control update panel the UpdateProgress does not show up at all. It's li...
There are similar questions at SO, but none that seem to address this. Below is a very simplified variant of my situation. Drupal/PHP site -- I have a form w/ submit button that I am using jquery.form plugin to ajax-ly submit. It works fine if I use the submit (#submit) button. Now, I want to programmatically fire that button using an...
I am trying to print a part of a page with a single button click without opening a different page . The part of the page that i need to print has been called using ajax so if anybody could help me i would be really thankful ...
Hi, I have a Google calendar embedded on a webpage, with events related to activities the site is organizing. Some calendar events have links that redirect the user to a page, within the same website, which has more information and the option to enroll in the event. The problem however, is that since the end of last month, Google impos...
Hello everyone, I have the current problem, let's explain the context before : I have a Modal popup extender who contains a form. There is a feature "Save and Add New", when the user click on this button the data in the form is saved in the database during postback and the page is reloaded. I want this Modal popup to appear again on ...
I want to play a sound when asp.net updatepanel updates. Is there a free and simple way to play sound when ajax panel updates? ...
I am using the jQuery Form plugin to submit AJAX requests. I am trying to do some simple validation (make sure fields are filled out) before submitting. I am not trying to run any AJAX validation prior to submission. Before I added beforeSubmit to the options of the ajaxform() method, the form would submit and my controller code would ru...
Hiding a DIV would be easy enough in Javascript, but is there some Rails-y way to do it? I can think of some ways to do it by calling Javascript from a partial (.erb), of course, but I'd prefer not to write any Javascript at all. Possible? Edit: The page is loaded and I would like to hide the DIV after (well, on) an Ajax call, so I'm in...
I dont want to use jQuery, but id like to AJAX a file upload. is that possible? if so, where could i find information / tutorial on it? THANKS! ...
I have JSF with Richfaces app on Glassfish server. Is it possible to make an ajax window on the page and show info from Glassfish's log file that is located in [GlassfishFolder]/domains/domain1/logs/server.log? And also I want to clean up that log to make it look like in NetBeans. Thanks ...
Many of the upcoming generation of browsers (FF 3.1, IE8) are going to support cross-domain XMLHttpRequests in one fashion or other (with security concerns, as long as the server opts in, etc). Is the same bit of functionality going to be in WebKit? FF: https://developer.mozilla.org/en/Cross-Site_XMLHttpRequest IE: http://blogs.msdn...
I am trying to send a php script some content to be stored in a database via ajax. I am using the jQuery framework. I would like to use a link on a page to send the information. I am having trouble writing the function that will send and receive the information, everything that I have tried is asymptotic. EDIT The idea is that the user ...
I would like to close the browser window when an ASP.NET operation has succeeded. The code below is triggered by a button that resides in an Ajax UpdatePanel. Page.ClientScript.RegisterClientScriptBlock(typeof(LeaveApproval), "ShowSuccess", "<script language=javascript>window.opener=self; self.close();</script>"); However, this code d...
I am using jQuery to call PHP files via the $.get method function fetchDepartment(company_id) { $.get("ajax/fetchDepartment.php?sec=departments&company_id="+company_id, function(data){ $("#department_id").html(data); }); } What I am thinking is can I secure the filename even further? Currently I have a global access c...
I have a simple JS function that needs to get called when AJAX call succeeds, however i don't have any control over the AJAX calls since the framework (DNN5) handles all that. How do i call my function on AJAX success? I use DNN5 and jQuery, if you're not familiar with DNN, just assume that all the controls on the page are wrapped in t...
I'm working on my first Ruby on Rails aplication and it's quite big (at least for me ;) - database has about 25 tables). I'm still learning Ruby and Rails and I never wrote anything in Javascript nor Ajax. Should I add Ajax to my application from the begining? Or maybe it will be better to add it latter? Or in the other words: is it (r...
Thanks for reading this. I imagine this is really a javascript question, and my title probably does not get at the heart of what I am trying to do, but I want to store the result of my ajax request in a global variable. This would allow me to test the var before making the ajax call...and avoid repeated ajax calls for the same data. I n...