Home arrow HTML arrow Page 4 - Remote Scripting with iframes
HTML

Remote Scripting with iframes


In this second part of a two-part series on the ins and outs of iframes, we will explore more uses for iframes. The ones we will discuss fall into the broad category of remote scripting, or remote procedure calls (RPC). You won't find any sophisticated code in this article, but we will do quite a bit with just plain HTML tags and some basic PHP.

Author Info:
By: John Best
Rating: 5 stars5 stars5 stars5 stars5 stars / 3
December 22, 2008
TABLE OF CONTENTS:
  1. · Remote Scripting with iframes
  2. · Using iframes for Site Navigation
  3. · Passing Data from Parent Window to iframe using Query String
  4. · Other uses

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Remote Scripting with iframes - Other uses
(Page 4 of 4 )

There are many other things that can be done using iframes for remote scripting. For example, a form in the main page could be used to send user input to the script in the iframe, and the script could display a response in the iframe, with no page reloads necessary.

Here's another example: dynamically generated information could be sent from a script in the main page to a script in the iframe without human input. I'm quite certain you can think of other possibilities for iframes. Feel free to play around with the code I've included in these two articles. You might come up with any number of applications that suit the needs of your website.

Conclusion

While iframes are not the ideal tool for every remote scripting task, they do have two significant advantages: simplicity, and fewer problems with the behavior of the back button. I'm sure you can think of many more uses in addition to the ones described in this article.

Oh! And what about that remote procedure call (RPC) that I promised you? Guess what -- we just made one (or Joe did)! RPC is a term used to describe communication or exchange of data between remote computer systems, and what Joe did qualifies as that. If you want a lot of complicated code, you will have to find some other article.


DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

blog comments powered by Disqus
HTML ARTICLES

- HTML5 Boilerplate: Working with jQuery and M...
- HTML5 Boilerplate Introduction
- New API Platform for HTML5
- BBC Adopts HTML 5, Mozilla Addresses Issues
- Advanced Sticky Footers in HTML and CSS
- HTML and CSS Sticky Footers
- Strategy Analytics Predicts HTML5 Phones to ...
- HTML5 Guidelines for Web Developers
- Learning HTML5 Game Programming
- More Engaging CSS3 and HTML Background Effec...
- Engaging HTML and CSS3 Background Effects
- More Web Columns with CSS3 and HTML
- Columns with CSS3 and HTML
- Creating Inline-Block HTML Elements with CSS
- Drag and Drop in HTML5: Parsing Local Files

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 4 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials