You can see the general direction we are taking studio tomi in version 3 of the site
This is merely a swapping of the current style sheet, with no fine tuning.
Here is the current rendition of higstrungyarns.com.
It is minimalist. :-)
So, i am developing a php/mysql/'ajax' application for one of our clients, and I have been trying to figure out how to style the xml that the php is returning. To make a long story short, I have been completely unable to do it via any simple way. So, I am having the php script return already well formed html, and then using a javascript function to walk through the xml, converting each node into its html equivalent. There has to be an easier way, but i will be damned if could find it.
function rebuildTags(n) {
var result;
if (n.nodeType == 1)
result = document.createElement(n.nodeName);
else if(n.nodeType == 3)
result = document.createTextNode(n.nodeValue);
var children = n.childNodes;
for(var i=0; i < children.length; i++) {
result.appendChild( rebuildTags(children[i]));
}
return result;
}
» More?
we just picked up a client, highstrungyarns, so here is pass number 1.
the cat took 10-15 minutes, and is just a holder until we decide that we want a frisky cat in the bottom corner :-)
need to add this to the links page: http://levitated.net/daily/index.html
Here is a little tidbit, which i was unable to find on the web, under any search terms that seemed reasonable to me.
in flash, if you have the string name of an instance, and you want to access that instance, you use the eval funtion and the string to call it up [eval(string) returns a reference to the instance].
So say, that i wanted to create an array of dynamically loaded clips, well then i attach them to the movie, and then populate the array with eval(name). hmm this might be less confusing if i show you what i am doing. I won't muddle up the front page with the code, so click to read more.
» More?
Ok so the main part of studio tomi just went live, with its brand new look. HOORAY!!!! which means it is now time to give the factory a once over to bring it inline with the other part of the site. i've got some ideas that i will sketch and post up tomorrow.
cheerios.
miah
So I am going 100% DOM acceptable scripting, and today I found another inconsistency between IE and Firefox, and to be honest, I am not sure which side i agree with this time.
<div id="picname">
<p>title</p>
</div>
Ok so given this code, if you request the childNodes of the element picname, you get different results based on the browser. IE gives you one child node, specifically the p tag. Firefox gives you three, the carriage return and white space before the p tag, the p tag itself and the carriage return and white space after the p tag. Illustration below:


if you remove all the whitespace and the newline characters then the firefox works the same way that ie works... I am not sure which is the 'correct' way to do it... it is just good to note if you are goind to do any dom scripting.
This is a minor annoyance when java scripting with IE
Here is a nice little bug/feature in IE. When you are using the DOM method .getElementById(""), IE not only checks the id attributes of everything on the page, but also the name attributes. ...What?
I had a meta tag with the name "description", and a paragraph tag with the id "description" and i could not get my handy dandy little javascript to run in IE because it kept grabbing the meta tag instead of the paragraph. That was five minutes of my life I wouldn't mind getting back, hah.
The script worked in firefox, just like it was supposed to, man i love my browser!