Active Slideshow Pro Support Product Page

This topic was archived

activex problems

Asked 12 May 2007 16:12:04
1
has this question
12 May 2007 16:12:04 karl hemmings posted:
Any solutions for this Object & Embed TAG problem would be appreciated.

Well here's the thing. I have upgraded to version 1.52. of Slideshow Pro, uninstalled and then reinstalled the slideshow pro into my .asp page. Then made sure that Dreamweaver had 'repaired' the Object TAG provided by their latest update 8.02. Uploaded the .asp page, the .swf, the xml file and the .js that dreamweaver generates in a script folder.

However the page still crashes in the latest version if IE7.
Here's the page: www.webzen4.co.uk/index3.asp

Here's the code that requests the Object:
<script type="text/javascript">
AC_FL_RunContent( 'codebase','download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0','width','202','height','157','id','This Weeks Show','align','middle','src','slideshowpro','wmode','transparent','quality','best','flashvars','xmlFile=ThisWeeksShow_xml.asp&preloaderBackColor=0x0099FF&preloaderBorderColor=0xCCCCCC','scale','noscale','bgcolor','#FFFFFF','pluginspage','www.macromedia.com/go/getflashplayer','movie','slideshowpro' ); //end AC code
</script><noscript><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="202" height="157" id="This Weeks Show" align="middle">
<param name="FlashVars" value="xmlFile=ThisWeeksShow_xml.asp&preloaderBackColor=0x0099FF&preloaderBorderColor=0xCCCCCC" />
<param name="movie" value="slideshowpro.swf" />
<param name="quality" value="best" />
<param name="scale" value="noscale" />
<param name="wmode" value="window" />
<param name="bgcolor" value="#FFFFFF" />
<embed src="slideshowpro.swf" id="This Weeks Show" wmode="window" quality="best" FlashVars="xmlFile=ThisWeeksShow_xml.asp&preloaderBackColor=0x0099FF&preloaderBorderColor=0xCCCCCC" scale="noscale" bgcolor="#FFFFFF" type="application/x-shockwave-flash" width="202" height="157" pluginspage="www.macromedia.com/go/getflashplayer" />
</object></noscript>

Replies

Replied 14 May 2007 14:02:38
14 May 2007 14:02:38 Georgi Kralev replied:
Hi Karl,

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>However the page still crashes in the latest version if IE7.
Here's the page: www.webzen4.co.uk/index3.asp<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

I have tried to check your page but it crashed both under IE, FF, and Opera.
It looks like somewhere in your page is a code generating infinite loop.

I do not know if this is the problem but ThisWeeksShow_xml.asp these not generate the appropriate xml.

Please, check your code.

Regards,

Georgi Kralev

----------------------------------
Support - www.DMXzone.com
Replied 14 May 2007 19:00:56
14 May 2007 19:00:56 karl hemmings replied:
Hi Georgi,

No I simply followed the instructions on how to create a 'dynamic slideshow' at this link: www.dmxzone.com/showDetail.asp?TypeId=7&NewsId=11469

There is not an infinite loop present on the page as the recordset can only show one result, nothing looping.

So the code I have generated is step by step as that shown in the help file above.

Have you any further ideas?
Replied 15 May 2007 12:34:28
15 May 2007 12:34:28 Georgi Kralev replied:
Hi Karl,

The problem is either with your database or with your recordset.
If you check the following link www.webzen4.co.uk/ThisWeeksShow_xml.asp you will see that the xml information is not correct.
There are not slide tags.

Debug your ThisWeeksShow_xml.asp file.

Until this issue is resolved Active Slideshow Pro will not work properly

Regards,

Georgi Kralev

----------------------------------
Support - www.DMXzone.com
Replied 15 May 2007 16:50:01
15 May 2007 16:50:01 karl hemmings replied:
Hi again,

OK i have created 2 new pages so we can examine the code in a little more detail.

www.webzen4.co.uk/1slideshow.asp
&

www.webzen4.co.uk/1slideshowxml.asp

When you visit this page you can see that it cannot parse the requested file.
Visit: www.webzen4.co.uk/1slideshow.asp?ID=18

Now if you could examine the code and offer some pointers to teh likely problem it would be appreciated. Note that there is no 'Repeat' command on the page requesting the slides so no infinite loop is possible.

Here's the code for 1slideshow.asp:

