Thank you kindly for the links. I hadn't considered JavaScript, but they sent me off on a chase. Here's a little update.
I found this
tutorial at Zend.com. But wasn't satisfied with it or the lack of response in the comments.
Next I found this
post at PHPBuilders.com that had a few near misses until I saw this
link to yxscripts.com. Almost what I wanted.
I kept looking until I found
JSRS select demo at Ashley IT which was exactly what I was looking for.
I implemented it and got it to work ...
IF I didn't use addon.php.
Something about
- Code: Select all
jsrsError: function builds as empty string.
with
- Code: Select all
document.forms.frmtalented has no properties.
JavaScript - http://s94197980.onlinehome.us/mv/roster/addon.php?roster_addon_name=talented
Event thread: load
Error:
name: TypeError
message: Statement on line 149: Could not convert undefined or null to object
Backtrace:
Line 149 of linked script http://s94197980.onlinehome.us/mv/roster/addons/talented/selectphp.js
var lst = document.forms["frmtalented"][listNAME];
Line 26 of linked script http://s94197980.onlinehome.us/mv/roster/addons/talented/selectphp.js
emptyList("lstClass");
Line 37 of linked script http://s94197980.onlinehome.us/mv/roster/addons/talented/selectphp.js
initLists();
Line 1 of script
preselect("Druid", "-99", "-99", 1);
At unknown location
[statement source code not available]
But if I comment out the
- Code: Select all
jsrsDispatch( "ClassList TreeList TalentsList" );
line in select_rs.php (which is what returns the error) all script files appear to be accessed as scripts from all of them clear the defaults I place in the drop-down lists, yet the lists don't repopulate and I get nothing in any Java console.
Meat Vendor Talented is currently set with the "jsrsDispatch" live if anyone want to give it a look-see.
So, while not query-derived and database driven, I'm going to use the chainedselects from yxscripts.com as they seem simpler to implement until I can figure out how the JSRS is broken. Unless, of course, they suffer the same problems when I actually get them implemented.
??:
-dP