| | |
AJAX and Smarty
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
very interesting.. and probably quite useful.
There are some libs out there for AJAX that allow you to just define a <div> like:
[HTML]<div class="ajax" id="pagename.html"></div>[/HTML] and the div will load the page defined. (I wrote one that does the above and have seen others that have similar syntax)
Maybe that would be a start to work on. I have only looked at smarty but never used it so I'm not sure how to define new template variables but the thing would be to use smarty to generate the html above...
If someone could post up a solution to having smarty write out the following output:
<script type="text/javascript" src="ajax_lib.js"></script>
when the ajax part is loaded. And the something like the following when a user uses one of the variables:
[HTML]<div class="ajax" id="pagename.html"></div>[/HTML]
I would put together the javascript end...
There are some libs out there for AJAX that allow you to just define a <div> like:
[HTML]<div class="ajax" id="pagename.html"></div>[/HTML] and the div will load the page defined. (I wrote one that does the above and have seen others that have similar syntax)
Maybe that would be a start to work on. I have only looked at smarty but never used it so I'm not sure how to define new template variables but the thing would be to use smarty to generate the html above...
If someone could post up a solution to having smarty write out the following output:
<script type="text/javascript" src="ajax_lib.js"></script>
when the ajax part is loaded. And the something like the following when a user uses one of the variables:
[HTML]<div class="ajax" id="pagename.html"></div>[/HTML]
I would put together the javascript end...
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
![]() |
Similar Threads
- AJAX : Am i right with the concept? (JavaScript / DHTML / AJAX)
Other Threads in the PHP Forum
- Previous Thread: Lookign for project based jobs
- Next Thread: connect one server from another server through script
| Thread Tools | Search this Thread |
apache api array beginner binary body broken buttons cakephp checkbox class cms code cron curl database date date/time display dynamic ebooks echo email error file files folder form forms function functions global google href htaccess html image include insert ip javascript joomla limit link list login mail mediawiki menu mlm msqli_multi_query multiple mycodeisbad mysql number oop parameter paypal pdf php phpincludeissue problem query radio random recourse recursion regex remote script search seo server sessions sms source sp space speed sql static subdomain syntax system table tag tutorial update upload url validator variable vbulletin video web webdesign white wordpress xml youtube






