change data source in Listview, using ajax return mysql record.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

change data source in Listview, using ajax return mysql record.

Simon Wong
I am now using the listview to show the mysql data, it is fine. and
using the event click to pass the id to ajax and display the detail. all
is OK..
but now, there are difficult for change the data list. I using the php
to fetch the data, then echo to the listview source. but I want to do
the search function for the user, when the user enter the company type
is "Toy", then I need to using ajax to fetch again the data and apply to
listview. but i am no idea with finish that, help!!

In the begin, I fetch all data:

<?php    while($row = mysql_fetch_array($query)){
        echo 'ld.push({ id : { text :"'.$row["ID"].'"}, name : { text :
"'.$row["NameOfCompany"].'"}, office : { text :
"'.$row["LocationOffice"].'" }, factory : { text :
"'.$row["LocationFactory"].'" }, modified : { text : "'.$row["ID"].'" },
rights: { text : "'.$row["ID"].'" }, open : { uri :
"http://www.google.com/", html : "http://hkplants.com"  }});';
 
  }
  ?>

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel