ajax

Object doesn't support this property or method validation.js line 124

hey , I know that a lot of people ask this before , am using really easy field validation with prototype , its very nice script , but the problem that i use this thing in an ajax form . i know that your answer will be to extend the elements in my js code , the problem is not in the validation.js code itself but in another function tha...

Ajax response empty string when triggered via form onsubmit in firefox, but working fine in internet explorer and opera (works in firefox if send by submit button instead of form onsubmit)

Ajax response empty string when triggered via form onsubmit in firefox, but working fine in internet explorer and opera (works in firefox if send by submit button instead of form onsubmit) I am simply calling a php file with the ajax GET and the php file response with - echo $response = "something"; . Then the response value is alerted...

AJAX Response not working in FF

Hi all, I have a bit of code which alerts the $response from a php code in IE, but for some reason it doesn't work in FF.. Here's the code: function contactfunction() { var url = "scripts/php/cbb.php?pname="; xmlHttp.open("GET", url, true); xmlHttp.onreadystatechange = updatecontact1; xmlHttp.send(null); } function updateconta...

Feedly is based on what ajax framework?

Feedly.com is kind of cool. Can you guys give me some clues about it is developed based on what ajax framework? ...

How to display a string, based on number in a form with JavaScript

I have the user entering a post-number in a form-field, and then I want to display the town with that post-number. I have the server-side function set up, it takes a variable from the URL and returns a plain string. As I see it, I need to get the variable from the form-field afterthe user has written it and the focus has left the form-...

php script/program to view/edit/copy/paste XML data in grid/table format?

Anyone know of any software like this? I've found many datagrids that can handle XML, but none that allow copy and pasting or cloning/duplicating of row data. ...

IE6 crash when using HttpWebRequest and Css

My web application is Asp.NET 2.0 and in one page, i'm using HttpWebRequest to load some content into a container page. This works well within Firefox, IE7/8, Safari but it crashes IE6. It hangs or shuts down. The content page i'm trying to read is called tmp.html and if i call it directly (using IE6) then it seems ok. The html code ins...

show jquery thickbox when submitting form ?

I have form to upload images.. what i want is to process the form by ajax and after success show jquery thickbox.. ...

WinForms, WPF, Silverlight, Asp .NET, MVC, ... What to choose?

I've been programming for over 15 years and started with .NET 5 years ago. We built our framework for windows data-oriented apps and it is a quite stable. At this point, we are considering to make a new platform. But, I am a little bit confused with all these new technologies. We considered CAB and SmartClient technologies but there are...

How do I change YUI Autocomplete textfield Value population Options?

Data: JACKSON, MS 39212|39212 BAINVILLE, MT 59212|59212 CROOKSTON, NE 69212|69212 COLUMBIA, SC 29212|29212 SPOKANE, WA 99212|99212 Code: <form method="GET" target="_blank"> <fieldset><legend>remote example</legend> <label for="myRemoteInput">Enter a state:</label> <div id="myRemoteAutoComplete"> ...

See Page Source on a ajax based implementation

I am having a set of pages where in I am using JQTouch jquery library. How can I see the page source after an Ajax call. I suppose the DOM gets replaced, but when I see the page source I am not able to see the updated set of contents. This is hampering my debbugging. Does anyone know of some way to see the page source.... ...

When to use WCF and when to use ADO data services in ajax websites?

I am really confused about when to use WCF and when to use ADO data services in my website ajax calls. I always make my javascript code call a webservice to get data from server "ajax". But while reading in both WCF and ADO data service, i am not sure when to use each and when not use?, and if they replace each other in my case? or can...

How do you deal with authorisation on actions that return results other than ViewResult?

I am using a custom authorization filter on my ASP.NET MVC controllers that redirects the user to a url other than the login screen if they fail authorisation on a particular action. This is ok for actions that return views, but many of my actions return other result types such as PartialResult or JsonResult. My current filter looks li...

AJAX problems in WebKit browsers

Hi. I'm developing an AJAX site. So the problem is browsers (Safari, Chrome) do not show spaces in AJAX-loaded HTML content after tags like Strong, Em etc. Then I added a doctype to the AJAX output. Everything was fine, there were all spaces, unless I tested the site in WebKit browsers. When I loaded the page in Safari, I got error: ...

Ajax callback to refresh/reload part of a page

i have a a tree structure of folders and documents. There are options to edit, delete, move and add new folders and documents. When the user do these actions I will have a jquery ajax call to update the database. The question is how to refresh the tree structure when the update is done? it is not in an iframe or frame. i don't want to ...

ASP.NET MVC and ViewState

Now I've seen some questions like this, but it's not exactly what I want to ask, so for all those screaming duplicate, I apologize :). I've barely touched ASP.NET MVC but from what I understand there is no ViewState/ControlState... fine. So my question is what is the alternative to retaining a control's state? Do we go back to old schoo...

jQuery to take url with variables from a link and send it via Ajax

Hello, I can add a product to cart via GET with this link: <div id="add"><a id="add-link" href="http://localhost/catalog/cart?product_id=8&amp;boutique_id[]=36&amp;func=Module::Cart-&gt;add"&gt;Add to Cart</a></div> I want to use jQuery Ajax to stay on the same page (if JS is enabled). I have crapped out the following, but of course...

onSubmit not triggered on form loaded with AJAX

Hi, I use AJAX to load an external HTML file, containing a form, into another HTML file. The form HTML looks something like this: <form id="..." name="..." onsubmit="postUsingAJAX(x,y,x); return false;"> Loading works fine. However, the onSubmit code is not executed when the form is submitted, same thing with onClick handlers on the s...

jquery.form plugin and jquery.validate not .. validating?

I have been trying to get these two plugins playing well all day. Currently if you hit submit, it will submit the empty form, and if you hit it again, it will validate (and not submit). I feel I am missing something obvious. $(document).ready(function() { $('#form_contact').submit(function() { return false; }...

remote_form_for in rails with the :with option

Is it possible to use the :with option with remote_form_for? It works with link_to_remote, and the api docs seems to indicate :with should work with any of the remote_ methods. Here is the code I'm using, and output it's producing: Link_to_remote (works): = link_to_remote 'ARGH', {:url => {:action => 'load_item', :id => @policy.i...