ajax

Security and Cross Domain with ASP.NET MVC JsonResult and jQuery

I am using asp.net MVC to develop an application that will have ajax interactions. I have JsonResult methods in the controller returning my json serialized data. So for example when a request is made to http://somesite.com/findwidgets/ mvc serializes the data as json and sends it back. I am using jQuery on the client side to handle the...

What is the best way to handle style tags when loading HTML with AJAX in IE 6 or 7?

Our AJAX framework works such that it sends back a snippet of HTML that might contain a tag. We then take that snippet of HTML and set it to be the innerHTML of an element. In IE 6/7 it appears to ignore the tags and so the returned HTML isn't styled properly. I'm wondering if other people have run into similar problems, and if so, ...

Does jQuery have an equivalent to Prototype's Element.identify?

Is there a built in method or defacto default plugin that will let you automatically assign an unique ID to an element in jQuery, or do you need to implement something like this yourself? I'm looking for the jQuery equivalent to Prototype's identify method Here's an example. I have some HTML structure on a page that looks like this <...

ASP.net Modal Pop up extender and DropDownlist autopostback

Hi all. I have a gridview control where if the user click on the auto generated edit button. A window will pop up using modalpopup extender with a drop down list for user to select. The problem is the selectedindexchange event will not fire if autopostback is set to false but if i set the autopostback to true. the pop up will go away wi...

<select> ajax calls

Hey, I am using jQuery on my site and i have a update section on my project and I have three dropdowns: Completed? Hours Worked Who worked on this project? I am trying to create an ajax call using jQuery to when I select it, call a $.ajax() and send the data to my php page to update my mysql database. I am guessing I could do this:...

dropdown list selectedchanged event is not firing

I am using Ajax enabled page and I did't use any control in this page. Even then SelectedIndexChanged event is not firing. I have added items from database, there is no repeatation and also set autopost back propety="true". I want to add items from database when select one item the selection always shows first element and selectedchanged...

making a constant heading - css problem

I have an AJAX application which has used CSS divs to create panels on the screen, which are loaded separately and in succession, depending on what was loaded before it. The bottom "panel" is a table showing a list or records from a database. At the top of the database is the name of the table, and I would like a way to have it be always...

Best way to implement save field in DataGrid when user tabs out or field looses focus

I have a page with .Net grid view with about 12 text fields per row and about 250 rows. Right now there is a save all button at the bottom of the page that sends all the fields 12x250 to the server where they are entered into db 1 by one. Which ends up being very slow and some times does not go through at all. I didnt come up with this ...

Jquery Live Validation

Hello Everyone, After having a search around I could not find exactly what I want, I am looking to validate a form client side using the Jquery library and some form of validation plugin. I was hoping that some one could advise me on whether there are any validation plugins out there that do not use generic error messages, as my form ...

POST versus Ajax call

Now that most modern browsers support AJAX and client-side requests without performing a POST, what is the role of POST (form post)? Are there situations or general rules when a POST will always be preferred to a XmlHttpRequest? All that POST is doing is placing variable key value pairs inside the server head. The advantages of POST I ...

ASP.NET: How to access repeater generated elements from javascript?

i have a series of rows that are generated using an asp:repeater: <asp:repeater ID="itemsRepeater" OnItemDataBound="itemsRepeater_ItemDataBound" runat="Server"> <itemtemplate> <tr> <td> <asp:HyperLink ID="linkView" runat="server" Text="<%# GetItemText((Item)Container.DataItem) %...

onclick event not working after ASP.net AJAX save.

Hi, I have an gridview that I am adding onclick events to a checkbox column via: cb.InputAttributes.Add("onclick", "checkClick()"); everything works fine, but when the user clicks the save button on the form, (which is within the updatepanel), suddenly the onclick event of the checkboxes stops firing! Is this a problem with the A...

Calling a jQuery function with JavaScript

Dear all I am using JQuery and javascript, I need to Call the JQuery function inside my Javascript. My jQuery: function display(id){ $.ajax({ type:'POST', url: 'ajax.php', data:'id='+id , success: function(data){ $("#response").html(data);...

How do I fix shocking/lagging movement in this ajax based multiplayer example?

EDIT: important, examples must be used in firefox 3+ due to html5 elements. Hi there, I'm trying to find out more about the potential of AJAX in a browser based multiplayer game. To do so, I'm testing out movement with AJAX and a space shuttle as a character. This space shuttle is rendered with canvas (html5). My first version is read...

Rotating images, AJAX-like, in Ruby on Rails

I'm working on a site where I'd like to cycle images, similar to a slideshow, while the user is on the page. I've searched around and haven't been able to find a lead. Has anyone done this with Rails and the Javascript frameworks it supports? ...

Catch exceptions in jQuery

Hello, I have the following code: <script type="text/javascript"> $(document).ready(function() { $("#Save").click(function() { $.post("url", { "data": "data" }, function(data) { alert(data); }); }); }); </script> I'm testing this script, an...

Upload File Directly to S3 with Progress Bar

Relating to this question, http://stackoverflow.com/questions/117810/upload-files-directly-to-amazon-s3-from-asp-net-application, is there any way to do this and have a progress bar? ---- EDIT ---- Two days later and still no luck with a direct way. Found one thing that looks promising but not free: http://www.flajaxian.com/ Uses fla...

When would you use XML over JSON for Ajax?

Recently, many programmers and that includes me, have taken the X out of AJAX, and by default use JSON as the protocol format. However I'm trying to think of some places where XML would be more appropriate as a protocol format, that doesn't include SOAP (because SOAP could theoretically be done with JSON anyways). Note: I love me XML fo...

snap.com snapshots disobeys Same Orgin Policy?

I'm trying to write some Javascript that shows data based on an HTTP GET request to a server on a different domain. From what I've read, this is made tricky due to the SOP (Same Origin Policy). I'm curious how snap.com "Snap Shots" (webpage previews) work. Here is an example page: http://premshree.livejournal.com/66129.html Could som...

Can you install Visual Studio 2008 Pro and Team System side-by-side?

Hi guys I have a couple of question for you.. Can I install on the same machine visual studio 2008 Professional and Team System ? the reason is because with Team System already installed I receive an error when I work with ajax and jquery: Error 1 Error updating JScript IntelliSense: Client-side script IntelliSense information was n...