ajax

Rails AJAX: My partial needs a FormBuilder instance

So I've got a form in my Rails app which uses a custom FormBuilder to give me some custom field tags <% form_for :staff_member, @staff_member, :builder => MyFormBuilder do |f| %> [...] <%= render :partial => "staff_members/forms/personal_details", :locals => {:f => f, :skill_groups => @skill_groups, :staff_member => @staff_member} %...

ajax php variables in javascript

Hello, I have the below code, which was previously working fine: var xmlHttp var layername var url function update(layer, url) { var xmlHttp=GetXmlHttpObject(); //you have this defined elsewhere if(xmlHttp==null) { alert("Your browser is not supported?"); } xmlHttp.onreadystatechange = function() { if(...

Can entire page be developed out of ajax in asp.net 3.5?

My requirement is to develop a page with 4 sections, which cannot have a postback. Section 1. Content which can be changed on user click Section 2. List of users viewing the page online (Auto update when user leaves or visits the page ) Section 3. Chat for the users online Section 4. Rating the content and other functionality for Sectio...

AJAX calendar extender display issue in Safari

Ok, this is not a CSS issue, I removed all styling from the page. This is a calendar extender that has a target id of a textbox and the popupbutton is the same text box. The month name is displaying lower than the days, so it's not usable. it's fine in IE. I am using Safari in Windows Vista. Does anyone know what is causing this...

Catching 302 FOUND in JavaScript

I use jQuery to make an AJAX POST request to my server, which can return HTTP response with status 302. Then JavaScript just sends GET request to this URL, while I'd like to redirect user to URL in this response. Is this possible? ...

Complete AJAX feedback

I build JQuery/JS/PHP/mySQL app with DB records management and need to provide reliable & complete feedback to the user on AJAX calls, modifying back end DB records. The problem IMHO is $.ajax success: and error: functions indicate just AJAX transport layer success and not the whole process. What if BD modification fails? How can one pro...

htmlspecialchars and json encode problem

I am trying to format some bad html to output into a pop window. The html is stored in a field in a mysql database. I have been performing json_encode and htmlspecialchars on the row in the php like so: $html = htmlentities(json_encode($row2['ARTICLE_DESC'])); and calling my makewindows function, which simply takes the html as a para...

How to return XML in ASP.NET

This is a very basic question. I'm just on my mission to learn ASP.NET (C#). I've done classic ASP and PHP before. For this project I have ASP.NET 2.0 at my hands. I have a Web Form that has a jqGrid Datagrid that I want to feed XML data via AJAX. jqGrid is not the problem here, though. The "problem" is the approach that I should take ...

problem in ajax hyperlinking

Dear All, I have problem in giving ajax functionality to hyperlink, I have Link.html & GetCustomerdata.php. The main function of HTml is send the data to getCutomerData.php and shows flash as "success". And also I do not want hyperlinking <a href="#" instead I need in terms of <a href=GetCustomer.php?id=<format> Please anyone h...

jQuery not parsing JSON properly

I have a problem. I built a script to make a request to an internal link that sends back a response. This is what the script looks like: jQuery.get(callUrl, function(data){ console.log(typeof data); jQuery.each(data.items, function(i,item){ console.log(i); ...

PopupControlExtender question

Hello there I'm currently playing around with the PopupControlExtender in the ajaxToolkit and can't quite get the functionality I want. I'm trying to display a free floating "help" panel for an input form. Once the user presses the help button on the form the pnael pops up and displays no problem however once I click back on the main ...

AJAX delete - using jQuery

Hey, I have a simple cart page that displays items that are in someones cart, and having it display via an ASP while from my table. I have a column where a user can delete an entry. I have the ASP working properly, now I am trying to add some AJAX in to it. I have the following code: $("img.delete").click(function() { var id = $('#i...

How do I use multiple Template Toolkit TTSite views on a Catalyst site?

I use Template Toolkit to generate views of pages in Catalyst. To do some basic Ajax, I want to have some output pages not use the TTSite style, but a much more basic structure. Do I put something special into the stash to use a .tt2 file without the header/footer/etc that automatically comes with the rest of my templates? (site gener...

Setting ajax url for jQuery in JS file using ASP.NET MVC

When doing a Ajax call to an MVC action currently I have my javascript inside the View, not inside its own JS file. It is then very easy to do this: var xhr = $.ajax({ url: '<%= Url.Action("DisplayItem","Home") %>/' + el1.siblings("input:hidden").val(), data: { ajax: "Y" }, cache: false, success: function(response) ...

ASP.NET - Ajax requests with jQuery

Hi, I've got this textBox which triggers off an ajax request using jQuery: <asp:TextBox ID="postcodeTextBox" runat="server" Text='<%# Bind("POSTAL_ZIP_CODE") %>'> $(document).ready(PageLoad); function PageLoad() { $(container + 'parentProjectTextBox').change(GetProjectName); } function GetProjectName() { var projectNumber = ...

JSON parameters auto. convert to lowercase when ajax request made to MVC action method?

Would anybody know why my parameter is being "converted" to lowercase when it hits my ASP.NET MVC controller action? I can only assume it is being converted as looking at data value just prior to the ajax request it is in correct casing, but then when debugging my action method within .NET during the ajax request and checking the incomi...

JQuery Return Links Not Working When Ajax

JQuery Return Links Not working, Dear all I have Used JQuery and basic ajax feature. My JQuery Returns the Links from Links_ajax.php I giving the code samples. GetCustomerData.php has <html> <script type="text/javascript"> <script src="ajax.js" type="text/javascript"> $(function() { .......

.net Accordian Causing me Problems

I had a bunch of controls that I displayed, hid, enabled and disabled based on actions in the web page. Everything worked until i put them into an accordian. Now I can't get the Javascript to be able to update their state. I have a small example this is the Javascript <script type="text/javascript"> var ctrl = document.getElement...

How to turn off "periodically_call_remote"

I have periodically_call_remote updating a div (main_div) in my web app. This main_div contains links that the user can click that invokes an action that overwrites data within main_div. My problem is that the timer is running on the periodically_call_remote function and even though the user has navigated away from the page, that functi...

AjaxHelper is not working

I am working on ASP.NET MVC. in order to use AjaxHelper, I inserted two javascript files in the site.master as following. <script src="../../Scripts/MicrosoftMvcAjax.debug.js" type="text/javascript"></script> <script src="../../Scripts/MicrosoftAjax.debug.js" type="text/javascript"></script> then I used AjaxHelper in view pages, but ...