Object-Oriented-Pages: Difference between revisions
Jump to navigation
Jump to search
Embeddedrf (talk | contribs) |
Embeddedrf (talk | contribs) |
||
| Line 33: | Line 33: | ||
*Use unique characters to allow parsing agent to find substitution locations | *Use unique characters to allow parsing agent to find substitution locations | ||
*Full file names with pathes to the agent can | *Full file names with pathes to the agent can | ||
**fetch the | **fetch the OBJECT | ||
**parse the | **parse the OBJECT | ||
**substitute in correct locations | **substitute in correct locations | ||
**Add to the SCRIPT and ONBODY string | |||
**Until no unique characters are found GoTo beginning of parsing loop: This allows the OBJECTS to be parsed the same way | |||
Revision as of 03:44, 13 May 2008
Top Document Schematic
*Top document has the following:
<html>
<head>
<script src=Object_1_Script.js language=javascript type=text/javascript></script>
<script src=Object_2_Script.js language=javascript type=text/javascript></script>
</head>
<body Onload=Object_Function_1(p1,p2...); Object_Function2(q3,q4...);>
<---HTML_Template_File_N---> .....---> This can now be constructed on the fly and left in an HTML file | Makes possible varying templates for different pages
</body>
</html>
- 1- replace <---HTML_Template_N---> with string replacement function in PERL ...will be easy to place this string and make it obvious where the replacement will happen.
Example HTML Template File

- Use unique characters to allow parsing agent to find substitution locations
- Full file names with pathes to the agent can
- fetch the OBJECT
- parse the OBJECT
- substitute in correct locations
- Add to the SCRIPT and ONBODY string
- Until no unique characters are found GoTo beginning of parsing loop: This allows the OBJECTS to be parsed the same way