ajax

Altered WordPress P2 Theme not Posting to Firefox or IE. Safari Works Fine, though:(

I've altered the P2 WordPress theme file to add a few custom fields to the entry form. Unfortunately, I cannot post on Firefox or Internet Explorer. Safari and Chrome work fine, though. The exact error message is "Are you sure you want to navigate away from this page? Your comments or posts will be lost if you continue. Press OK to cont...

Ajax http / https problem

Hi there, i would like to ask you for workaround on following problem. My site can use http and https protocol, it doesnt affect the content. My site uses jquery ajax calls, which fills some areas on page, too. Now, i would like to do all ajax calls by https protocol. (please dont ask me why :)) When i am on page with https protocol, ...

Resolving relative resources in AJAX content

I'm trying to figure out how to resolve relatively referenced resources inside dynamically loaded content. For example, suppose I had the following page downloaded from /index.html: <html><body> <div id="insert-here" /> <script> $(function(){ $("#insert-here").load("x/ajax-content.html"); }); </script> </body></html> And aja...

Parsing the National Threat Level XML File with jQuery

I'm trying to use jQuery to parse the DHS Threat Level that they have in their XML file, but I can't seem to get it to work. I'm very new with Javascript and non-presentational jQuery, so I'm probably missing something obvious. This is the XML file: <?xml version="1.0" encoding="UTF-8" ?> <THREAT_ADVISORY CONDITION="ELEVATED" /> Thi...

Check for Valid HTML link with SESSIONS

One of the first things I like to do when I make a site is to put in links at the bottom of the page to check for valid HTML and CSS: HTML5  •   CSS <div> <a href="http://validator.w3.org/check?uri=referer"&gt;HTML5&lt;/a&gt; <a href="http://jigsaw.w3.org/css-validator/check/referer/"&gt;CSS&lt;/a&gt; </div> However, when you...

How can a web application synch a folder of text files on the client's PC?

I want to be able to synchronize several text files on a user's PC in real time from my web application. Basically I want a few data files on the local PC to mirror the state of a user's data in my web application so if the web application or the user's internet connection is lost he can use those data files to get some critical info (p...

How to get html returned from ActionResult in Controller

I am trying to implement a feature similar to the Related Questions on StackOverflow, I am doing this in MVC. $().ready(function() { var s = $("#Summary").val(); $("#Summary").blur(function() { QuestionSuggestions(s); }); }); function GetPastIssues(title) { $(document).ready(function() { $.ajax({ type: "POST", url: "/Issue/G...

collapsible panel not loading correctly

I'm having an intermittent problem with the CollapsiblePanelExtender. The way we are using them is to wrap it around a gridview, so that only the header-row is displayed(which contains a checkbox for select all) while collapsed. The page always load as collapsed. about 95% of the time, this will work perfectly fine, however, once in a...

ASP.Net 2.0: Browser Back Button - Invalid postback or callback argument

I have a simple page that, on the initial load, databinds to a GridView. This gridview has sorting and paging enabled, and is also surrounded by an UpdatePanel. When the user does the following, I receive this error: Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in conf...

Check if IsCallback on Application_BeginRequest

I have a web application (.NET 3.5) that has this code in Global.asax: Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs) LinkLoader() PathRewriter() PathAppender() End Sub I want all those functions inside to get called except for when it's an AJAX call back. So, ideally I would have it changed to:...

Ajax Control Toolkit TabContainer - how can I determine which tab was clicked?

I am stuck working with the TabContainer control of the Ajax Contol Toolkit. When a user clicks a tab, I am trying to capture which tab was clicked (like the index). Anyone out there know if this is possible? ...

ASP Updatepanel inside content disapears

Hello, I have an update panel with a gridview and some radios inside it. Senario is that when user select a radio, some bottoms get visible. But after radio eventhandler is trigered, updatepanel contents get dissapered. Any idea about this problem? <asp:ScriptManager ID="scriptManager_main" runat="server"> </asp:ScriptManager> <...

Cross-browser implementation of "HTTP Streaming" (push) AJAX pattern

Client request web page from server. Clent then requests for extra calculations to be done; server performs series of calculations and sends partial results as soon as they are available (text format, each line contains separate full item). Client updates web page (with JavaScript and DOM) using information provided by server. This seem...

How to return JSON structure in ASP MVC

i need to return a JSON with this format: {"answers": [{"id": "93", "value":"Ahstron"}, {"id"="94", "value"="Sampers"}]} Im using the return Json() method form ASP MVC Framework, is there a way to specify that this JSOn is a collection of answers like in the sample code? or must i create my own? with the return Json(a...

Empty response during ajax request in Chrome but not IE nor FF

Hi! I am receiving an empty response when calling a web method using asp.net in Chrome but not IE nor FF. I get this behavior using the ASP PageMethod.func as well as using jquery ajax call. I can 'fix' the symptom by adding a delay sleep call on the server which makes me believe code is just plain wrong somewhere. I have the webkit...

JQuery - AJAX dialog modal, can't hit enter key to submit form

On a website I'm working on, when you click sign on, a jquery dialoge modal pops up, but you have to click on OK to submit the form, you can't just hit enter. I need it to be able to have enter work also. It seems like what I have should work, but it doesn't I'm using jquery-1.3.2.js. I also have a php file with the following piece of...

asp.net with java backend

I currently have a full java web application stack (J2EE web app using Spring and Hibernate with a RIA client using dojo). I have to move technology stacks for the UI to be asp.net but am allowed to keep the server components in java. Any ideas on best practice here - and yes, I have to adopt this hybrid tech stack. Initial thoughts are:...

how can i start ajax push website (activemq or cometd or sth else)?

Hello, I want to start an application which will use ajax push, however the web server should be configured properly and i don't know how to start on server side components. I wanted to start with dojo's cometd and then read some blogs saying that activeMQ is older and flag carrier on ajax push thing, but there was also another blog sa...

Using the JQuery Ajax function to Return 2 Sets of Data

I'm using the JQuery AJAX function to deliver data to a PHP doc. Currently, the AJAX success function returns HTML which gets added to the html page. My goal is for the success function to return a second/different piece of data that can be used as a JavaScript variable. How can this be done? Update The question was answered correct...

How does request::is_ajax() work in Kohana?

How does Kohana determine if a request is an AJAX one? Is there anything different in the referrer string? Do I need to add a GET param, perhaps ?ajax=true Thank you. ...