ajax

Calling functions from an ASP.NET code file with javascript.

I have a JavaScript-based timeline which needs to use data from an SQL server. The queries and the JSON conversions have been worked out in the form of C#.NET functions within a code file related to an .aspx page. So for a complete newbie to ASP.NET, how do you set up a function call like this from JavaScript? I would love it if some...

RSS speed vs. AJAX speed

I am attempting to pull posts from my Wordpress (on the same server as my main site) to my main site. I am able to use both RSS and Ajax - but I need to choose between them. What are the performance pro's and con's of either, and what should my final decision be? ...

Scrolling content

Does anyone know if there is a common javascript library to enable scrolling that many popular websites do for frequently updated content? For example : http://foursquare.com/ has a good example of what I am looking for, I thought I'd save myself the trouble if there is a common js library I cannot seem to query for correctly in google. ...

Generating scriptaculous ajax.autocompleter on the fly

I have a form where the user can dynamically add a new table row with fields. I'm using a simple insertCell/InsertRow with innerHTML to generate the new row. One of those form fields is using scriptaculous' ajax.autocompleter. I have it generating new IDs for all the elements, but it is still not working The new row generated by js h...

Load pictures with PHP (from DB) dynamicly in JavaScript AJAX script (jCarousel)

Hello everyone, I am using a AJAX gallery called jCarousel, and I am having some difficulties about dynamicly loading my pictures from the data, I simply don’t know how to integrate PHP in the JavaScript code. The static JavaScript code for loading the pictures is: var mycarousel_itemList = [ {url: \"http://static.flickr.com/66/199...

Enabling browser back/front navigation for page loads that don't change URL hash

I have an Ajax site where I have browser navigation hooked up to ajax page loads in cases where navigation results in a change to the URL hash. I was wondering what the best way to get navigation history is for ajax loads that don't result in a change to the hash. So, say I have 'Level 1' links which, on clicking, result in a URL hash...

lazy loading of java script in php

Hi, I am using the Google visualization for drawing graphs into my website. This involves a lod of java script. <script type="text/javascript" src="http://www.google.com/jsapi"&gt;&lt;/script&gt; <script type="text/javascript"> google.load('visualization', '1', {packages: ['annotatedtimeline']}); </script> These two lines of scr...

catching the o/p of php in js.

hi i am using js/ajax code to print the o/p of php file in tag, now i want to check the o/p of php file in js. Actually i have login.php page which check login credentials in db and if credentials are correct then it will return true else it will return false, then js will check returned o/p and if o/p is true then login success message...

Ajax with Zendframework

Friends, How I integrate Ajax with zendframework.I need some good tutorials. ...

Is it possible to route a Webmethod?

I have a .aspx page with some Webmethods that I use for jQuery ajax calls. [WebMethod] public static string HelloWorld(string s) { return "Hello"+ s; } And call this with Url: /ajax/Test.aspx/HelloWorld I wonder if it is possible to route this method to another url like /ajax/helloworld/? ...

mysql count include to json object

Hi! I made a php/ajax/mysql/json script for my site, to show all the tags. If i GET the page id it will show me all the tags of that page. But! In my main page i'd like to show all tags, from all pages WITH a counter. For example if i tagged 4 pages with "ilovestackoverflow" i'd like to see in my main page "ilovestackoverflow (4)" i ...

Symfony sfFormExtraPlugin ajax error

I'm getting this error in Firefox javascript console. Does it mean jQuery UI is badly configured or is it programming error, e.g. bad values returned by ajax symfony action? I'm using sfFormExtraPlugin plugin's DoctrineAutocompleter... or trying to use it. Error: jQuery("#autocomplete_table1_table2").autocomplete("http://myurl/fr...

How to find the source of IE8 Internet explorer has modified this page to help prevent cross-site scripting

One of my customers gets "Internet explorer has modified this page to help prevent cross-site scripting" error on her website on IE8. The page has several ajax calls to the same domain + calls to standard js files outside the domain such as google analytics. How can I detect which call from the browser is actually causing it? ...

How to apply jQuery live() function to this code?

As mentioned i would like to know how i can apply the live() function to this code. This code will be inserted by javascript: <a class="link" href="url"><span>This content is hidden</span></a> This is the javascript that needs to be live: $('.link').append('<span class="hover"></span>').each(function () { var $span = $('> sp...

JQuery process form

This one is a really simple question (I hope), but as just laening/getting to grips with Jquery I apologise in advance. If I have a form e.g. <form id="form"> <input type="text" name="abc" /> <input type="text" name="def"/> <input type="text" name="ghi"/> <input type="submit" name="try" id="try" /> </form> Anf then send it via JQuer...

ASP.NET MVC and Ajax, concurrent requests?

AJAX newbie here! At the moment in my ASP.NET MVC web app my AJAX requests appear to be getting batched or queued, im not sure. No requests seem to be getting completed until the previous request has finished. How do I go about getting the requests to return independantly? I dont necessarily want someone to give me the answer but maybe s...

Simple Jquery load function work just in FF but dont work in IE and Safari

Works fine just in FF: <script type="text/javascript"> function loadContent(id,start) { $("#ContentRightBlockTest").load("cast_member.php?_type="+id+"&start="+start+""); } </script> whith onload in the body <body onLoad="loadContent('cast',4);"> ...

How to display validation after the form has been generated via Ajax

I'm struggling to find the best way to display validation messages after a form which has been generated via ajax is submitted. Let me explain better: I've got a page that starts with a few options. Based on what the user selects from dropdowns and by adding new fields, the form is created and at the end the form is submitted. The probl...

jQuery ASP.NET MVC JSON call hackable?

I have a basic JsonResult method that is being called by a jQuery $.ajax call in my view. [AcceptVerbs(HttpVerbs.Post)] public JsonResult DoWork(string param1) { // do something important return Json(); } So my question is, could this method be called/hacked and passed erroneous data? Let's say it wa...

Random image in UpdateProgress

I have a wizard control inside an updatepanel. Some of the wizard steps take a few seconds to display, so I want to show an updateprogress control while they're loading. This is working, but I'd like to show a different image (random image selected from a folder) in the progresstemplate between each wizardstep. I am able to access the i...