473,320 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

First post, first Big question. html layout engine, looking for ahowto

As seen in the subject, I'm curious about layout engines. I've done a
brief search here and there and I can't find what I'm looking for. A
coworker suggest(actually made it mandatory I subscribe, btw if you're
reading this from the lone star, "Outage" went from under 400 line to
almost 1500 line in one day!!) this group.

I'm looking for theory and yes some code examples as well but mainly
theory. I want to learn how to do rather than how to use someone's
framework. I hope I'm making sense. Any suggestions?
Jun 2 '08 #1
5 1370
On May 14, 3:21 am, The Hajj <hajji.hims...@gmail.comwrote:
As seen in the subject, I'm curious about layout engines. I've done a
brief search here and there and I can't find what I'm looking for. A
coworker suggest(actually made it mandatory I subscribe, btw if you're
reading this from the lone star, "Outage" went from under 400 line to
almost 1500 line in one day!!) this group.

I'm looking for theory and yes some code examples as well but mainly
theory. I want to learn how to do rather than how to use someone's
framework. I hope I'm making sense. Any suggestions?
Are you saying you want to write a HTML layout engine? Sorry, but
this is the wrong group for that, you'll want groups related to HTML
and to programming, as most layout engines are implemented in compiled
languages such as C I'd suggest you look in C related newsgroups.
Jun 2 '08 #2
Yes I want to write one, but using php.

Jun 2 '08 #3
On May 14, 1:51 pm, The Hajj <hajji.hims...@gmail.comwrote:
Yes I want to write one, but using php.
Well regardless of the language used the basic principles should be
the same, but like I said, most existing engines are written to be
part of a browser or HTML editor or similar, so you still might want
to check those out. The Gecko engine is open source so you can
examine its inner workings to your heart's content.

As for doing it in PHP, newer versions of PHP include a DOM
manipulation extension, this is probably the best place to start. I
can't give you more help than that I'm afraid, as I've never used the
DOM extension before, but there should be plenty of quality
documentation on php.net.
Jun 2 '08 #4
On May 14, 10:32 am, Gordon <gordon.mc...@ntlworld.comwrote:
On May 14, 1:51 pm, The Hajj <hajji.hims...@gmail.comwrote:
Yes I want to write one, but using php.

Well regardless of the language used the basic principles should be
the same, but like I said, most existing engines are written to be
part of a browser or HTML editor or similar, so you still might want
to check those out. The Gecko engine is open source so you can
examine its inner workings to your heart's content.

As for doing it in PHP, newer versions of PHP include a DOM
manipulation extension, this is probably the best place to start. I
can't give you more help than that I'm afraid, as I've never used the
DOM extension before, but there should be plenty of quality
documentation on php.net.
That's more than what I got off the net! I've used the DOM before and
shoot me later but I like it better in javascript. In javascript you
don't have to iterate over a element to get sub elements. You end up
creating a foreach jungle before you know in php. I hope they improve
it.
Jun 2 '08 #5
On Wed, 14 May 2008 22:12:33 +0200, The Hajj <ha***********@gmail.com>
wrote:
On May 14, 10:32 am, Gordon <gordon.mc...@ntlworld.comwrote:
>On May 14, 1:51 pm, The Hajj <hajji.hims...@gmail.comwrote:
Yes I want to write one, but using php.

Well regardless of the language used the basic principles should be
the same, but like I said, most existing engines are written to be
part of a browser or HTML editor or similar, so you still might want
to check those out. The Gecko engine is open source so you can
examine its inner workings to your heart's content.

As for doing it in PHP, newer versions of PHP include a DOM
manipulation extension, this is probably the best place to start. I
can't give you more help than that I'm afraid, as I've never used the
DOM extension before, but there should be plenty of quality
documentation on php.net.

That's more than what I got off the net! I've used the DOM before and
shoot me later but I like it better in javascript. In javascript you
don't have to iterate over a element to get sub elements. You end up
creating a foreach jungle before you know in php. I hope they improve
it.
Some XPATH wizardry is a certain plus for finding / accessing elements you
either know or suspect to be there directly. Takes a lot of the
edge/foreach loops off :)

For majorly dynamic sites, where everything has to be able to change from
anywhere, I certainlly like PHP's DOM. Might be way over the top for sites
with a more reliable static layout.
--
Rik Wasmus
[SPAM] Now temporarily looking for some smaller PHP/MySQL projects/work to
fund a self developed bigger project, mail me at rik at rwasmus.nl. [/SPAM]
Jun 2 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Robert | last post by:
I am using the php4-cgi Debian package which is based on PHP 4.3.4. I have problems when running php4 on the command line. If I say something like $ php4 index.cgi a number of variables...
12
by: Mudge | last post by:
Hi, I know the html tags and am pretty familiar with CSS. What I don't know really is good layout with a combination of these. I don't really know when to use tables or when to use just css and...
16
by: TB | last post by:
Hi all: If you think that the following comments are absolute amateurish, then please bear with me, or simply skip this thread. A couple of months back I made the decision to initiate a...
6
by: abhishek | last post by:
Hi everyone, I am trying to generate a PDF printable format file from an html page. Is there a way to do this using python. If yes then which library and functions are required and if no then...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.