- May 2, 2010
- 9,943
- 16,050
After a little help here, hope you can spare a moment to take a look @jamie3000,
Now, I have a primary menu that loads into the database via ajax.
That works perfectly after the page is reloaded. ie, the primary menu is populated again.
The code I used to achieve this is.
And I use that sort of formatting for the rest of the menu choices.
in the submenu's I have
for example. The database updates when both the submenu & primary menu change. Both values are stored in the db, yet, I just can't seem to get the submenu to load the preset choice.
Any help from someone would be much appreciated.
Thanks very much, ya'll
Now, I have a primary menu that loads into the database via ajax.
That works perfectly after the page is reloaded. ie, the primary menu is populated again.
The code I used to achieve this is.
PHP:
<?php $x = ((empty($gigObject->getMaincat())) || ($gigObject->getMaincat() == '>Select a Category')) ? 'selected="selected"' : ''; echo $x; ?>
And I use that sort of formatting for the rest of the menu choices.
in the submenu's I have
PHP:
<?php $x = ((empty($gigObject->getSubcat())) || ($gigObject->getSubcat() == 'Audiobooks')) ? 'selected="selected"' : ''; echo $x; ?>
for example. The database updates when both the submenu & primary menu change. Both values are stored in the db, yet, I just can't seem to get the submenu to load the preset choice.
Any help from someone would be much appreciated.
Thanks very much, ya'll