Tag Archives: html5

Progress Update

MyFirstChatroom is coming along. I’ve decided to start by getting the hand-entered entries from the database onto the chatroom box to make sure my pipeline is working, before moving on to live updates and posting entries.

It’s been a while so I’ve got to refresh my memory on how to have two PHP scripts talk to eachother. Looks like the only way is to have the controller contain an instance of the model.

The model has an array that the controller needs to access in a variety of ways but I don’t want to make it public, so I’ll have to make a variety of accessor functions next. For now, I’m out of time.

Tagged , , , ,

Big Problem with NME, Jumping Platforms Again

So, despite going on about my l33tness, there’s some things I can’t or shouldn’t do. It turns out I’ve run into a very severe roadblock with HaXe+NME. Well, HaXe is great, the problem is with NME or specifically nme.text.TextField because you see, it doesn’t mimic all the functionality of flash.text.TextField and specifically it doesn’t have the Stylesheet parameter or any other way to change the colour of individual sections of text within a particular textfield. In otherwords, NME simply won’t work for what I’m doing, and I’m back to square one.

Well, before I was thinking of doing it with JavaScript, and I realized that not everyone has JavaScript, or is JavaScript capable. But everyone can view a PHP page! So, this’ll be the forth platform I’ve jumped to on this project. It’s starting to get a bit ridiculous, but such is life. If PHP doesn’t work out I’ll fall back to JavaScript; it’s an important part of the internet and an important part of advanced HTML5 content, so if you’re blocking it by default you’re going to miss out on a lot anyways.

*work work work* I’m just trying to figure out this neat Aptana IDE I downloaded. It can be an extension of Eclipse, but I downloaded the standalone. It’s interesting. I think I’ve got it just about figured out. I’ve gotta say though, it’s weird when I’m trying to figure out a program and all of the screenshots in the manual are from a mac and I’m running it on a PC. XD

*work work work* Okay I’m feeling comfortable with Aptana now, and the PHP makes sense after reviewing the PHP tutorial at w3schools. Love that site.

Notable problem; PHP has no Objects. I’m used to OOP. I could probably make it all work by using a database to store the data I would normally put in objects.

Frankly I’m still indecisive about everything else. Like Flash. I’m great for coding with AS3; I don’t need to lay about for hours reviewing the syntax and all that. Yeah, it limits the places my textgame can go, but there’s also the fact that they may add the StyleSheet to NME. I already requested it on their forum, and asked for advice in their programming area. No idea if I’ll get any hits there, but it’s something.

Right now I’ve got nothing up, and this is supposed to be my first ‘Give Me Money Plz!’ thing, where I make something you want and you give me money to make more. So, I’m not makin’ any money untill I get something playable. I need to stop screwing around and just MAKE the darn thing.

So, that’s that. Next time, back to Flash, untill NME gets what I need. Then I can translate it all to HaXe like I did with the scrollbars.

Not sure if I’ll keep using the scrollbars; they have issues. We’ll see.

Hungry now, and almost midnight. Break time.

Tagged , , , , , ,

JavaScript and Jquery Experiments

So, last time I read up on JavaScript and found that the syntax is pretty much the same as ActionScript except in a couple places. However, I got burned out before I could actually try anything, so I’m going to do that now.

I’d say the primary thing I want to try is making a context menu like I planned to make in Flash. I’d also like to have non-standard scrollbars, so that I can focus on style, but that can probably be a later development.

So, for now, I want to make it so that when the user clicks on a specially formatted anchor tag, they’ll pop up a tree of selection blocks.

*tinker tinker tinker* Well, I’ve got it making a fixed position div when I click on a tag, that’s a start. I kind of hope there’s an easier way than the silly looking code I just wrote to do it, though. Next I need to make it appear where the click was, and close if the user drags their mouse pointer off of it. First I’mma take a break though ’cause the sun in here is driving me nuts and I have a bag of chips.

*break break break* Ahh that’s better, I’ve broken for a little while and now the sun has decended behind the mall, so no more annoying beams. It’s kind of nuts that it’s already so late. It seems like I’ve been barely up at all! I guess I spent a long time playing Legend of Grimrock.

*experiment experiment jquery jquery*

Hmm… Okay so the onclick DOM event won’t give you the xy position of the element that was clicked.

I can use the jquery css position method to get the position of a span inside of a p, though, so that should do what I need.

*work work work work work*

Okey dokey, there we go. I now have a box that appears when you click certain text in a line, and disappears if your mouse leaves the box. I can expand on that to make a nice context menu tree. ^.^

Now that I’m sure I can do that, I want to be sure I can do the other things. So, my next test will be creating data objects for the world simulation. But, I’ll do that later. I’ve been at this for a while and I need another break.

Tagged , , , , ,

Lochiel Kiwanis Community Centre Website

In October and November of 2011 I created a website for the Lochiel Kiwanis Community Centre in Sarnia, Ontario, Canada. It’s my first attempt at making a professional quality website. Interstingly, I wasn’t brought on as a web developer but as a gardener. I had the skills and they had the need, so they put me to work building them a website.

The finished site is hosted at http://www.lkccsarnia.com/

Tagged , ,