Filed under: Web Applications | Tags: Document Object Model, html, script, University, w3
The HTML Document object model is a w3 standard for accessing and working with HTML. It provides a hierarchial, tree like structure, where “objects” within the document contain attributes, and even other objects. Using scripts, these “parent nodes” (higher level objects), and their “child nodes” (contained objects) can be viewed and altered according to the author’s will, and user inputs. To view or alter these elements, “GetElementById” may be used in Javascript eg:
document.GetElementById(“Div1″).innerHTML = “this text”
would select the element with the id “Div1″ and change the text it contains to “this text”. Following this, exclusive to IE, DOM, enables the use of document..all”Div1″) to select all of the objects below “Div1″ in the heirarchy.
Events can be used within scripts in objects, to provide user interactivity, and to access other elements of the DOM. Events such as OnKeyPress, and OnKeyDown allow such events (as user presses keys) to run scripts within the HTML. The difference between OnKeyPress and OnKeyDown, is that while OnKeyPress will trigger an event repeatedly as long as the key is held down, OnKeyDown will trigger only on the initial keypress.
Event Bubbling is a function performed within the DOM process, which occurs when events are triggered by the user. If an event is triggered by an element, but no associated process is included within the object, the event is shifted up the DOM heirarchy in a ‘bubbling’ process, until it reaches an element which can process the event.
Source:
Filed under: Uncategorized | Tags: break, car, ford, hubcap, speedbump, University
On my way into uni this morning i was walking through the carpark, and a ford went past me. As it went over the speedbump (a small one, not one of those monstrous behemoths of vehicle velocity regulation), the bottom of it scraped across the top of the bump, making a squealing, grating noise. Next, as the rear wheels came down from the bump, the boot (whether open, or just loose) clunked open and closed. Lastly, in a perfect way to top it all off the right rear hubcap disconnected itself from the wheel, and rolled off in another direction.
I, along with the other onlookers, was amused to say the least.
Filed under: Web Applications | Tags: gaming, High School, IT, laptop, linux, mac, University, windows, xubuntu
Ok, so i thought of a few more things i maybe should have mentioned in another post:
I’v studied IT on and off through junior High school, and IPT in Senior. On top of that, last Uni semester I came out of Analytical Toolkit (one of the IT cores) with a Distinction, and Topped my IT-2 subject with a High Distinction. I’ve coded a number of small programs in Visual Basic, and worked with MS Access a little. I’m mostly a Windows person, but i’v dual booted my laptop to run Xubuntu (Linux Distro) and my primary school mainly ran Mac, so i’v had a bit of experience with them.
I have a relatively strong interest in the hardware side of computers, and i love setting up and networking new computers, and having a bit of a mess around inside them.
interestingly enough, a few months ago my parents mistakenly ordered a new computer, but neglected to have a CD or DVD drive installed, so i had to steal one from one of our other computers before we could install Windows, and that 6 or so year old drive is still going strong in our brand new gaming rig
i’ll probably write back when i think of something else
adios
Ok, so firstly i should explain, for any randoms who may have stumbled upon this blog (perhaps attracted by the bright colours), that this is part of my Uni assessment. I’m studying IT and Business at Bond University, and i’m currently sitting in a Web Applications class.
A little about my IT background, as Micheal (sp?), my lecturer asked. I’v been fixing the majority of the issues that arise at home with our home computers and laptops, from printing and installation, to networking and basic admin activities. I’ve set up our home network, which at the moment consists of four computers, and occasionally one blackberry, and brought it from wired (oldschool) to wireless. I’ve played around with html and css, and while i’m not so confident on coding a whole website or layout from scratch, i have enough understanding to change existing code to do what i want. I’v used ftp, at my high school, until the IT admin discovered we’d been using it to send files home, at which point he barred our access, and years ago played a few text based games over TELNET.
i spend alot of my spare time on computers, whether it’s playing games (MMORPGs and Shooters mainly), reading up on my interests (snowboarding, games, music and PC hardware news) or fixing my families PC blunders ^^. Whichever i’m doing, i’m sure i’m developing square eyes, or perhaps rectangle eyes, for my 22″ widescreen.
that aught to be it for now
ciao