ajax

ASP.NET MVC wrong url in ajax calls

Hi. I have wrong URL in my ajax calls. $.ajax({ type: "POST", url: "Home/GetDetails", ...... }); HomeController has action GetDetails(). All works fine, when I load page with URL htp://localhost/projectName Ajax URL is htp://localhost/projectName/Home/GetDetails But after loading htp://localhost/projectName/Home/Index ...

converting XMLHttpRequest to JSONP

help, I need to change this code to support remote domain access: document.write(url); var http = getHTTPObject(); http.open("GET", url, true); http.onreadystatechange = function() { if (http.readyState == 4) { parseData(http.responseText); } } http.send(null); ...

jQuery code failing silently in IE

I have a page which works fine in Firefox and Safari on OS X and Chrome on Windows. The expected behaviour is that when you hover over one of the blue boxes an icon will appear to indicate whether or not the box is editable. If it is editable (pencil icon) then clicking it should bring up an overlay with an editing box. In IE8 (and bel...

In php, is it better to use includes or not when a controller class is being used to talk to javascript?

I have a javascript file that communicates to a controller class, which in turn delegates which function to run to a transactions class. Is it better to have the transactions class broken up into multiple smaller files and then in my switch statement include which ever smaller file i need? or should i have all my transactions in one fi...

Selecting Multiple Options creates Multiple Inputs

I have a select field in a form that allows you to select multiple options. I need to create a new input textbox for every number of options selected, automatically. For example, if you select on option in the select box, one input will appear below it. If you select 5, 5 inputs will appear below it. I'm not sure if this can be done ...

Asynchronous UpdatePanel within WordPress Post

I am demoing bit of JavaScript in a WordPress blog post that randomly produces some content. I'd like the user to be able to click a button and regenerate new random content via the script, and I'd like to do it asynchronously. Does anyone have experience getting AJAX elements to work WITHIN WordPress blog posts? Or is there a simpler me...

Executing Javascript functions from an AJAX - HTML response.

I have a web page that displays comments, and users can click a 'Flag' link to report an inappropriate comment. When they click the Flag link, I use AJAX and innerHTML to display a dropdown box underneath the comment with a reason code, e.g. Spam, Offensive, Unrelated to topic, etc., as well as a Cancel button. If the user clicks Submi...

HTML5 canvas with Processing vs. Pure Javascript

I have some data visualization animations I want to do in a webapp I have and am considering different alternatives I have. It will basically just be moving around text strings in a pretty way. I am using the Mootools framework and the Mootools FX library basically have the stuff i want, but I want to manipulate around 100 text strings,...

Prevent entire php execution on ajax request

I have an ajax script (jquery) that asks index.php to output generated variables. This index.php is also the file where the whole page is generated and initially populated with data. How can I only let the getNewData() function when ajax requests this file. Right now it duplicates the entire page and outputs it so there is two of everyth...

Ajax pop up box using Ruby on Rails

Hi, This is a pretty basic question but I can't find a good answer for it. I have a page in my Rails app where there are many objects that can be 'flagged'. Clicking the flag button should display a little box with a confirmation, little form, etc. The trouble is I can't figure out how to do this using RJS templates. I've been usin...

Php Chat implementation

Hai I want to build a web site containing chat. i am working with PHP, I want a code to implement a chat with php .Any one help me to do this? I know Ajax . i don't Know any other languages... ...

Noobie Jquery Question - I found a bug in my script, not sure how to fix it

Hello! Thanks for your help on my last noobie jquery question and since you done good, I have another for you :) The script below allows me to perform some simple AJAX by retrieving some static markup from another HTML file and insert it into my homepage. I'm experiencing a bug that I think is related to the magic of asynchronicity, b...

Wordpress search goes to mainpage

I have made my search to work as Ajax request. So when user clicks search, my javascript will catch that submit event and loads content from href of search form submit, but my problem is that I get mainpage where search results are inserted. How can I make search page to contain only search related html? ...

DIV innerHTML redraw causes items that were hovered to go back to normal

I have a DIV container that draws a list of bars (al container 'onmousemove' and 'onmouseout' events). When an item is hovered, it changes the images of the item, and back again when the mouse is moved away. Now, I have a looped AJAX request that gets the new information for this DIV container and re-draws the innerHTML every 3 seconds...

How do I add different values to a Ajax Slider control?

I currently have a slider control that looks like this: <cc1:SliderExtender ID="sliderTest" runat="server" Enabled="True" TargetControlID="txtBoxTest" BoundControlID="lblTestSlider" Decimals="0" Maximum="10" Minimum="0" EnableHandleAnimation="true"> </cc1:SliderExtender> <asp:TextBox ID="txtBoxTest" runat="server"></asp:TextBox> <...

Using PerformanceCounter through an ASP.NET AJAX call

In our office we have a 40" LCD mounted to the wall that runs a full screen instance of Firefox that in turn hosts a series of modules. Each of these modules is a self contained DIV with an AJAX interface (through jQuery) to the server to perform it's function. One of these modules monitors our servers CPU, memory and disk usage. On th...

Is my code Jquery or AJAX?

I heard that AJAX use xml concept. But I had some doubt that whether the following code is JQUERY or AJAX. Find it for me. Give me differences between Jquery and AJAX $(".changepass").click(function() { $(".loading").show(); $(".block1").load("views/changepass.template.php", function(){ $(".loading").hide(); }); return false; ...

Javascript, Ajax, load data from DB dynamically

Hello, I have for example ASP.NET site with textbox, button and many other controls. When user click on button i want to retrieve some data(string,number) from DB(MSSQLServer) and show these data to user without postback(ajax). How can i do this? Thanks ...

How can I use the jQuery Round Corner plugin to make round corners?

I need a round corner on my website. I'm fairly inexperienced with jQuery and JavaScript in general; what's the proper way to load and call this plugin? ...

WebAsyncRefreshPanel vs Ajax UpdatePanel

Is there an advantage to using the Infragistics netadvantage WebAsyncRefreshPanel vs the Ajax UpdatePanel? or vice versa? ...