I am not able to understand, how to do fetch JSON data from Google servers, the requests fails with 405 HTTP error (Method Not Allowed). But I can download the JSON file manually or using PHP on my web server using file_get_contents API. But I want client browsers to download the JSON data directly. There are some similar questions on SO...
Hi there!
I'm looking to create a free-type textbox which onkeyout "filters" a datagrid below. The old way to do this was to write a webservice and call it on each press returning the results - I was hoping there was a more eloquent way of doing this. Can anyone point me in the right direction? Documentation/Tutorials/Sites etc all wel...
I'm trying to use Google Analytics to track any Ajax request made by my web application (in my case built on ExtJS, but it doesn't matter right now).
I wrote few lines of code to track all Ajax requests:
Ext.Ajax.on('requestcomplete', function(connection, options) {
pageTracker._trackPageview('/'+options.url);
});
but it doesn't ...
Hi there, I have a site Index.html and there is a categories menu generated from database. Menu consists of HTML anchors, but href attribute is always something like "Index.html#cat=xyz" because content of each category is generated through AJAX call.
<a href="Index.html#cat=1" onclick="javascript:LoadHref("cat","1");"></a><br />
<a hre...
I have a usercontrol that contains 2 textboxes.
When the page is postback, the ID of those 2 textboxes disappear? The value stay there when the Ajax is called (ontextchanged). I noticed that the method "LoadPostData" of IPostBackDataHandler is not called after a postback (but only when the Ajax is called).
Any ideas?
...
This is a follow-up to a question I asked a few weeks back.
The following:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Test</title>
</head>
<body>
<a onclick="start_ajax_request('url.php&key1=val1&key2=val2&key3=val3')">Test</a>
</body>
</html>
...
Hi,
I am new to this site, so I really hope I will provide all the necessary information regarding my question.
I've been trying to create a "new message arrived notification" using long polling. Currently I am initiating the polling request by window.onLoad event of each page in my site.
On the server side I have an infinite loop:
w...
I'm trying to set up a simple JQuery example in order to make AJAX calls to a .NET webservice. Using the following example below I'm getting AJAX errors that are just saying 0 in the result instead of any meaningful message:
Javascript Call
function QSHelloWorld() {
var options = {
type: "POST",
url: "http://localho...
What would I need to do to get this example running on my machine?
http://www.w3schools.com/ajax/tryit.asp?filename=tryajax%5Fhttprequest%5Fjs
I'm looking to access the XML file hosted on w3schools (and not move it to my machine), but run the HTML and Javascript code on my machine. I tried changing the third to last line from:
<button...
I work for a small web design company, and learned everything I know on the job (my degree is in chemistry!). The other coder here taught me a fair bit of php, and I've had to pick up MySQL and a bit of javascript. I've also increased my knowledge of CSS. (HTML itself I already knew, really, along with a little CSS.)
Now, I am the sort ...
Is it possible to use the ValidateAntiForgeryToken attribute on a controller action when the request comes from Ajax.ActionLink (using Http Method Post?). The alternative appears to be to hand roll a JQuery Ajax request but I am curious if there is a way within the MVC Ajax framework.
...
I asked a similar question earlier http://stackoverflow.com/questions/1610752/how-can-i-have-jquery-attach-behavior-to-an-element-after-inserting-it, but still have not found an answer. To keep things clear I am asking a new question with a different example.
Here is my code that doesn't work.
$(document).ready(function() {
$('form...
I have many lists e.g. a todo list, a shopping list etc. on my web page. I am using AJAX to add or delete the items. For example, for a todo list my HTML is like:
<tr id="todo_userttypea_23"> <td>name</td><td>Delete</td></tr>
Note if the users press delete then I am deleting that row.
I get the id of the row and then break it to find...
I have one PHP script with a session variable, set like so:
$_SESSION['VAR1'] = "test"
Now, I am using AJAX via a jQuery-initiated POST request, and so I have a script named ajax.php which has all the required functions.
And when I try access my session variable (echo $_SESSION['VAR1']) in ajax.php, it produces nothing.
Does session...
Greetings kind community of wise developers !! It's my first time writing and I've looked around but alas, am stuck and need some assistance. I would be very grateful to any kind souls who can help.
My form needs to do 2 things :
1) Behave like a normal form, and submit rows of Product names, unit prices and quantities, when the Submit...
I need some help with this please
I can't get a handle on it.
The problem is that I want to call a class method, in this case with static methods with an ajax call.
I have put the helper class in the same folder as the script that is called by ajax for easy referencing and try to include it.
Could it be that my refencing is wrong?
If...
I have been trying to download the ASP .NET AJAX Futures but I can only see old versions of the DLL via sample tutorials from other websites. I need the DLL to use the Drag and Drop feature according to these tutorials. I know the tutorial is already old but I was wondering if they are still supported? (Microsoft.Web.Preview.dll, Preview...
This JS is giving me some problems. Specifically FF3.5 is saying there is Error: missing ; before statement and its pointing at the 'comsn=' + comsn section. I know enough js to get myself into trouble, but specifics, im not there yet. Any ideas?
<script type="text/javascript" >
$(function () {
$(".submit").click(function () {
...
We are designing a data capture process with many questions (using ASP.NET), which can repeat (e.g. enter all your vehicles). In rare cases this could be over 100 repeating groups.
Therefore I've stated that rather than having one huge form that we split the application into multiple forms, using logical points for page splits (e.g. ...
I have used Jquery for rounded corners (DIV) and i have a updatepanel which contains a datalist which contains som images and a delete link. When i click on delete link it fires delete command and it deletes the image.(asynchronouse postback).
the problem is when I click the delete button my div:s has no rounded corners anymore.
...