Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
setFocus() not working in TS 6.7.2
tamz
Hi,
Im trying to set focus one of the item in dcr while loading.
i have taken a simple dcr and used " IWDatacapture.getItem("/XYZ/name").setFocus(); "
Nothing wrong in .js and dct, i believe.
irrespective of an item,its jus focusing the very first item in dct.
Pl provide any clues..!!
Find more posts tagged with
Comments
Jamik
can you post your dct and the js associated with the dct?
tamz
Here goes my DCT:
--------------------------------------------------------------------------
work status
Enter the work status
Name
Enter the metadta name
Content
Enter the metadata content
<br />
<script language="javascript" location="template-type" src="tennis.js"/>
--------------------------------------------------------------------------
Here is my tennis.js file
function init()
{
var vtitle;
vtitle=IWDatacapture.getItem("/tennisCard/person[1]/name");
vtitle.setFocus();
}
IWEventRegistry.addFormHandler("onFormInit",init);
-----------------------------------------------
tamz
sorry for the previous code
pl find the attached code
tamz
sorry for the previous post,
pl find the attached doc