if I understand you are including JS in an fTL.
this will only be activated after the ftl has been rendered.
FTL are not like a PHP or ASP page. it is put through a renderer code
that changes it to html
so only the information rendered on the resultant html page will be
available. at that time
${screens.render("component://common/widget/CommonScreens.xml#states")
has already been rendered.
the only DOM available is the web page in html.
hope that makes sense
=========================
BJ Freeman
Strategic Power Office with Supplier Automation
<http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com <http://www.specialtymarket.com/>
Systems Integrator-- Glad to Assist
Chat Y! messenger: bjfr33man
S.Hage sent the following on 2/7/2011 12:54 PM:
Well, what I want to do, I created my own 'Create Party User Interface'
using javascript + DOM (in .ftl file), and its not exactly the same create
party in OFBiz. But in some places in the code I want to use what is already
done in ofbiz like states and country, I found in many place in the code the
'${screens.render("component://common/widget/CommonScreens.xml#states")};'
is used, and I thought its easy to incorporate it into my javascript + DOM
function.