ajax

How to invoke .net page methods from javascript without jquery ?

I've been tryin' to use call Page Methods from my own javascript code but it doesn't work. If I use JQuery AJAX Method I can sucessfully call the Page Methods, but the problem is that I need to do this from my own Javascript code because in the place where I work we can't use Third Party Javascript Lybraries and we are building our own l...

ASP.Net AJAX WCF Authentication Services and Session Timeout

Our Web application uses the ASP.Net AJAX Authentication Services to perform login/logout. Everything works great if the login/logout actions are initiated from client side via JavaScript. Question: When the session times out how do I call the AuthenticationService.Logout function from the SessionEnd event? Looking for a simple clean...

Using jQuery for AJAX with ASP.NET Webforms

Anyone know of a link to a good article/tutorial for getting started using jQuery for AJAX calls rather than ASP.NET AJAX? I'm trying to avoid using UpdatePanels entirely in this app, which I haven't been able to accomplish in the past. ...

Random Page_Load calls on back button in ASP.NET

Hey all, I'm hoping someone has seen this before because I can't for the life of me find the problem. I'm trying to do the old "fix the back button" thing in an application and I think i have a pretty decent approach, the problem is that it relies on the application not calling page_load when you hit back and instead loading the cach...

How to get around a 'NS_ERROR_ILLEGAL_VALUE' error using Ajax?

Im just writing a small Ajax framework for re-usability in small projects and i've hit a problem. Basically i get a 'NS_ERROR_ILLEGAL_VALUE' error while sending the request and i've no idea what is happening. The HTML Page (trimmed but shows the error) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml...

Integrating "really simple history" with Rails

In trying to solve the "ajax back button" problem I have found the Really Simply History library. Has anyone tried to integrate it with Rails? It's plain old javascript so it seems like it should integrate just fine, but I know next to nothing about JS itself, so I'm not too confident in trying to do the integration without a tutorial...

Scalable/Reusable Authorization Model

Ok, so I'm looking for a bit of architecture guidance, my team is getting a chance to re-cast certain decisions with a new feature that we're building, and I wanted to see what SO thought :-) There are of course certain things that we're not changing, so the solution would have to fit in this model. Namely, that we've got an ASP.NET app...

Java Servlets: Performance

I am working on a web application in Java which gets data from servlets via AJAX calls. This application features several page elements which get new data from the server at fairly rapid intervals. With a lot of users, the demand on the server has a potential to get fairly high, so I am curious: Which approach offers the best performa...

JSMX ajax API not passing form variables to page with ie7

I have a couple of pages working with Firefox but JSMX isn't passing the form variables through when using IE7. Has anybody experienced this? ...

How do I add ajax calls to Mootools class

I have modified (very slightly) the Mootools class noobSlide (http://www.efectorelativo.net/laboratory/noobSlide/) to create a flickr style photostream. Here is the modified html (note you can see the original on the above page) print("code sample");<h2>Sample 2</h2> <div class="sample"> <div class="mask4"> <div id="box2"> <span><im...

Regex for SQL WHERE clause

For a web application I want to build a WHERE clause AND submit it to the server. There I will append it to a query. the clause will be something like LASTNAME LIKE 'Pep%' AND (DOB BETWEEN '19600101' AND '19601231 OR SALARY<35000) Can you propose a regular expression to validate the clause before submitting it to SQL Server? (Yes, of ...

Why is my asp:TreeView selected node reset when in an UpdatePanel?

I have an asp.net 2.0 page that contains 2 UpdatePanels. The first panel contains a TreeView control, when I select a node in the three view control it triggers an update of the second UpdatePanel only. This much is behaving correctly. There are two buttons on the page outside of an update panel (previous/next). These buttons trigger a...

Postback Security

I've been working with jQuery and *.asmx web services lately, and I'm trying to be security-conscious in doing so. I figure it would be possible to submit an AJAX request -- even when logged-out -- to a resource that should only be accessible while logged-in. Thus, I include special keys and hashes with each of these AJAX requests in o...

ASP.NET Page Validation

Related Article On a similar topic to the above article, but of a more specific note. How exactly do you handle items that are in the viewstate (so they are included on submit), but can also be changed via AJAX. For instance, say we had a dropdown list that was populated through an AJAX web service call (not an update panel). How can I ...

How can I clear the previous selection when an asp:TreeView is in an UpdatePanel?

I have an ASP.Net 2.0 page that contains two UpdatePanels. The first panel contains a TreeView. The second panel contains a label and is triggered by a selection in the tree. When I select a node the label gets updated as expected and the TreeNode that I clicked on becomes highlighted and the previously selected node is no longer highlig...

How to format JSON Date?

I'm taking my first crack at AJAX with jQuery. I'm getting my data onto my page, but I'm having some trouble with the JSON that is returned for Date data types. Basically, I'm getting a string back that looks like this: /Date(1224043200000)/ From a total newbie at JSON - How do I format this to a short date format? Should this be hand...

How to save the state of AJAX application using jQuery

I am just trying to dip my toes in this Ajax thing. I have a very basic question I have seen the UI plugin(http://interface.eyecon.ro/docs/drag) for jQuery, where you can drag and drop frames, stretch things, animate etc. So basically you get all the desktop features right in your web application. In the desktop world, you can save the...

Scrape a dynamic website

What is the best method to scrape a dynamic website where most of the content is generated by what appears to be ajax requests? I have previous experience with a Mechanize, BeautifulSoup, and python combo, but I am up for something new. --Edit-- For more detail: I'm trying to scrape the CNN primary database. There is a wealth of infor...

What is the best multiple file JavaScript / Flash file uploader?

Specifically, I'm looking for a client-side, JavaScript and / or Flash based multiple file uploader. The closest thing I've found is FancyUpload. Anyone have experience with it? If not, what else is out there? ...

Best practices for getting cross-site JSON responses to POST?

I'm working on an intranet with several subdomains. I have control over each subdomain, so security of cross-site requests is not a concern. I have PHP scripts with JSON responses I'd like to call from multiple subdomains without duplication. For GET requests, I can do this with AJAX and JSONP, but that doesn't work with POST requests. S...