Hello,
my problem is that I
can not solve this problem
If I call the php script, all I get is an undefined error
this is the code I use for testing AND
this is the original code from the creator that is giving me a headache
function startJsonSession(){
$.ajax({ url: "jsontest.php?action=startjson",
cache...
Hi,
I am using an JavaScript (and AJAX) to dynamically load a PHP page into a DIV, (when a hyperlink is clicked the div gets code from an external file loaded into it without the page refrshing).
The problem i am having is that when i use PHPLiveX (an AJAX framework for PHP) within the DIV it does not work, however when i load the page...
This is an example code from the prototype site.
var url = '/proxy?url=' + encodeURIComponent('http://www.google.com/search?q=Prototype');
// notice the use of a proxy to circumvent the Same Origin Policy.
new Ajax.Request(url, {
method: 'get',
onSuccess: function(transport) {
var notice = $('notice');
if (transport.respons...
Hello. I have made webpage that uses Ajax to update some values without reloading the page. I am using an XMLHttpRequest object to send a POST request, and I assign a callback function that gets called when the response arrives, and it works just fine.
But... how in the world does the browser know that some data coming from some ip:por...
I'd like to programmatically build an HtmlTable/Table in the code behind of a webservice and have it return as a string of HTML so that it can be written with JavaScript to the innerhtml of a span/div/whatever
Something similar to the following:
//webservice.amsx.cs Build the table, called by another/different method
protected string ...
I have a page with an iframe like this:
<iframe runat="server" id="rsPrintFrame" src="framedPage.aspx" height="0" width="0"></iframe>
I need to get access to a component on the 'framed' page from the parent page, as one would typically do with $find() or Sys.Application.findComponent(). But obviously I can't simply do: myFrame.conte...
Every once and a while I get this error in IE when making an AJAX request to a handler that returns a small response of type text/plain. It seems that this error will start happening, occur a few times, and then it will stop. Very annoying.
I am using the latest jQuery library. The error throws in the complete() function when I try t...
I have a url that when requested will return an image. I want the url to be requested through an AJAX request. The ajax request returns binary data which is what is being deplayed. but i want the actual image displayed not the binary data. Am using php on the server side and i have set the below headers:
header("Cache-Control: no-cache,...
Hi. Try'n again. Don't think I stated question clearly.
Got big problem. Company I'm contracting with asked me to convert site to delay loading using AJAX. To do that, I'm using Page methods to load controls. Javascript looks like this... Works like a champ!
$(document).ready(function() {
var clientID = '#' + '<%= BackUp...
I am working on a web page that uses dojo and has a number (6 in my test case, but variable in general) of project widgets on it. I'm invoking dojo.addOnLoad(init), and in my init() function I have these lines:
dojo.connect(dijit.byId("project" + 0).InputNode, "onChange", function() {makeMatch(0);});
dojo.connect(dijit.byId("project" ...
I have a weird performance issue with my ModalExtender using MS Ajax Toolkit, when I postback back to show the modal it takes near 10 seconds for it appear when my Gridview has about 1600 rows. If I page my Gridview to about 10 rows per page, the performance is acceptable, about a second to show..
Is this behavior normal? The speed is b...
Is there some type of plugin to do this? The server will return JSON content containing the option labels and values.
I can do this manually, I just wanted to see if there was an easier way.
...
How do I handle the click of a checkbox to show another control preferrably a user conrtrol (ASP.NET ) dynamically.
...
I have a javascript setInterval that checks an external page every 5 seconds for mail, I am finding sometimes that if I login or click a form submit at the same time as the request goes out, I sometimes find myself looking at a Y or a N (what my JS was to intercept) instead of the real link I wanted to go to.
How does one debug this? I...
Hi,
If I do a post from jquery like so:
$.post("Row/getRowNames", { currRow: "MyRow", offset: 3 },
function(rowNames) {
/* How do I interpret the data to
},
"json");
How do I interpret the data rowNames that's passed back from the method in the controller? I need to turn the json result into an array of s...
I can get an UpdatePanel control working(partial postbacks) no problem with a new fresh .net 3.5 project. I've overcome many of the pitfalls that are answered here on this site. (scriptmanager on the page, using triggers, or placing the button within the panel itself.)
If I have try to use the UpdatePanel on a project that was origi...
I just switch my website over to MVC from Webforms and I am using ajax very heavily. MVC seems to be slower but I haven't set up anything to record benchmarks.
Does anyone know which is faster for ajax handling and why it's faster?
...
I want to implement asp.net ajax animation (row color fades/changes from red back to white when a linkbutton is clicked) on a gridview row, and I want to do it in the code behind in c# (in the linkbutton_click event).
Is this possible?
...
You have to pass the args variable to the anonymous function, but the anonymous function does not visibly need the args variable, so you have to memorize when Dojo needs the args variable, but the Dojo help page doesn't say! So, when does Dojo need the args variable?
var init = function(){
var contentNode = dojo.byId("content");
dojo.xh...
Hello,
I'm trying to get data from another domain using jQuery. Here is the code:
$.ajax({
type: "GET",
dataType: "script",
url: "http://www.example.com/ajax.php",
data: 'id=5',
success: function(msg){
console.log(msg);
}
}
Now, in Firebug's console instead of the result I get error "overlarge sharp varia...