Re: AJAX and javascript calling javascript
[url="http://www.devshed.com/c/a/Security/A-Quick-Look-at-Cross-Site-Scripting/1/"] A Quick Look at Cross Site Scripting - What is Cross Site Scripting?[/ur]
BTW, there is a way to serve php with ajax, but I havent found it yet, but for now, this site is excellent, here are some:
[url="http://www.devshed.com/c/a/PHP/Creating-AJAX-Requester-Objects-with-Abstract-Factory-Classes-in-PHP-5/"]Creating AJAX Requester Objects with Abstract Factory Classes in PHP 5 [/ur]
[url="http://www.devshed.com/c/a/PHP/PHP-Datastorage-Class/1/"] PHP Datastorage Class[/ur]
Before we get into the nitty-gritty of XML parsing with PHP, I'd like to take some time to explain how all the pieces fit together.
[url="http://www.devshed.com/c/a/XML/Using-PHP-with-XML-part-1/1/"]Using PHP with XML [/ur]
[url="http://www.devshed.com/c/a/PHP/PHP-and-JavaScript-Interaction-Storing-Data-in-the-Client-part-1/"]PHP and JavaScript Interaction: Storing Data in the Client [/ur]
[url="http://www.devshed.com/c/a/PHP/Creating-AJAX-Requester-Objects-with-Abstract-Factory-Classes-in-PHP-5/1/"] Creating AJAX Requester Objects with Abstract Factory Classes in PHP 5 - Working with AJAX HTTP requester objects[/ur]
This guy is excellent, I mean excellent. Ho has a tute on serving php dynamically with javascript, etc..
[url="http://www.devshed.com/cp/bio/Alejandro-Gervasio/"]Alejandro Gervasio [/ur] but I cannot find them. I have on my back-ups somewhere, and will get.
I also used PEARL libraries to do what you want to do. I have been out for two years, but I know it has been done, don't need to re-invent! I did it with ajax and xml as well as MySQL db when dooing google maps programming.
Basically, you can put ajax into a <div> and read and write there dynamically without re=generating your whole page.
More specifically, in this second article of the series, I'm going to demonstrate how to apply the abstract factory pattern to create diverse AJAX HTTP requester objects, which can be used in distinct contexts.
[url="http://www.devshed.com/c/a/PHP/Creating-AJAX-Requester-Objects-with-Abstract-Factory-Classes-in-PHP-5/"]Creating AJAX Requester Objects with Abstract Factory Classes in PHP 5 [/ur]
I'll be back later with a staright forward solution... Basically parsing js and extracting the var, then using echo to write the js withthe var included.
(WTF?)
Last edited by mikmik; 11-15-2007 at 06:34 PM.
|