Welcome to WebmasterWorld Guest from 54.145.246.183

Forum Moderators: open

Using Javascript from an HTC File that's Defined in the Parent

An HTML Component (HTC) question

   
9:43 pm on Dec 11, 2002 (gmt 0)

10+ Year Member



I have an HTC file that i'm attempting to reference a function contained within another page (the page that utilizes the behavior).

Although my HTC file can easily manipulate items (eg: spans, form elements, etc) using conventions like
"parent.document.all['holder'].value = 'tito';", i can't seem to access functions on that page using something like:
parent.document.fncSplicer();
or
fncSplicer();

Any idea how to utilize functions that exist outside the HTC file itself?

rob

<sorry, no emails in signatures>

[edited by: tedster at 4:48 am (utc) on Dec. 12, 2002]

5:08 am on Dec 12, 2002 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



HTML Components (HTC files) are IE specific and I've never used them for that reason. But I do have a Microsoft page bookmarked as a reference "just in case":

Microsoft HTC Reference [msdn.microsoft.com]

I hope that's some help - it may at least help others who read this thread to get a handle on what HTC files are.

 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month