I'm trying to plot lines between two or more addresses in Google Maps. The idea is that addresses are in an array (in the order of the route taken), then the array is looped over and geocoded via Google Maps, so I then have an array of co-ordinates:
function showRoute(routes) {
var points = [];
var geocoder = new GClientGeocoder...
I have website that use XMLHttpRequest (jQuery, actually). I also have another site running on the same server, which serves a script file that makes XHR requests back to THAT site, ie.
http://mysite:50000/index.html includes
<script src="http://mysite:9000/otherscript.js"></script>
and http://mysite:9000/otherscript.js incl...
I want to use AJAX to process a simple login form. I thought it'd be pretty easy, but I just can't get it all to work.
index.php
<html>
<head>
<title>AJAX Login</title>
<script type="text/javscript">
var XMLHttpRequestObject = false;
if(window.XMLHttpRequest) {
XMLHttpRequestObject = new XMLHttpRequest();
}
else if (window...
I have been trying to retrieve data via AJAX. I can't seem to be able to 'read' what was sent to me by PHP. Here's the code
$('create_course').addEvent('submit', function(e){
e.stop();
flash.setStyle('display', 'none');
this.set('send', {
onComplete: function(resp){
if ($chk(resp))
{
console.log($type(resp...
Or where to see such an ajax-driven country-region-city drop down list? The data base could be taken from that site.
...
I'm creating an auction site where users can bid on items. I want to create a script that sends an email to the winner of an auction item once the datetime in the end_auction column has been reached.
I'm not sure how to go about doing this, since PHP only runs when the page is loaded and then stops. Also, I want it to send an email to ...
Ok, I am new to rails so I hope I explain this well. I seem to have a problem with a form collecting the proper information. Work in one spot and not another. Here is the situation.
I have created a blog with three tables, posts, comments, and votes. I have comments working correctly and votes working partially. Here is what I mean.
...
I've got sIFR setup to replace a navigation menu (looks pretty slick). It's individually replacing the LIs and their internal links. I have an onRelease tag that throws properly, extracts the actual href link address, all good so far. I want to tie this into an AJAX page loader, with backwards-compatability (+SEO) for the individual p...
Im trying to use jquery to make an ajax on a specif port
$(document).ready(function() {
$.ajax({
url: "http://test_serve:666/test.php",
type: "GET",
data: ({value_test: 'true'}),
dataType: "html"
});
})
And this does not work, no ajax call is made nor do I get any exception (using firebug)
It does work if I do not specif ...
How to fetch all result rows in MySQL+PHP?
You know, if I use mysql_fetch_assoc() , it only returns one result row as an associative array. I am using AJAX to fetch the data in a MySQL table.
$result=mysql_query("select * from questions where announcementid='$taskid'")or die(mysql_error());
How to return the value of $result which i...
Hi all,
I would really like to hear your opinions about search engine optimizations for an Ajax based website.
The study case is the following:
http://projects.trapexit.org/
What are your SEO hints for such an application?
Many thanks.
...
I am using AJAX to fetch a multidimensional array, so a multidimensional array is returned to AJAX, how can I deal with the data with AJAX? I need to read all values in the multidimensional array. I use the following code to return the array to AJAX.
$resultset=array();
while($row=mysql_fetch_assoc($result))
{
$resultset[]=$row;
}
p...
I have a PHP page that currently has 4 years of team positions in columns on the page. The client wants to select the players in positions and have first, second and thrid choices. Currently the page shows 4 columns with sets of combos for each position. Each combo has a full set of players in it and the user chooses the player he wants ...
I am new to rails so go easy on me. I have built a blog and I am attempting to add a "vote up" type feature to the /posts/index.html.erb page. Kind of like Facebooks's like feature. I have can successfully get the vote form to work. I have successfully been able to get the posts rendererd out through the <% @posts.each do |post| %> call....
I have an ajax controltoolkit reorderlist within an asp.net application.
I need to disable certain specific steps from being reordered. This has to be done dynamically. All steps are consecutive and start from the beginning, but it's not known until runtime how many need to be disabled from being reordered any further.
I tried the e....
I was planning to create an unordered list of users of my web application using a simple database query, but then was planning to let people filter this list down by typing the person's name they're looking for into a text input.
I was hoping to use jQuery to match the string in the input box to any inside one of the list items, then hi...
I'd like to learn how to use Spring Forms and GWT. Basically my forms just ask for a bunch of links and you can submit them. The twist is that when I add a link I want it to be previewed (e.g print the title of the page, some description etc) via an RPC call.
The solution I can think of is to use GWT's form panel and bind the inputs to...
I like the 'Recent Activity' effect on http://foursquare.com/. The top activity pushing all beneath. Is there a JQuery plugin or widget I can readily use which does the same?
(I am a lazy developer so please no 'you can develop this yourself' responses)
...
I get dynamic content with Ajax and i put it in a div, but the problem is that i have diffrent ids for some child divs(from the dynamic content). So i have added selectors for these divs, but as i said they are dynamic loaded and that means they are not visible anywhere before they are loaded(from another file) and inserted into the div....
Hey All. Can anybody share a open source
Good & Simple PHP Cart?
...