For those who may be interested in the solution, I finally found it:
The solution is NOT USE AJAX!
Use the "Remote scripting with hidden Frames" instead !
100 times simpler!

In your main template
------------------------
1. add an iframe in your main page, that will not display ie:
<iframe name="historyFrame" id="historyFrame" width=0 height=0
      src="put your initial template here"
      style="visibility: hidden; inline: none;">
    </iframe>

2. target every link that will call a sub-page to the hidden iframe, ie:
    <A HREF="subPage.cfm" TARGET="historyFrame">

3. have some empty DIV that will receive the content for all sub pages:
          <DIV ID="subPage"></DIV>
 
4. just have this script in your main template:
<SCRIPT>
function historyFrameLoaded (historyFrame)
  {
  document.getElementById('subPage').innerHTML = 
historyFrame.document.body.innerHTML;
  }

In all subpage templates:
---------------------------------
<BODY onload="parent.historyFrameLoaded(this)">
.... any HTML goes here...
</BODY>

THAT'S IT!
- only 2 lines of Javascript.
- works with ANY browser.
- back and forward buttons fully supported
- I've not tried yet, but I'm pretty sure that implementing support for 
bookmarking should be pretty straightforward.

-- 
_______________________________________
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301543
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to