Login   Register  
PHP Classes
elePHPant
Icontem

Bug!

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      AJAX Drop-down  >  All threads  >  Bug!  >  (Un) Subscribe thread alerts  
Subject:Bug!
Summary:for loop in Ajax.js
Messages:3
Author:Francis
Date:2007-02-01 22:54:43
Update:2007-08-22 23:17:04
 

  1. Bug!   Reply   Report abuse  
Picture of Francis
Francis
2007-02-01 22:54:43
Hi there

The database result of 1st row at 2nd drop down list was overwrite by hard coded --Select-- option index [0]. If I took off that --Select-- line it working fine, but 1st result row is appeared straight.
Wondering how to keep both --Select-- and 1st result row ???

  2. Re: Bug!   Reply   Report abuse  
Picture of er
er
2007-05-20 15:00:07 - In reply to message 1 from Francis
Anybody know how to fix this?

  3. Re: Bug!   Reply   Report abuse  
Picture of  tanju aktug
tanju aktug
2007-08-22 23:17:04 - In reply to message 2 from er
A simple way to solve this problem is adding a sham option to the returning XML. I added the following lines before database recall and it works...
.....
original : $xml .= '<categories>';
added lines
$xml .= '<category>';
$xml .= '<id>0</id>';
$xml .= '<fname>sham</fname>';
$xml .= '</category>';

original : while($row = mysql_fetch_array($result))
......