Hi all, i have something that's hard to comprenhend because i'm noob in web programming...
Well, i have a LAMP server with Smarty (LAMPS for me) and i have a MySQL database with some tables...
I have coded some web pages with Smarty but there is a problem...
Also i have the php code (working) for make query in MySQL...
First:
It's true that AJAX working only if the starting page is coded in HTML?
Second:
It's possible to use AJAX script in a page generated by previous AJAX script?
I know that these questions are a little generic but i try to explain myself better...
My HTML template (index.php that Smarty->display index.tpl.html) look like this:
Ok, the iframe is blank and in the left area of bottom frame, i have a link that point to another php (html template obviously) page with same CSS and layout, but in the left area of the bottom frame instead of the link clicked before, have to appear a drop down list populated by data from MySQL TABLE1, with a submit button associated...Code:_______________________________ |aaaaaaaaatop-frameaaaaaaaaaaaa| |______________________________| |aaaaaa|aaaaaaaaaaaaaaaaaaaaaaa| |aaaaaa|aaaaaaaaaaaaaaaaaaaaaaa| |aaaaaa|aaaaaaaaaiframeaaaaaaaa| |aaaaaa|aaaaaaaaaaaaaaaaaaaaaaa| |aaaaaa|aaaaaaaaaaaaaaaaaaaaaaa| |aaaaaa|_______________________| |aaaaaabottom-frameaaiaaaaaaaaa| |______________________________|
Now, if this page is generated by AJAX, it's possible using AJAX again to take a item from drop down list pushing the submit button and view the results of a MySQL TABLE2 query in the iframe?
More streched, it's possible to use AJAX in an AJAX result page?
P.S. I hope have explained myself in a Human Readable form...![]()



) and i have a MySQL database with some tables...
Reply With Quote
Bookmarks