Hi,
Is there any way I can evaluate the returned content type of a jquery ajax request and do different things depending on the content type?
For example if the conten type is html I'd like to append this to a certain div on my page.
If the content type is text/javascript I'd like to just evaluate the javascript.
If the content type is...
Does anyone have a elegant way of dealing with errors in ASP.Net MVC? I constantly run into issues when dealing with requests to controller actions where the Action can be used for both normal requests and AJAX requests. The problem I have is finding an elegant way of dealing with these issues.
For example, how could I handle validation...
Are there any free Comet JavaScript libraries that allow multiple windows/tabs to reuse the same connection? In other words, when you open a second window, it detects that you have another window open under the same domain. Rather than open a new connection, it starts listening to the other window's connection. That way it can stay withi...
Hi.
I have been having some problems with this for a few days now...
I have designed a WCF Class Library - WebAPILibrary. It is under my
solution which also contains my web project.
I now am attempting to enable a AJAX/JSON response to a search query.
In the client code examples, I see something to the effect:
function btnsrch_o...
I have this code, which is working fine in FireFox, chrome and IE8 but is it not working on IE6 and IE7.
function GetXmlHttpObject() {
//var xmlHttp = null;
try {
xmlHttp = new XMLHttpRequest();
} catch (e) {
try {
xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
xmlHttp = new ActiveXObject("Mic...
Hi, I'm customizing the buttons I'll show in the Ajax Html Editor and would like to see a sample of how to add font-size options inside the dropdownlist.
public class HtmlEditor : Editor
{
{
protected override void FillTopToolbar()
TopToolbar.Buttons.Add(new AjaxControlToolkit.HTMLEditor.ToolbarButton.FontSize());
}
}
It shows t...
How to inject JS code when browser's button is clicked? I noticed that RegisterStartupScript during that page life cycle doesn't inject any JS code.
OR
How to force any browser to not use the cache and do a fresh complete page load when back button is used?
...
My question is an elaboration of this one:
http://stackoverflow.com/questions/1093251/php-mysql-ajax-chat
I have a 100 chat rooms which I need to make. Is there a php/mysql based chat system that would do something like this?
phpFreeChat is mentioned, but from what I understand, I have to (manually) download and install the applicatio...
Hi.
There are a lot of chart drawing libraries out there, but what I am looking for is an interactive(!) graph (nodes and edges) drawing library. At best some kind of AJAX, but I am also open for other technologies (Java, Flash). However I would really prefer an AJAX implementation. Also only Open Source framework suggestions please (I ...
I currently have an Ajax pop up window displayed from the main page of my application. In this pop up I have select list and I want to pass the selected value from the pop up back to the main page when the user closes the pop up window.
I feel there is an elementary way to do this, but I can't seem to figure it out.
...
What does verifyClient in <cffunction> actually do that makes it secure? secure from what?
Doc said:
A Boolean value that specifies whether
to require remote function calls to
include an encrypted security token.
For use with ColdFusion AJAX
applications only.
encrypted security token? who generates that? Client-side by ...
I'm trying to pull in HTML/Javascript from an external PHP page using Prototype/AJAX, and the HTML renders fine, but the Javascript doesn't work after the AJAX request.
I'm also showing a loading bar while the page loads the data, and this part works fine. My Symfony PHP + Prototype code is below. Any advice that might put me in the rig...
I am trying to rely upon the browser cache to hold
JSON data returned from AJAX calls in jQuery.
Normal browser activity relies upon the browser cache all the time.
Example: jpg and gif images are not refetched on a page reload.
But when I try using jQuery getJSON ajax calls, I cannot seem to avoid fetching the data from the server.
M...
Hi Guys,
Is there a way to redirect a user to a page (login page in my case) when an AJAX query is made by the user to a server? The server is supposed to serve data only if the session is set or else the user should be redirected. I have tried sending a header("location:...") request but the browser handled it as a string (xmlhttp.resp...
Hello,
lets say I got multiple users. They all have items linked to their account. They can CRUD those items.
So now my question is: what's the best way to prevent users from manipulating items from eachother.
At first I thought the antiforgerytoken would help. But it doesn't because when the users look at their control panel they got...
I am making an AJAX call in my ASP.NET application via Jquery to a page method.
$.ajax({
type: "POST",
url: "APage.aspx/GetDropDowns",
data: "{'AId':'1'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(msg) {
alert(msg.d);
},
error:...
INITIAL POSITION:
We are using SEAM together with RICHFACES.
We've got the following page configuration with an action (called actionBean.doBefore), that should be executed once on page load:
<page>
<action execute="#{actionBean.doBefore}"/>
<navigation from-action="#{actionBean.doAfter}">
<redirect view-id="/view/component/...
Hi. I'm making lost password recovery on my login page and I'm doing it with ModalPopUpExtender, a Panel and two of those inside of an UpdatePanel. But somehow when clicking the "btnOkPassRequest" full postback happens. People had similiar problems with other controls, some that UpdatePanel obviously didn't encapsulate. But never with a ...
I want a user to submit multiple form at once by submitting a "master" form.
I got it working by using mootools' "send" function, but we switched to prototype and I can't get the same result.
using "submit" just "clicks" all forms.
basicly what I need: A function to submit all form by just using an Ajax POST call. Strangely all ajax fu...
I know why the post fails, but I'm not sure how to resolve it and I can't find any other references to this. I'm taking our references to jEditable to make this simpler, as it happens without the jEditable plugin.
So how the heck do I "escape" the keyword so that it posts correctly? Here's relevant code:
Test
<scri...