I'm using JQuery to make a JSON request to access data on a private server. I've noticed however that I get this message when attempting to access the data:
Security Error: Content at xxxxxxx may
not load data from xxxxxxx.
Looking at the JQuery reference I see it's accessing: http://api.flickr.com/services/feeds/photos%5Fpublic....
Someone has to be able to explain what I'm doing wrong here! I'm trying to create the MOST simple example of an AJAX post to a Google App Engine app...and I'm failing!
Here is the app python
import cgi
from google.appengine.api import users
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi...
In the process of learning Ajax requests using jQuery, I tried to load google home page on the click of a link. So I wrote something like:
$("#ajax").click (function (event) {
$("#g").html("Loading...");
$("#g").load("http://www.google.com");
event.preventDefault ();
});
And somewhere in body:
<a id="ajax" href="http://www.google....
Is it possible to start a query that will take a significant amount of time and monitor progress from the UI via Ajax?
I considered starting the process as a "run once" job that is scheduled to run immediately. I could store the results in a temporary table for quick retrieval once it's complete. I could also log the run time of the rep...
I have a simple ASP.Net MVC View which contains an FCKeditor text box (created using FCKeditor's Javascript ReplaceTextArea() function). These are included within an Ajax.BeginForm helper:
<% using (Ajax.BeginForm("AddText", "Letters",
new AjaxOptions() { UpdateTargetId = "addTextResult" }))
{%>
<div>
<input type=...
I want to create a page which displays some contents when left navigation menu is clicked. For Eg. When MY FAVOURITE VIDEOS is clicked then the list of the users favourite videos should be displayed on the right side using AJAX. Help me
...
If you don't want any context or an example of why I need this, then skip to The question(s) at the bottom!
In a bid to keep things tidy I initially built my application without JavaScript. I am now attempting to add a layer of unobtrusive JavaScript on the top of it.
In the spirit of MVC I took advantage of the easy routing and re-rou...
Not sure if this makes sense, but why did adding the code on my http handler (responds to a ajax request returning a json result):
adding context.Response.Headers.Add("Cache-Control", "no-cache");
cause an error and say integrated pipeline mode has to be set?
...
Hi everyone.
I am not familiar with js and jQuery, but need to create function to add/remove blog post to "My favorites" page and update counter of saved posts. Is any ready solution - plugin or snippet - to it?
There is my html snippet.
<h1><a href="http://www.example.com/add-post-to-my-favorites-page.htm" id="post_0064"><span class...
How do I load an external http xml request with jquery?
Below is a url when pasted into a web browser like firefox, an xml document is shown.
This is for the CPanel XML API.
http://hostingz.org:2086/xml-api/createacct?username=WeAreWatching&plan=hostingz%5FFH5&ip=n&cpmod=x3&password=changeme&contact email=contact.w...
I'm having a peculiar problem:
PHP SCRIPT:
// checks If-Modified-Since header (if nothing has changed)
// Sends HTTP/1.0 304 Not Modified
// Sends Cache-control: public, must-revalidate
// exits
// if NO If-Modified-Since or something has changed
// builds content
// Sends Last-Modified: [DATE TIME]
// Sends Cache-control: public, mus...
I have been looking for a really good, well documented jquery plug-in that will let me edit values on click of another button.
This plugin is the closest yet, However I am not sure how to get it to save, even in testing. Something really quick that returns the value.
I am using this for my php script:
function editprofile()
{
...
I want a link that when you click on it, it will call a simple ajax query which updates a database entry. Normally this would be easy, but because authentication needs to happen before the query is executed, I need to be able to execute the Ajax Query AS THE CURRENTLY LOGGED IN USER. I.e. I need access to the $user variable and I don't w...
I have the following code which works perfect in IE for a textarea element.
(ed: wrapped for readability)
<textarea name="mem_message" cols="25" rows="5"
onkeypress="return taLimit(this)"
onkeyup="return taCount(this,'myCounter')">
<? echo $_SESSION['mem_message']; ?>
</textarea>
It calls a validation function:
<script lang...
I have a set of links dynamically generated in a table. Each of the rows has a unique "id" property on it's tag. The goal is to get XMLHTTPRequest to tell the page 'deletepost.php' which record to remove from an outside database.
It changes a hidden input value to the value of the row (a number), and then submits that form
<script...
I'm trying to get Selenium to wait for all of the AJAX requests on a page to complete before proceeding to the next command. I'm using wait_for_condition and the following JavaScript:
function(){
var wait = function() { return jQuery.active == 0; }
return wait.call(selenium.browserbot.getCurrentWindow());
}();
This works fine in F...
I want to reload a page so that it does not cause the effects of a full-page refresh, like displaying "Loading..." on the page's tab.
Here's the code I have so far. My theory was that I could overwrite the body section with a <frame>-wrapped version of the updated site, gotten via GM_xmlhttpRequest.
reloader.js
setInterval(reload, 10...
I have some code on the client that calls an ashx handler using $.ajax() and expects json data from the server. Everything works fine on FF, IE 6,7,8 when I run the application on a local webserver. However, when I deploy the application to a remote test server, IEs stopped working ($.ajax returns a parsererror), while FF continues to wo...
I'm using jQuery to query a database and update a table of bid and ask prices for a currency trading ticker. I'm using $.ajax to send a currency symbol to a php script that queries the database and returns a xml document that javascript parses to make updates to the table. Everything is working in FireFox on both pc/mac and on Safari, bu...
I'm trying to have a php script run when the user navigates away from the page. This is what I'm using currently:
function unload(){
var ajaxRequest; // The variable that makes Ajax possible!
try{
// Opera 8.0+, Firefox, Safari
ajaxRequest = new XMLHttpRequest();
} catch (e){
// Internet Explorer Browsers
try{
ajaxRequest = new ...