function createElement(name)
            {
                var container = document.getElementById("content");
                
                var newdiv = document.createElement ("div");
                newdiv.setAttribute("id", name);
                newdiv.innerHTML = " ";
               
                var handlediv = document.createElement("div");
                handlediv.setAttribute("id", name + "_handle");
               
                newdiv.appendChild(handlediv);
               
                container.appendChild(newdiv);
               
                var dd = new YAHOO.example.DDResize(name, name + "_handle", "panelresize");
                var dd2 = new YAHOO.util.DD(name, "paneldrag");
                dd2.addInvalidHandleId(name + "_handle");
               
                container.appendChild(script);
           }        

On 6/26/06, Jon Ceanfaglione <[EMAIL PROTECTED]> wrote:
I am such a cottonheadedninnymuggins - to quote Will Ferrell...  Thanks Albert for beating me against the head...I don't know what I was thinking.

On 6/26/06, Albert Weinert <[EMAIL PROTECTED]> wrote:

Jon Ceanfaglione schrieb:

> With all due respect, I don't think we're speaking the same language
> yet.  Yes, that will work fine if the elements already exist when you
> write the page to the browser.  In this case, I am dynamically creating
> those elements like this:
>
> function createSomething
> {
> var name = 'MyPanelIdOrSomeThingElse';
> var newdiv = document.createElement("div");
> newdiv.setAttribute ("id", name);
> }
>
> <a href="" something</a>
>
> After that, I need to register the newly created elements with YUI.  Am
> I missing something still?

function createSomething(name)
{
var newdiv = document.createElement("div");
newdiv.setAttribute("id", name);
}


createSomething('MyPanelIdOrSomeThingElse');
createSomething('SomeThingYou');

--

Freundliche Grüße

Albert Weinert

http://der-albert.com






--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ajax.NET Professional" 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/ajaxpro

The latest downloads of Ajax.NET Professional can be found at http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---

Reply via email to