Hi.
I'm using AJAX to make a menu for a guy's website I'm making for him. Anyway, he has a sports memorabilia store. I have a simple menu. There is a drop down box that you click on to select the sports league you want. Then below it is another drop down box where you choose the conference ex: Big Ten/Big 12/etc for NCAA, NFC/AFC for NFL, etc. The conferences to choose from are automatically set depending on what league you choose. Then after you choose the conference, the teams in that conference show up below it as links you can click on that will take you to the merchandise pages for those teams.
Ok, everything works great...except when you reload the page.
I use sessions to store the league and conference variables. The league and conference selections remain in the menu when you reload the page. (I execute the javascript functions during the load event for the menu.php page)
But in the mother page, menu.php, there is a <span> section. The php pages that are executed by the javascript functions when events are triggered show their output within the span section.
I am going to call the php scripts that are ran from javascript (which show their output in span) span pages because I don't know what else to call them. If there is a real term for them, please correct me of that.
I have found that I cannot execute javascript functions in these span pages, nor can I use html page events such as onload. They just don't seem to be useable by these span pages. I
I cannot show the list of teams this way if you reload the page because of this problem. I was wondering how I could execute javascript from within these span pages.
Thanks.