Advertisement

07.08.2008 at 08:52AM PDT, ID: 23547117 | Points: 500
[x]
Attachment Details

Is this a valid AJAX call?

Asked by Daniish in Asynchronous Javascript and XML (AJAX), JavaScript

Tags: Javascript, AJAX, Firefox 2.0, www.globexposure.net/index5.php

Hello,

In my last post i asked the same question badly/wrongly (http://www.experts-exchange.com/Programming/Languages/Scripting/AJAX/Q_23546727.html).

I'm trying to return the results of the following server-side query:
$query_regions_poi = mysql_query("SELECT * FROM locations WHERE reg_id = regions['id']");
while ($row=mysql_fetch_assoc($query_regions_poi)){
      echo '<poi_in_region poi_id="'.$row['id'].'" title="'.parseToXML($row['title']).'" date="'.$row['date'].'"/>';
}

...using an AJAX call so that i can display the results dynamically in my client-side code:

var regpoi = request.open("GET", "http://www.globexposure.net/includes/read.php?$poi_in_region=reg_id", true);
var html ='<div id="regional_poi">' + regpoi + '</div>';

I'm not sure that the line above is going to give the intended results. I'm trying to return all records from my locations mysql table where $reg_id (var reg_id = markers[i].getAttribute("reg_id");) is the same as the id of the current regional marker (var reg_id = markers[i].getAttribute("id");)

Many thanks for any adviceStart Free Trial
Attachments:
 
index5.php
 
 
read.php
 
[+][-]07.09.2008 at 12:29AM PDT, ID: 21961272

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.09.2008 at 07:48AM PDT, ID: 21964206

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628