Looks like that ClearAll() Javascript function wants to operate on some elements in 
another frame, correct?

To access another frame in Javascript, the syntax always begins with top.frame_name, 
where frame_name is the value specifed for the name attribute of the associated 
<frame> tag. To call a JS function in another frame, you do 
top.frame_name.functionName().

So it sounds like the best way for you to implement this "Clear all" function is to 
place the javascript function in the target frame. Then change the onclick of your 
input tag to "top.frame_name.ClearAll('Omit');". Then your ClearAll function can do 
whatever it needs to do in that frame.

Hope this is what you're looking for...

Mike Mertsock
Alfred University Web Team

>Hi,
>
>I have the following line.
>
>               <input class="butts" type="button" value="ClearAll" 
>name="Clear_All_OMITDIR" OnClick="ClearAll('Omit');">
>
>When this button is clicked I want to pass the value of the button to 
>another template in another frame. 
>Whats the correct syntax? Do I have to create a session or cokkie?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to