Log in

View Full Version : slide show problem in iframe



noora
07-08-2010, 06:32 AM
Hi, i am facing another problem in asp page, i have an iframe that pointing to slideshow show page, the slideshow is working fine in ifram but the descreveal: "peekaboo" feature is not working in iframe.

how can i fix this problem

djr33
07-08-2010, 08:58 PM
1. How can we help without more information? We need a link to your page or to see your code. (Or at the very least, a much more detailed description.)

2. Why is this posted in ASP? Is this a question about the ASP programming language, or about iframes? This probably belongs in HTML, and it can be moved there once we know where is best.

noora
07-12-2010, 05:44 AM
Thank you for your reply, actually the code is written in asp pages thats why i posted it in ASP, both page the slideshow and the ifram writting in ASP page
Note that the descreveal: "peekaboo" feature is working in Google Chrome
the code that handle an ifram in asp page

<!--Image Gallery-->
<iframe title="Image Gallery" src="ScrollImages/ImageGallery/imageGallery2.asp" width="240" height="210" marginwidth="0" marginheight="0" scrolling="auto" frameborder="0" longdesc=""></iframe>
<!--/image Gallery-->


Code for slideshow in page imageGallery2.asp

<html>
<head>
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="fadeslideshow.js">
</script>
<script type="text/javascript">
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [237, 202], //width/height of gallery in pixels. Should reflect dimensions of largest image

<%
//connect to the database
rs.open "select * from mcontents where ctype = 'image'",cn
%>

imagearray: [
<%
if not(rs.eof or rs.bof) then
while not(rs.eof)
rid=rs("rid")
title = rs("rtitle")%>
["GetBinaryImage.asp?rid=<%=rid%>", "", "", "<%=title%>"]
<%
rs.movenext
if not(rs.eof) then
response.write ","
end if
wend
end if
%>
],
displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 500, //transition duration (milliseconds)
descreveal: "peekaboo",
togglerid: ""

})

</script>
</head>
<body>
<div id="fadeshow1"></div>
</body>
</html>


could you please help me

jscheuer1
07-12-2010, 09:51 AM
Looks like you got the asp part working great.

Does peekaboo work when the page isn't in the iframe?

Anyways, this is probably not the asp per se, though it may have to be corrected through the asp code. That depends upon just how much of the code is written in asp, and upon exactly what the problem is.

I notice that the page you posted for the slide show has no DOCTYPE. Without a valid URL DOCTYPE (an HTML 5 DOCTYPE will also work), the descriptions when and if they appear will not fill the entire area intended in some browsers.

Not having the sort of DOCTYPE I'm talking about will not prevent the descriptions from appearing though. But you haven't made clear exactly what the problem is. Is it that they are not appearing, or that they don't look right?

Also (I tried this out) with those dimensions on the slide show and those dimensions on the iframe and scrolling auto for the iframe as you also post, there will be scroll bars on the iframe which will partially obscure the descriptions in all browsers.

But this sounds (though, as I say, it's not clear from what you've said) like the descriptions just aren't there. And even with scroll bars and no DOCTYPE, you would see part of the descriptions.

So if this hasn't solved the problem, we will probably need a link to the page. Once we have that, we can see the served source code to get a better idea of why these descriptions aren't showing up.

If you want more help:

Please post a link to a page on your site that contains the problematic code so we can check it out.

noora
07-12-2010, 10:42 AM
Thank you very much for your reply
actually the page allready have a doctype but i didnt paste the whole code
as i said that the this code is working perfectly in Google Chrome but not in internet explorer



as you can see the descreveal: "peekaboo" feature is not working if you open this page in internet explorer but if you open it using another like google chrome.

noora
07-12-2010, 10:52 AM
i think i have problem in my internet explorer cuz sometimes its working and sometime its not

anyway thank you very much for your helps :)

jscheuer1
07-12-2010, 01:03 PM
What happens when it doesn't work?