PDA

View Full Version : button not rendering



joefox
18 Jun 2009, 3:37 PM
So i have a <div id="select_group_button_editrolltype"></div> on a page that i call via ajax, and i wanted that div to be converted to my button, ive had this working before so, i try this again and now it wont render. i put an alert in my javascript and it fires off the function, but no button is created.

any ideas?


new Ext.Button({

function renderbutton()
{
text: 'Set Value',
handler: UpdateGroupForRoleType
}).render(document.body,'select_group_button_editrolltype');// where you want to render
}

joefox
18 Jun 2009, 3:40 PM
I see my problem, i am pulling the information back from a iframe, so the div is really in an iframe, is there a way to look in that iframe for this element?

Ive treid to do [MyframeID].document.body but it says it cant find it