473,594 Members | 2,783 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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(actuall y 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 1396
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(actuall y 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...@n tlworld.comwrot e:
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...@n tlworld.comwrot e:
>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
documentatio n 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
7169
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 are not initialized. For example, $HTTP_GET_VARS is not set. To get it set, here's my workaround:
12
2652
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 I would really like to see examples of well designed web sites and the html for it. I hate "what you see is what you get editors".   Does anybody know of any books that show good examples of web page...
16
2576
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 gradual upgrade of my web programming skills from Classic ASP / VBS to ASP.NET / VB.NET. While the study of the language differences and all the new features in .NET has so far not been a traumatic experience, I am a bit shell-schocked after
6
2478
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 reasons why it cant be done. Thank you All
0
7876
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8251
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8234
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6654
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
3859
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3897
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2385
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1478
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.