ajax

retrieving data needed for ajax call for multiple lines

Hi, I have a table with many rows. When u click on these rows they open up more detail about the row you click in. This could be based on an int or string. I have wired jQuery up to anchor tags on each row which the user will click on. However previously when using javascript inline you would pass something like this: <a href="javascr...

Jquery , Ajax and Live Function issues....

Hi y'all.... got a question.....!! i'm aware that if u r loading a div within a page with form elements using ajax, then u gotta use the live function to add events to those elements that were not in the dom tree.... and also i read in the jquery website that live function does not currently support focus, blur etc.... my question is...

Is DWR a MVC ??

I started reading about DWR few days back. Its strikingly different from the usual web-app technologies I have worked on till date (read as huge amount of Struts). One question that invariably comes to mind is can DWR really replace MVC ? One may argue about the usability of MVC but the more mature frameworks like Struts and JSF give lot...

Database query and countdown with Ajax in ASP.Net ~ Hard Problem

Hi guys, I asked a several time but must ask again, beacuse I don't know what to do: On my Page I have an auctioneer system. Every second I must: Get Information if any bidder bid on it -> Database Query Countdown the timer minus 1 second Update a few panel with information if there is a new bidder (history that is shown, bla) My ...

Javascript: how to override public method in some class?

I have such JS class: SomeClass = function { // some stuff that uses initRequest this.initRequest = function() { if (window.XMLHttpRequest) { return new XMLHttpRequest(); } else if (window.ActiveXObject) { return new ActiveXObject("Microsoft.XMLHTTP"); } } ...

JQuery, AJAX, PHP, XML; Image overlay script stops working on callback content.

A button click fires my function that fetches image data via an AJAX-call: $("#toggle_album").click(function () { album_id = $("#album_id").val(); $.post('backend/load_album_thumbnails.php', { id: album_id }, function(xml) { var status = $(xml).find("status").text(); var timestamp = $(xm...

asp control not firing events, if a user control with updatePanel is in the page

Hi, I have a page with a user control which uses UpdatePanel, if I insert after this control an Asp:Button, the onClick event of the asp:Button is not fired. I tried to insert an Asp:HyperLink but the in line code to call a method (takeNavigateUrl()) returning a string is not called: <asp:HyperLink ID="AddOrg" Visible='<%# userH %>' Tex...

MVC Ajax - Parsing Form Submission Return Data

I am using MVC Ajax to do a form submission. What I can't get right is to get the Action on the server to return a partial view to the browser. The form submission looks like this: <% using (Ajax.BeginForm("Add", "Example", new AjaxOptions { HttpMethod = FormMethod.Post.ToString(), OnComplete = "widgetAdded" } )) { %> This hits the ...

PHP: Prevent Direct Access To File Called By ajax Function

I'm calling the php code from ajax like this: ajaxRequest.open("GET", "func.php" + queryString, true); Since it's a get request anyone can see it by simply examining the headers. The data being passed is not sensitive, but it could potentially be abused since it is also trivial to get the parameter names. How do I prevent direct acc...

ASP.NET MVC AJAX Problem

So I have a simple voting feature on my asp.net mvc page. My index page is loaded with all the posts in the database. A user can vote yes or no as to whether they liked the post or not via links within each post. So in my database I have a table called posts and there are two fields in that table named vote_yes and vote_no that track ...

Changing highlighColor default option AJAX - Ruby on Rails

I changed the highlightColor and highlightEndColor in the /public/javascript/controls.js file but it isn't changing when the AJAX effect runs. What am I doing wrong? ...

Error: [Exception... "Access to restricted URI denied" .... while calling $.ajax method

I am getting this error while calling $.ajax methods Error: [Exception... "Access to restricted URI denied" code: "1012" nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)" location: "xxxxxx" Line: 19"] Source File: xxxxxxxxx Line: 19 I am passing URL paramter as http://www.xyz.com/myscriptfolder/myfile.js . The $.ajax method works well w...

How do I make a Textbox Postback on KeyUp?

I have a Textbox that changes the content of a dropdown in the OnTextChanged event. This event seems to fire when the textbox loses focus. How do I make this happen on the keypress or keyup event? Here is an example of my code <asp:TextBox ID="Code" runat="server" AutoPostBack="true" OnTextChanged="Code_TextChanged"> ...

Help with my first own object in JavaScript/jQuery

I have written a PHP script that checks whether a domain is available for registration or not. To automate the process, I have also written a js script that automatically sends AJAX calls to the PHP script and tells the user whether the domain is available or not, without submitting the form: $(document).ready(function() { functio...

how to set time in ajax slider control's maximam or minimum value properties? in asp.net

i want to set property of ajax slider control's maximum or minimum properties?? in this two properties ...it take only integer value but i want to give date value to that properties.. ajex toolbar is very new to use.. help to get out this.. ...

Pass variable from module to theme template when using drupal_render

So I need to AJAX-reload part of a page, and so I'm building a little module to just return drupal_render($node->content['the_field']). Which seems to work fine, it's returning the same output as what was originally on the page. The problem is that I need to send a parameter from the module to the theme layer to change some imagecache p...

Converting from prototype to jQuery - javascript / ajax

I'm looking for some help converting this from prototype to jQuery. I'm doing some free work for a charity and updating a system they use to track and assign volunteers. I've managed to convert everything else so far, however, this has me stumped. Please excuse the spelling mistakes, the code is verbatim what I've been given. I've had ...

gwt request (via RequestBuilder) causing response to be treated as JavaScript

The following code RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, URL.encode("http://localhost:8080/xxxx/yyyy")); try { Request request = builder.sendRequest(null, new RequestCallback() { public void onError(Request request, Throwable exception) { } public void onResponseReceived(Req...

Jquery history - Ajax navigation - How to make url request and search request?

I'm using the Jquery history exemple: mikage.to/jquery/jquery_history.html I don't really know how to make a search query using a search box form and how to create a search link like: mysearch.php?search=search+term&submit=1 Normal link are usually as follow: load 3 It's probably adding code to the function in the main page but i'...

Javascript Textarea Monitoring / Ruby Delta Calculation

I am working on a system which needs to keep constant (and I mean constant) track of browser side changes to a textarea via AJAX requests to the server. Ideally, every character would be stored as a row in the database, along with the position it was inserted and a timestamp. I am hoping that there is either a good Javascript library th...