ajax

AJAX JavaScript issue, but only in IIS

When I ran the program under visual studio 2005, everything works perfectly fine. Is this an IIS issue or AJAX. ...

Cross-domain ajax - would this method work

I've been thinking for a while if there's a way to get cross-domain ajax (using XML, not JSON) to work. Can anyone see any reason why the following wouldn't work: Create an iframe Load the url of the ajax call in the iframe Use javascript to get the content of the iframe (this won't be asynchronous, but could using setTimeout(fun...

Double Ahah GET request when Firebug Enabled

Hi folks, Strange issue, when Firebug is enabled (and only then) does my Javascript start making double GET request (AHAH) at what appears to be random. The result of this double call is that the code returned from the server (PHP generated Google Map / Javascript) is spat out on screen. This issue does not occur in any other browsers...

After loading control into page via Web service nothing works onthe page

i just uploaded a control into a page using Ajax and nothing works anymore. i mean links, dropdown, buttons are all dead. when i look at the page source i can not even see the source for the uploaded control. Only if i select an item i can see its source This is the button handler i use enter <button id="ButtonStart" onclick="javas...

Are non-cached js-scripts attached to the main file on ajax-get request?

Hi there, I'm using the following script to request new content to a file called index.html: function addJS(js_urls) { $.each(js_urls, function(index, value) { $.ajax({ type: 'GET', async: 'false', //We should not cache dynamic js-scripts dataType: 'script', url: value }) }) } fun...

Ajax call to wcf windows service over ssl (https)

I have a windows service which exposes an endpoint over http. Again this is a windows service (not a web service hosted in iis). I then call methods from this endpoint, using javascript/ajax. Everything works perfectly, and this the code I'm using in my windows service to create the endpoint: //Create host object WebS...

Ajax response call, 404 Not Found

Hi, i tried to use wordpress and codeigniter for a intelligent join between the best CMS and the best PHP Framework. Actually i intended to use codeigniter for database managemnent and wordpress for display. But i wanted to use codeigniter inside wordpress. So, i have a file tree like that: www - codigniter-core folder - .htaccess - ...

How to get variables from JavaScript to ASP.NET (MVC)

I'm using ASP.NET MVC (I'm really new to both asp.net and the asp.net mvc type projects, but trying hard to learn). I've set up MVC with a controller so that it runs a C#.net method which; queries an mssql db converts it to json returns the json string It's called from the javascript by requesting an url with a parameter. But what ...

How to execute a page ,that contains JS ,in AJAX ,using innerHTML?

I send GET data with AJAX to another file.And on the another file I have echo "<script>alert('Something');</script>";.This is displayed dynamicly with AJAX ,i.e var ajaxDisplay = document.getElementById('edit'); ajaxDisplay.innerHTML = ajaxRequest.responseText; puts the <script>alert('Something');</script> to div with name edit. But ...

Update using AJAX and JQuery

I'm trying to do a simple update, but can't figure out somthing. I have a table that i get from a DB with an Edit button that when i press change to a Save button so i can save with Ajax the record that the user just edit. I'm doing the first part just fine, have one function that do all the jquery stuff on the page (that is working just...

jQuery, JSON and Apache problem

Hi! I have an jQuery JSON request, that loads some JSON from another server (ex. foo.com): $.getJSON("http://foo.com/json.php",function(data) { alert(data); }); But I receive data as null. This is not cross-domain issue, I tried following: $.getJSON("http://twitter.com/users/usejquery.json?callback=?", function(data) { alert(dat...

Ajax GET requests to an ASP.NET Page Method?

A situation I ran across this week: we have a jQuery Ajax call that goes back to the server to get data $.ajax( { type: "POST", contentType: "application/json; charset=utf-8", url: fullMethodPath, data: data, dataType: "json", success: function(response) { successCallback(response); }, error: erro...

Is it worth using a daemon?

Hey guys, I have a program that uses ajax to send a post to multiple social networks via their APIs based on user form input. I was wondering if this process (which doesn't take more than 2-3 seconds when I test it myself) is worth daemonizing with something like BackgroundRB? In other words, were this program to become used by 100+ peop...

Confused as to which Prototype helper to use

After reading http://api.rubyonrails.org/classes/ActionView/Helpers/PrototypeHelper.html I just can't seem to find what I'm looking for. I have a simplistic model that deletes the oldest message after the list of messages reaches 24, the model is this simple: class Message < ActiveRecord::Base after_create :destroy_old_messages prot...

asp.net mvc ajax EnableClientValidation and parse returned data

i use ajax.beginform with EnableClientValidation. problem -the form sends data to controller in any case even the form is not correct -what the proiblem? the second qusion- i return ajax data like this return Json(new { value = "msg" }); how can i parse this data from javascript on view? ...

How to use Jquery Ajax Cache, is there a useful plugin for that and how can i test it?

I am using the jquery $.Ajax property for getting some data from database as json and manipulating dom with that. For example like this: $.ajax({ type: "POST", url: "TipsAndTricksService.asmx/postCommentForTT", data: "{'ttID':'" + ttID + "','text':'" + answerText + "','authorOfTT':'" + authorOfTT + "'}", contentType: "applicati...

ASP.NET MVC and SQL Server

I am new to ASP.NET and the MVC framework as well, so I'd love it if someone could recommend and/or show me some examples of code on how to best read a table from a database and store it as json. The goal after that is to receive some query filter options from a javascript, and then output the json-ified table back to the javascript. Th...

loading page framents with Jquery AJAX

I would like to use $.ajax() to request a page, but load only fragments of that page. I know you can specify what page fragments you want with .load() but I was wondering if this is possible with $.ajax? ...

AJAX Partial page update problem when displaying a control

Hello! I have an interesting problem when using partial page update in asp.net with scriptmanager and a update panel. My scenario looks like this: I'm using the tab control from the ajax toolkit. I also implemented this control using lazy loading, so that when the page is loaded only the current tab gets loaded all the other tabs don't ...

Is it possible to pull Flickr photos based on search term?

Is it possible to pull photos from the Flickr API based on a search term? Not necessarily something from my profile, but from any public photo that matches the search term. Or is the Flickr API only for pulling your own, or another authenticated users, photos? Thanks! ...