> So, why can't your scripts be in the head? Do you know you can add
> scripts to the head dynamically? Like this:
>


for example, pixelpost photoblog, you want to only load these in the
image_template.html, and have a header.html+footer.html defined, the
scripts will have to go in the body.

I also found issues with xhtml1.1 and the DOM. Had to use these
insteaad

function createElement(element) {
        if (typeof document.createElementNS != 'undefined') {
                return document.createElementNS('http://www.w3.org/1999/xhtml',
element);
        }
        else if (typeof document.createElement != 'undefined') {
                return document.createElement(element);
        }
        return false;
}

function setAttribute(element, name, value) {
        if (typeof element.setAttributeNS != 'undefined') {
                return element.setAttributeNS('http://www.w3.org/1999/xhtml', 
name,
value);
        }
        else if (typeof element.setAttribute != 'undefined') {
                return element.setAttribute(name, value);
        }
        return false;
}



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to