troubleshooting Question

Problem with changing folder path for iframe in aspx page

Avatar of kbessent1966
kbessent1966 asked on
ASPJSPMicrosoft SharePoint
8 Comments1 Solution2082 ViewsLast Modified:
I have a aspx page within SharePoint that diplays a network folder share in an iframe view. This works fine, except I need to make a large number of these pages all pointing to various folders. So I would like to place a simple variable in the iframe src path that can be set from a simple text file or other aspx page.
In the example code below, the networkSHAREpath is the variable.

<iframe id="I1" name="I1" class="Myframe" width="100%" frameborder="0" src="file://networkSHAREpath/">
Your browser does not support inline frames or is currently configured not to display inline frames.
<script type="text/jscript" language="javascript">
 I1.location.href= "file://networkSHAREpath/";

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 8 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros