Isaac,
You are right there is something wrong with the path "top.mainFrameSet.main". I tried
my old version, but replaced the URL with ## in the href & and removed the target,
then the same error showed up.
I thought I would show you the path of items, and maybe you will see my error, because
I sure don't.
Now from the top-down:
=======================
Main Frame Set contained in index.cfm
<frameset cols="175,*" id="mainFrameSet" frameborder="NO" border="0" framespacing="0">
<frame src="menu.cfm" name="menu" id="menu" frameborder="0" scrolling="Auto">
<frame name="main" id="main" src="main.cfm">
</frameset>
=======================
Contents of: imageadmin/addImage.cfm (this page displays in the frame "main")
<form action="addItem.cfm" method="POST" name="frmAddItem" id="frmAddItem">
<input type="text" name="ImageName" id="ImageName" value="" size="40" maxlength="100">
<iframe src="files.cfm" name="files" id="files" width="280" height="200"></iframe>
<iframe src="viewer.cfm" name="viewer" id="viewer" width="280" height="200"></iframe>
=======================
Contents of: imageadmin/files.cfm (this page displays in the iframe "files" in
imageadmin/addImage.cfm)
<script language="JavaScript">
<!--
function getMyImage(iName) {
top.mainFrameSet.main.document.frmAddItem.ImageName.value=iName;
top.mainFrameSet.viewer.location.href='viewer.cfm?image='+iName;
}
//-->
</script>
</head>
<a href="javascript:getMyImage('#jsstringformat(subDir &
getImages.name)#');"#theClass#>#name#</a>
which translates to:
<a href="javascript:getMyImage('shoes/sm_002.jpg');" class="reversed">sm_002.jpg</a>
I truly appreciate your help!
Thank you,
Stan Winchester
[EMAIL PROTECTED]
http://www.aftershockweb.com/
Tel. 503-244-3440
Fax 503-244-3454
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Get the mailserver that powers this list at
http://www.coolfusion.com
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4