ajax

AJAXy action accessible via "normal" request

Greetings, I have an application which contains a calendar as alternative index view for Courses (Project has_many Courses). There I have two arrows for navigating to the next/previous month, it works via AJAX. Now, that's my action for updating the calendar: def update_calendar @project = Project.find params[:id] @date = Date.pars...

Storing the result of a dynamic text field into separate database fields

I am working within the confines of a php based CMS like system, which defines custom form fields that can be used when making a new page. I have two tables in my database, one called people, which has three fields, firstname, middlename and lastname, and a second table called orders, which also has firstname, middlename and lastname fi...

taking text from an autogenerated autocompelte field, and pushing it back to php with jquery

I have a google suggest type of input field, which displays records)the result of an SQL query) as I type input. I can then select one, and what I select becomes the content of that field. I would like to know how to push the content of that variable back to my PHP form using jquery. I am working in the confines of phpBMS, a type of CM...

When I was trying to add Ajax AutoComplete using Ajax Toolkit in VS 2008, I got an error. Please see the description below.

I'm having an error here : Please go through this and tell me what's the error. Server Error in '/WebSite1' Application. Could not load type 'System.Web.UI.ScriptReferenceBase' from assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Description: An unhandled exception occurred during th...

modifying the POST data sent to a limited PHP form.

I am using a CMS-like system, phpBMS, which defines certain fields and ways to generate a form. Here is the sample form provided. It is possible to include javascript files and incorporate script into the form as well. I would like to know if it is possible, within the confines of the framework I am working with, to send additional dat...

JQuery Ajax error

I am posting some form values through ajax to a PHP script. The PHP echoes 1 if it's successful and 2 if not. The PHP seems to be working ok but I am being redirected to the url in the javascript and shown the number 1 on a blank page instead of it being echoed back to the ajax request. This is my javascript, can anyone see where I am ...

How to send dinamically generated variables via ajax, using post method.

Ok, the title isn't so easy to understand, i think. First fact: I'm new to ajax. Now on with the show :) I've an html page wich contains a table, some rows and inside any row i checkbox. When i select a checkbox i will to delete the message BUT only when i click a red-button-of-death. Example table    tr(unique_id)       td [checkbox...

Content of form element not being saved to database while others are

I am working with a CMS like system, phpBMS, which defines a certain way of making forms, and defines the form elements to be used in such forms. This is an example of the form template, and these are the fields that are defined. Generally, it is pretty simple. If you have an inputField with the id of say, 'name', the content of that f...

Is this php file (with an image) being loaded every time the page is visited?

I wanted the images to be loaded only when the user click the link: <a id="showcase1" href="showcase/showcase1.php"><img src="images/showcase1t.png"/></a> So I placed the images in another php file and call the using ajax and fancybox: showcase1.php: <div id="inline1"> <img src="images/showcase1.png"/> <a href="http://studyatbest....

Sending data to server (ASP.NET MVC) with Ajax(jQuery) through JSON

After learning about jQuery and the whole AJAX thing, I got very excited. I decided to completely replace my forms with just input fields. And the data is sent to the server when the '<'input type="button" /'>' clicked. // JavaScript function submit() { removeInfo(); btn = $('#button'); $('#button').replaceWith('<img id="theimage" src...

Spring 2.5.x MVC portlet with annotation & AJAX with jQuery+JSON Error: Content Type cant be set to json...

Hi all, When i try to use spring 2.5.x DispatcherPortlet with liferay to use Ajax, i am getting this error. I have configured it using annotations. At class level i used following annotations, Code for controller... @Controller @RequestMapping("VIEW") public class MyController { @SuppressWarnings("unchecked") @RequestMapping(method...

asp / asp mvc - how to trigger automatic client refresh

There are 3 clients that looks at same data instance, one of them edits data and submits on server, what are the mechanisms to make the other two clients instantly see the updated data ? I am thinking of some AJAX poll from time to time that will force page reload if there are changes or some page expire , is there anything else ? ...

How to use PropertyProxyValidator with ServerSideValidationExtender at runtime

I have added a StringLenthValidator attribute to the name field of my CSLA business object, with that I am trying to use the AJAX PropertyProxyValidator to server-validate the string inputs for that name field. I was able to create the control at run-time and it worked fine, but it's not using the PropertyProxyValidator to report the Er...

Return int from MVC Action with Ajax.BeginForm

Whats the simplest way of just returning an int from an Ajax MVC Action call? I am currently trying: public ContentResult Create(MyModel model) { return Content("1"); } using (Ajax.BeginForm("Create", new AjaxOptions { OnComplete = "function(data) { alert(data); }" })) I get alert [object Object]. How...

Flash won't AutoPlay on AJAX Load in FireFox

I have a music site that uses a flash program to play music. When a song is done playing, the flash program uses getUrl to call a JavaScript (jquery) function that reloads part of the page using AJAX. It reloads the part of the page where the flash player is, which then selects and starts the next song. This works fine in IE and Chrome....

ASP.Net MVC - Refresh table data every 5 seconds

I am in the design stage at the moment and was wondering how I would update a table every 5 seconds. My table will display read-only data returned from my model. Normally my view would just have <table></table> HTML and then a foreach loop to write out the data. However because I want to refresh this whole table every 5 seconds I am u...

jQuery get() method - not sure what it does with parameters it receives in this example

Hey all, I read from the jQuery website, that get() loads data from the server using a HTTP GET request. But this explanation doesn't suffice, such as for the example I provide below: Just to give some context for my question, when we assign the value of two parameters to a variable expoptions: var expoptions = $.extend(defaults, opti...

HTTPS and Ajax, strange behaviour after tests.

Recently I've been carrying on a series of tests to see how HTTPS behaves with normal requests and Ajax requests in different situations. Here is the tests results (I've been using jQuery to do the ajax calls): When going from a page with Https to a normal Http one, will a popup appear to the user?Result: the ipod touch (IPT from now o...

How to bind a CFC directly to a select menu?

I'm trying to create a select menu where one can select a department and then select employees in that department. Related Selects... Ok here is the problem...I need to bind directly to the cfc because binding like this: <cfselect name="people" bind = "cfc:test.getPeople({department.value})" /> DOES NOT WORK. It does nothing... here ...

How do I select a specific dynamically-generated element with Prototype/JS?

Hi -- I'm looping through items from a database via PHP, attempting to call in an external form to edit each item when clicked. I've written Javascript based on the Prototype framework that gets me mostly there. However, when attempting to select the parent element of the clicked item, after the first successful edit, subsequent edits fa...