Try this to replace the js function:
<script language="JavaScript">
<!--
function getMyImage(iName) {
frames.parent.document.frmAddItem.ImageName.value=iName;
frames.parent.viewer.document.location.href='viewer.cfm?image='+iName;
}
//-->
</script>
I'd agree also with the comment someone else made about Mozilla -- it's got much
better debugging for JavaScript than any of the other browsers.
> 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.va
> lue=iName;
> top.mainFrameSet.viewer.location.href='viewer.cfm?imag
> e='+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/uns
> ubscribe.cfm?user=633.558.4
s. isaac dealey 972-490-6624
new epoch http://www.turnkey.to
lead architect, tapestry cms http://products.turnkey.to
tapestry api is opensource http://www.turnkey.to/tapi
team macromedia volunteer http://www.macromedia.com/go/team
certified advanced coldfusion 5 developer
http://www.macromedia.com/v1/handlers/index.cfm?ID=21816
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics.
http://www.fusionauthority.com/signup.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4