Welcome Visitor!

Share your knowledge with the Community for Web Designers and Developers!!

  • Download/upload tutorials, extensions, faq's - share your knowledge with the community!
  • FREE Registration allows you to fully customize and participate at DMXzone.com!
  • We fully respect your Privacy

PHP and JavaScript Interaction: Storing Data in the Client, part 2

2436 Users read it.
(May 20, 2005)
Rating: 4 users 
 2.8 out of 5

Properties

User Level  Intermediate
Product  Dreamweaver MX, Dreamweaver MX 2004
Server Model  PHP ImpAkt 1(UD4), PHP MySQL (DWMX), PHP PHAkt 1 (UD4)
Technologies  JavaScript



In the first article in this series, we developed a simple PHP function that dynamically generates a JavaScript array and populates it with external incoming data. In this article, we will develop a real world application using this method, in the form of a news ticker.

This is the second part of the series "PHP and JavaScript Interaction: Storing Data in the Client." Welcome back! If you've been following the concepts covered in the first article, then you probably have grasped the underlying ideas behind the approach taken to store data (text files or database records) directly in JavaScript arrays, avoiding additional or unnecessary server loads.

Having thoroughly covered the pros and cons of this method, we made an attempt to develop a simple PHP function that dynamically generates a JavaScript array, populating it with external incoming data, that is, file data or table records. Once that structure was created, the question spinning in our minds was the following: can we develop a real application where this method finds its place?

The good news is that we're able to implement several applications, at least, at a limited scale. Here, we're not pointing toward the big project that will change your life as developer. Instead, we're aiming to create small projects and put this approach to work, taking advantage of its benefits. So, keeping that idea in mind, in this second part, we'll create a text file-based JavaScript news ticker, as a learning process to introduce a practical use for the technique previously defined. Are you ready to work with a pinch of PHP and JavaScript? Fine, let's get started!

Please rate this for us Poor 1 2 3 4 5 Excellent
  Usefulness of Content
Read it at the external site...

Chris Charlton Chris, Los Angeles' CSS & ActionScript guru, successfully cannonballed into web development in the late 90's. Always caught up with the latest in Flash, Dreamweaver, Fireworks, and XML, Chris authored premium articles for the largest Dreamweaver/Flash community (www.DMXzone.com) and produced WebDevDesign (iTunes featured), a popular Web Design & Development Podcast. Somewhere, Chris finds time to run an authorized Adobe user group focused around open source and Adobe technologies. Being a big community leader, Chris Charlton remains a resident faculty member of the Rich Media Insitute and lends himself to speak at large industry events, like JobStock, NAB, and FITC Hollywood.

Brain cycles from Chris are always Web Standards, Flash Platform, and accessibility.



FlexTube.tv - Flex-based video sharing network
www.flextube.tv

MotionXML - the premiere website to download and share Flash Motion XML animations
www.motionxml.com

Xtnd.us - macromedia/adobe extensions for Drupal and jQuery
www.xtnd.us

Technorati Profile
http://www.technorati.com/profile/ccharlton

WebDevDesign Podcast
http://feeds.feedburner.com/webdevdesign

LA Air user group Manager & LA Flash member
http://www.laair.org


Awards:
DMXzone Majestic Member - December 2004
http://www.dmxzone.com/showDetail.asp?TypeId=37&NewsId=7514

See All Postings From Chris Charlton >>