ajax

Trigger Ajax function with back/forward actions?

Firstly I would just like to thank everyone for reading this and answering my questions. The help given to date has been invaluable and I a better programmer thanks to the help I have been given. To the problem at hand. I fear it is a little rough but the script below for the most part works. The problem is that while the history is st...

Dynamic Content with Ajax not show

Hi i am making a website & want to use the dynamic content effect as the following reference : http://www.diftype.com/ after copied the source, it's work for the fade in effect, but can't call the entry to the content area. i checked the "get_entry.php" file, which is a empty, so i think the most problems is from the "jquery.corefuncti...

MVC.net noob question about Ajax and Json

Hi, I have a beginner level Json question with MVC.net (I've never really used jquery or json) so please excuse me if I ask something stupid. I have a javascript file with the below <script> function refreshMovies() { //$.getJSON("/Home/Refresh", showMovies); $.ajax({ type: "POST", contentTyp...

getting raw json string use jquery ajax method meet problem

I use jquery ajax method, set datatype json, I get a jsonp response from a cross-domain server. But what i want is raw string of json response. so i set datatype text, but i got nothing but a empty string. $.ajax({ url:"http://api.douban.com/book/subject/isbn/9787802057388?alt=xd&amp;callback=?", dataType:'text', ...

Jquery ajax success function displaying message...

On the success function of jquery ajax request i am creating div with a message... But it doesn't seem to show up.... success: function(data) { $(function() { $('<div id="alert">Successfully Updated</div>'); var $alert = $('#alert'); if ($alert.length) { var alerttimer = window.setTimeout(functi...

Could not make my WCF work

Hi all I am new to WCF, I was using web service asmx before. I have trouble on making my wcf JSON ajax service work through http like asmx.Could you help me see what wrong in my code? My WCF services are defined in my website application folder. My aim is to call this service in my aspx page java-script code and return complex object b...

Using Google Analytics with an Ajax webapp

Hello! So I've got an Ajax-based webapp. The homepage serves most - almost all - of the site's functionality. It's split into 3 columns, and the first two are loaded from the page's HTML. The third column is loaded dynamically based on what is selected in the second column. Would tracking an Ajax-based app with Analytics be as easy as ...

issue retrieving ajax data

Hi all, I have an issue retrieving ajax data using jquery 1.3.2 / 1.4.2: It works with IE 7/8 It fails with FF 3.5/3.6, Chrome 5.0.375.70 The piece of jquery code is very basic: $.get('http://myhost/someurl',function(data) { if (data) { alert('data is: ' + data); } else { alert('no data'); } }); With a...

Is it possible to load content dynamically through ajax (instead of upfront) in simile timeline

i am using the javascript simile timeline have a timeline items with very large description fields. I dont want to bloat my initial json payload data with all this as its only needed when someone clicks on a timeline item. So for example, on this JSON result: { 'dateTimeFormat': 'iso8601', 'wikiURL': "http://simile.mit.edu/shelf/"...

Loading a page with AJAX for beginners

Hi, Please can someone give me some direction on the best way to implement AJAX? Basically i have a classic ASP site that has recently been upgraded to .Net, and i've got the scenario where i would like a slow page to be displayed quickly. Part of the data displayed on the page takes several seconds to load, i would like to load up eve...

How to get jQuery/AJAX final URL

When I run $.get or .load in jQuery, the request seems to follow 302 redirects perfectly fine and gives me ultimate response, which I can use in the callback for $.get or which plugs into the this element for .load. While I obviously have the original URL since I am in control of the string that's entered as the first argument in $.get...

Getting Ajax return to replace whole page

This is a followup question to the one I posted last week "Ajax.ActionLink not Posting". I did finally get it to Post, and it properly calls my Delete action and deletes the record. The Delete method returns a RedirectToAction("List") so that the new data set minus the deleted record is re-listed. Except that what actually happens is ...

JQuery Posts stopped working

I have a web application that I wrote using JQuery. I used the $.post methods throughout the application including the login screen. It was working fine and now suddenly out of the blue, it no longer works. The post response now returns null, however; if I manually type in the post, it returns the JSON code that I would expect. A few...

how disable / enable An Ajaxifeid Button From Client Side (JavaScript)

hi my dear friends : i have an AJAXIFIED button(btnsend) thas is disable by it's Property -> Enabled="False" i have a TextBox Next To This Button And I Want Enable that Button When Users Type Something in That TextBox... so i did this (JavaScript): function onkeyupontextbox() { var btnSend = document.getElementById("b...

Ajax readyState always 1

Hi Everyone, I'm tying to do what seems like a simple ajax but can't get it to work. Here's my code: var xmlHttpRequest; function processRequest(){ alert("process request called with " + xmlHttpRequest); if(xmlHttpRequest.readyState==4){ alert("status = " + xmlHttpRequest.status); if(xmlHttpRequest.status == 200){ } ...

Security of AJAX requests

Just now i'm writing a project, and i desided to write it with jquery and ajax requests. only thing, i don't know, is it secure enough? for example, when i verify the username, when registering new user, i use jquery ajax request, i get the array of existing usernames from db(with json), and then verify, if new_username not inArray() ...

How to use Json string in javascript

Hi I have a function var url = "MyAvailability.aspx?mode=get"; $.get(url, function(data) { alert(data); }); that returns a Json string representation events: [{'id': 1,'start': new Date(year, month, day, 12),'end': new Date(year, month, day, 13, 30),'title': 'Lunch with Mike'},{'id': 2,'start'...

Include multiple functions in a PHP file and call them through jquery.post or jquery.get in a javascript file

I want to call various functions made in PHP from my javascript file. Normally using Jquery.post we call a PHP file and and pass various values as post. function new_user(auth_type, tr_id, user_name, email) { $.post("bookmark.php",{AuthType:auth_type, TR_Id:tr_id, UserName:user_name, UserEmail:email}); } If I want to c...

ASP.net Dynamic Controls not being built when expected

I have a reporting module (C# asp.net) that uses dynamic controls to represent the varying parameters of the selected reports. The dynamic controls build and display fine (XML stored in SQL Server 2008 and XSLT for the transform into HTML). My problem is that I have a drop down list(not dynamically created) that contains the report nam...

Troublesome coldfusion union query in CFC with mySQL database

This works with a mySQL backend In the form... <cfselect name="to" size="1" bind="cfc:cfcs.messages.getOrganisations()" bindonload="yes" value="organisationID" display="organisationName" required="Yes"> </cfselect> in the cfc <cffunction access="remote" name="getOrganisations" output="false" returntype="query" displayname="G...