As you know, when you upgrade from Rails 2 to 3 you replace this:
link_to_remote "more", :url => {...}
with this:
link_to "more", {...}, :remote => true
But how do you handle the :update option in link_to_remote? In Railscast #205 Ryan Bates demonstrates link_to with :remote and a server response that includes JavaScript code to up...
Dear,
I'm a bit stuck with the following situation:
I'm using an ajax call to submit a form, i use the form values to do some 'query' in django. When this happened and i got the correct queryset it delivers me an HttP response in the form of a csv. I setted up the headers and all stuff needed to get the 'save file as' window... unfortu...
I have the following function in a much larger script that loads translations from a php file:
function loadLanguages(language){
var data = new Object();
data.language = language;
var dataString = $.toJSON(data);
var langSt = $.ajax({
url: "/VID/ajax/loadtranslations.php",
data: ({data: dataString}),
async: false
}).responseT...
Hi folks!
I have an AJAX call in my jQuery/PHP app. It needs to send some data to a PHP script to process (I have this part working fine).
My jQuery variable:
var form_data = {
urltitle: '<?php echo $urltitle; ?>',
subscribe: $('#subscribe').val(),
comment: $('#commentbox').val()
};
This works fine, the PHP script reads the...
Hi everyone! I have next situation: I open ModalWindow and show in it several Panels by clicking on button - and I need to attach some JavaScript on viewing concrete Panel. How can I do it?
I tried to add Behavior on my Panel:
add(new AbstractBehavior() {
private static final long serialVersionUID = 1L;
@Overri...
I am using the MVC Ajax.BeginForm("LogOn", "Account", new AjaxOptions { UpdateTargetId="updateajax" }) <div id=updateajax/> so it only updates to that area. The login form is the ajax.beginform. But can you cancel the AjaxRequest inside the controller. What I wanted is that when I am loggin in the ajax, it will only update the validati...
When users want effects to happen between page loads (ie, old content fades out then new content back in), I typically build the site as follows:
index.php, about.php, etc...
<?php if(@$_SERVER['HTTP_X_REQUESTED_WITH']==''){include('includes/header.php');}?>
<content>blah blah blah</content>
<?php if(@$_SERVER['HTTP_X_REQUESTED_WITH']=...
I am trying to create a live orders page for my website. I need the page to auto-update to show that a new order has been placed and to display an alert/sound whenever a new order row is in the database.
Any ideas on how i can easily achieve this?
Thanks,
-AJay
...
I have a search that returns an AJAX(MVC AJAX Form) grid, and, in the grid there is a "details" button. When I press "back" I want to return the page with the returned results(that are loaded via AJAX after the page has open).
How can I do that? Using ASP.NET MVC AJAX or Jquery?
...
I have jQuery.ajax() creating a request to a url (cms2/docman/dir/%id) (%id is a numeric unsigned integer). The page requested runs some functions and outputs an array. This array is then run through drupal_json. drupal_json() echo's out the content first setting the header to
Content-Type: text/javascript; charset=utf-8
So far, every...
Hello, I have one existing table for guests, with information such as name, passport number and such.
I want to make a new table for sales, and want to make it so that when a client is chosen from the existing table, certain fields are populated in the new table, such as passport number.
I am doing this with php and ajax.
Could someon...
So I'm writing a post on my wall and type a URL into the main body of the post. As soon as I finish the URL, Facebook creates a little section underneath which has the title, description, and an image from the url I typed.
Without getting too indepth, how is this done and what is the best way of make something similar myself?
...
In a database where there is a many to many relationship (say 3 tables like this for example)
Book | Author | BookAuthor
_____ | ______ | __________
BookId | AuthorId | BookId
Title | Name | AuthorId
... | ... |
I want a form to create a new book. In that form, the users would enter...
Hi.
I hope someone could help me.
When i load an external php that generates a set of fields, i have no problems, but then i send the generated form, i can not access the vars.
There is the code i user:
For load the external file:
$.ajax({
type: "POST",
url: "product-insert.php",
contentType: "application/x-www-for...
I am developing a site using php and mysql. I want to know... what's a good way to deal with multi-lingual support? I want a user to be able to select from a drop down and select their language. Then everything (content, buttons, links) except the user-written content is in their language.
What's a good way to approach this? Use a cooki...
I'm using PHP, AJAX, a MySQL database, and a lot of jQuery to prototype web-based chat system (similar to Facebook Chat). I'm stuck on how to "listen" for incoming chats... when to know someone is trying to chat me... and to know that it is a new chat, not an existing chat.
Right now, I'm polling to see if there has been new insertions ...
Hello,
Are there any alternatives to jquery-ui slider? It doesn't do what I want it to be (allow images to be used rather then the default css, well it does but the handle goes above the images).
Thanks!
...
Hi
i tried for including external page in div in my home page but the problem is that external page is developed in ajax means that if we click any link inside that external it doesn't change URL .
My problem is that when i included that page in my code using code on link.
http://www.javascriptkit.com/script/script2/ajaxpagefetcher.s...
Google returns json like this:
throw 1; <dont be evil> { foo: bar}
and Facebooks ajax has json like this:
for(;;); {"error":0,"errorSummary": ""}
Why do they put code that would stop
execution and makes invalid json?
How do they parse it if it's invalid
and would crash if you tried to eval
it?
Do they just remove it from the
strin...
Hi folks, my Ajax post data is not arriving - any clues please.
The data is a serilaized form that "alerts" correctly with all the data using this
$(document).ready(function() {
var serial = $('#frm_basket').serialize();
alert(serial);
$.ajax({
url: "basket-calc.php",
type: "post",
data: serial,
success: function(){
("#baske...