Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
"Hello World" with FormAPI
BomProveito
Greetings,
Why doesn't the enclosed DCT open an "alert" when it is first loaded? (I copied the "script" code from the documentation.)
We're running TS V5.5.2 w/ SP2 on Windows 2000. My browser is IE 6.
Thanks,
S.
----------------------------------
datacapture.cfg:
<?xml version="1.0" standalone="no"?>
<!DOCTYPE data-capture-requirements SYSTEM "datacapture5.0.dtd">
<data-capture-requirements type="content" name="PC_Jobs_highlight">
<ruleset name="Jobs Highlight">
<description>
Enter Jobs Highlight Information.
</description>
<script>
<![CDATA[
alert ("Hello, world!");
]]>
</script>
<item name="section">
<label>Section</label>
<text required="t" size="50" maxlength="100" />
</item>
<item name="header">
<label>Header</label>
<text required="t" size="50" maxlength="100" />
</item>
<item name="text">
<label>Text</label>
<textarea rows="10" cols="64" external-editor-inline="visualformat" required="t" />
</item>
<item name="label_for_job_overview_link">
<label>Label for Job Overview Link</label>
<text required="t" size="50" maxlength="100" />
</item>
</ruleset>
</data-capture-requirements>
Find more posts tagged with
Comments
Migrateduser
Have you enabled FormAPI in your iw.cfg and restarted the UI? Have you tried getting the userscript examples that come with TST to work?
BomProveito
I had forgotten about iw.cfg; thanks an awful lot for answering my question!
Wonder why is it necessary to formally enable FormAPI ...
Regards,
S.
Migrateduser
Well, it causes the browser to do more processing so it does add some overhead I believe to turn it on. I am not quite sure why else the default would be for off. Maybe someone else on the list knows.