Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Dynamic HTML Editor
 Dynamic HTML Editor
 Dynamic resizing with html objects
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Commsman
Practical

United Kingdom
40 Posts

Posted - 14 Aug 2009 :  13:45:08  Show Profile  Visit Commsman's Homepage  Reply with Quote
I just love DHE - and use it almost every day. I especially find the flexibility of being able to add php code, pulling data from other places makes DHE my perfect fast web creator tool.
One problem: If I use a template (Master Page) and the page with the content has an html object which may have variable quantities of data depending on what info is pulled off a database or from an external blog - I cannot force the page footer (coded in the master page) to move below the variable height content. Instead, I have to create the html object (or containing div) really big, to make sure all possible data will fit.
I can make the div auto scroll - but this is messy and not everyone likes scrolling in an internal div.
Please see the following page for an example:
http://www.speedtraining.co.uk/index.php
This page has php code to pull off the latest n posts from a WordPress blog - currently I have limited the posts to just 1 - but I would like to pull 3 or more - but because of the issues described above, cannot do this well.
I have tried adding a <br style="clear:both" /> tag inside my html object, but clearly the footer (from the master page is absolutely positioned and this has no effect.
I could use a master with no footer, but add the footer to the content page - but this is messy and I would (I guess) have to switch to relative positioning with all the issues involved with doing that.

Any suggestions on how to get over this? Javascript to query the DOM and find out how much data needs to be accommodated and position the footer accordingly seems like a possible solution, but needs a Javascript guru to write the code for that!

I can send you the source files if you are interested.

Cheers and thanks again to a great application!

Julian

Commsman
Practical

United Kingdom
40 Posts

Posted - 14 Aug 2009 :  18:19:24  Show Profile  Visit Commsman's Homepage  Reply with Quote
I have changed things around so the content is in a layer with relative positioning and the footer is below - also with relative positioning - but now the items from the master page are incorrectly positioned - instead of being centred in the page, they are left aligned, but the items from the content page are still centre aligned.
See http://www.speedtraining.co.uk/test.php for how this has partially fixed things - but introduced new problems.
Can I have some advice on how to set up the items in the master page and the content page such that all is centre aligned in a fixed width column (900px in my case)?
Thanks and regards
Julian
Go to Top of Page

s.dav
Site Admin

Italy
3364 Posts

Posted - 17 Aug 2009 :  09:23:30  Show Profile  Visit s.dav's Homepage  Reply with Quote
Send me the sample (master-page and client-page) on my personal email address and I'll check the problem.

Regards, Davide
Go to Top of Page

Commsman
Practical

United Kingdom
40 Posts

Posted - 17 Aug 2009 :  12:30:20  Show Profile  Visit Commsman's Homepage  Reply with Quote
I have now worked out a solution to this issue - I moved the footer into the client page and set things up for relative positioning - the relative positioning then handles the variable height of the content (which is driven by my scripting).
Relative positioning is a little trickier to set up and results in larger and more structurally complex table based files, but DHE still makes good sense even with such a difficult layout problem.
J
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000