Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Databases
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 25th, 2005, 12:20 PM
Friend of Wrox
 
Join Date: Jun 2004
Location: Montreal, Quebec, Canada.
Posts: 106
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problems with loading external pics into an IFrame

Hello,
While I searched your site to find the solution to my problem, I haven't found any, which prompted me to email you with the issue at hand:
Brief: I have an employee directory that is loaded into a table (dynamically). I also have a picture stored in a folder (same root) that with FSO will "push" a camera icon to link to that employee's picture, if there is a picture. So far, so good.

On the page with the dynamic table I also have a Floating <Iframe> with images of all employees scrolling side to side (Slide show effect)

When the end-user clicks on the camera icon (in the dynamic table) that employees pic should replace the slideshow but instead the picture relaces the whole page instead of loading into the IFRAME. ?!

Here's the chunk of code that calls the Floating IFrame:

var iframetag='<iframe id="masterdiv" name="masterdiv" src="../people.htm" width="101px" height="150px" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="1" scrolling="no" style="position: absolute; left: -500px; top: -500px; border:8px solid #336699;"></iframe>'


Here's the code calling the camera icon (if there is a corresponding picture in the image folder)

 <%
  If (fso.FileExists(strpath)) Then%>
  <a href="<%=PICurl%>" OnClick="javascript:changePic()" class="docs"><img src="../img/EMPpic.jpg" border="0"></a>
   <%
 Else
  response.write("<P class=""dir"">n/a</P>")
 End If
 %>

And here's my changePic function:

<script>
function changePic(){
window.frames['masterdiv'].window.location.replace()
}
</script>


Please help??

Thank you,
nancy
Reply With Quote
  #2 (permalink)  
Old April 26th, 2005, 01:42 AM
Friend of Wrox
 
Join Date: Apr 2005
Location: Cochin, , India.
Posts: 186
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:
window.frames['masterdiv'].window.location.replace()
The problem is you are replacing the window content.

Change window to Document

Code:
window.frames['masterdiv'].document.location.replace()
Reply With Quote
  #3 (permalink)  
Old April 26th, 2005, 10:33 AM
Friend of Wrox
 
Join Date: Jun 2004
Location: Montreal, Quebec, Canada.
Posts: 106
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I copied your code and when the camera icon is clicked the picture still replaces the whole page ???

Any clue why?

Thank you,
nancy
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need iframe loading indicator surendran Javascript How-To 1 September 24th, 2008 03:32 AM
Need Help with path for loading Pics (app.path) Tabbasum Beginning VB 6 2 November 15th, 2007 04:57 AM
targeting external page in another page's IFRAME nancy HTML Code Clinic 1 March 30th, 2006 03:22 PM
loading XML Documents in IFrame in IE 5.0 anil_tiwari Javascript 1 February 2nd, 2006 08:01 PM
Loading Code to External Program algip ASP.NET 1.x and 2.0 Application Design 0 March 18th, 2004 03:21 PM



All times are GMT -4. The time now is 03:14 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.