&lt;%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%&gt;
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&gt;
&lt;title&gt;Untitled Document&lt;/title&gt;
&lt;style type="text/css"&gt;
&lt;!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
--&gt;
&lt;/style&gt;
&lt;script src="Scripts/AC_RunActiveContent.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;script type="text/javascript"&gt;
AC_FL_RunContent( 'codebase','download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0','width','275','height','175','id','1slideshow','align','middle','src','slideshowpro','wmode','window','quality','best','flashvars','xmlFile=1slideshowxml.asp&preloaderBackColor=0x0099FF&preloaderBorderColor=0xCCCCCC','scale','noscale','bgcolor','#FFFFFF','pluginspage','www.macromedia.com/go/getflashplayer','movie','slideshowpro' ); //end AC code
&lt;/script&gt;&lt;noscript&gt;&lt;object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="275" height="175" id="1slideshow" align="middle"&gt;
&lt;param name="FlashVars" value="xmlFile=1slideshowxml.asp&preloaderBackColor=0x0099FF&preloaderBorderColor=0xCCCCCC" /&gt;
&lt;param name="movie" value="slideshowpro.swf" /&gt;
&lt;param name="quality" value="best" /&gt;
&lt;param name="scale" value="noscale" /&gt;
&lt;param name="wmode" value="window" /&gt;
&lt;param name="bgcolor" value="#FFFFFF" /&gt;
&lt;embed src="slideshowpro.swf" id="1slideshow" wmode="window" quality="best" FlashVars="xmlFile=1slideshowxml.asp&preloaderBackColor=0x0099FF&preloaderBorderColor=0xCCCCCC" scale="noscale" bgcolor="#FFFFFF" type="application/x-shockwave-flash" width="275" height="175" pluginspage="www.macromedia.com/go/getflashplayer" /&gt;
&lt;/object&gt;&lt;/noscript&gt;

&lt;/body&gt;
&lt;/html&gt;


Here's the code for 1slideshowxml.asp:

&lt;%@LANGUAGE="VBSCRIPT"%&gt;
&lt;!--#include file="Connections/webzen4conn2.asp" --&gt;
&lt;%
Dim SlidesRS__varID
SlidesRS__varID = "0"
If (Request.QueryString("ID" &lt;&gt; "" Then
SlidesRS__varID = Request.QueryString("ID"
End If
%&gt;
&lt;%
Dim SlidesRS
Dim SlidesRS_cmd
Dim SlidesRS_numRows

Set SlidesRS_cmd = Server.CreateObject ("ADODB.Command"
SlidesRS_cmd.ActiveConnection = MM_webzen4conn2_STRING
SlidesRS_cmd.CommandText = "SELECT * FROM showpics WHERE showID = ?"
SlidesRS_cmd.Prepared = true
SlidesRS_cmd.Parameters.Append SlidesRS_cmd.CreateParameter("param1", 5, 1, 50, SlidesRS__varID) ' adDouble

Set SlidesRS = SlidesRS_cmd.Execute
SlidesRS_numRows = 0
%&gt;&lt;slideshow loop="true" stream="true" random="false" bgcolor="0xFFFFFF" flash8="false" showmute="true" margin="5" mutecolor="0xFFFFFF"&gt;
&lt;slide url="images/slideshowmain/&lt;%=(SlidesRS.Fields.Item("pic".Value)%&gt;" duration="3" fill="squeeze" background="0x000000"&gt;
&lt;transition effect="fade" position="0" easing="Linear" duration="2" /&gt;
&lt;kenburns panstart="9" panend="9" zoomstart="1.3" zoomend="1.3" /&gt;
&lt;/slide&gt;
&lt;/slideshow&gt;
&lt;%
SlidesRS.Close()
Set SlidesRS = Nothing
%&gt;

Replied 16 May 2007 14:52:22
16 May 2007 14:52:22 Georgi Kralev replied:
Karl,

In the select SQL statement of 1slideshowxml.asp file you are expecting ID parameter.
Check the following lines in
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>Dim SlidesRS__varID
SlidesRS__varID = "0"
If (Request.QueryString("ID" &lt;&gt; "" Then
SlidesRS__varID = Request.QueryString("ID"
End If
%&gt;
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

But in your page (1slideshow.asp) there is not passed ID parameter:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>&lt;param name="FlashVars" value="xmlFile=1slideshowxml.asp&preloaderBackColor=0x0099FF&preloaderBorderColor=0xCCCCCC" /&gt;
&lt;embed src="slideshowpro.swf" id="1slideshow" wmode="window" quality="best" FlashVars="xmlFile=1slideshowxml.asp&preloaderBackColor=0x0099FF&preloaderBorderColor=0xCCCCCC" scale="noscale" bgcolor="#FFFFFF" type="application/x-shockwave-flash" width="275" height="175" pluginspage="www.macromedia.com/go/getflashplayer" /&gt;<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Therefore, the SlidesRS__varID is initialized with value "0"
I believe that you do not have a record in your Database with showID = 0
So, it return the following error:

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>ADODB.Field error '800a0bcd'
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
/1slideshowxml.asp, line 24 <hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

I hope this will help you.

Best regards,



Georgi Kralev

----------------------------------
Support - www.DMXzone.com

Reply to this topic