Client Script error on Version Change

This post has 15 replies

Not Ranked
Posts: 1
sjrayven Posted: Tue Sep 13, 2005 @ 10:08 AM
We recently updgraded to 3.0 , A piece of code which worked in version 2.1 is not working in 3.0 , The java script error i get is 'cart_browser_ie' is undefined . This seems to happen only with the standalone rotator componet .

Same issue Can be replicated in the example found in

C:\Program Files\ComponentArt\Web.UI 3.0 for ASP.NET\live_examples\Rotator\design\simple_rotator.aspx

To replicate the issue . REMOVE THE FOLLOWING LINE from the above file .Use IE to view

  

<demos:header DemoName="Simple Rotator" id="pageHeader" SiteMapFile="rotatorDemos.xml" ProductLogo="logo_rcr.gif" runat="server"/> 




The Rotator would become empty .

I know this might be a simple fault from my side but im unable to find anything i did wrong

i assume as this is just a user control and removing it shldnt cause issues in the rotator , but it fails with the script error . Am i doing some thing wrong ?
Top 10 Contributor
Posts: 806
jovan Posted: Wed Sep 14, 2005 @ 1:22 PM
Rotator code has been updated for version 3.0 in order to bring it to XHTML compliance. It is possible that some bug was introduced and we will try to address it as soon as possible, probably with the very next patch. If you have a simple example demonstrating a problem with the Rotator, please send it in to support@.

That said, the procedure you outline, removing the header user control from the demo page may result in a malformed HTML in the page. If there is a bug with the Rotator, it would be ideal if we had an example that exhibits the bug despite the HTML of the page being well-formed.
Top 500 Contributor
Posts: 23
nathanparrett Posted: Fri Sep 16, 2005 @ 3:16 AM
Hi there

Rotator does not work for me either

Same error for me.
Top 500 Contributor
Posts: 23
nathanparrett Posted: Fri Sep 16, 2005 @ 3:35 AM
Using asp.net 2.0


<%@ Page %>
<%@ Register TagPrefix="ComponentArt" Namespace="ComponentArt.Web.UI" Assembly="ComponentArt.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="EN">
  <head>
    <title>Product Scroller</title>
    <link href="../../../common/baseStyle.css" type="text/css" rel="stylesheet" />    
    <link href="rotator.css" type="text/css" rel="stylesheet" />
  </head>

  <body>  
    <form id="Form1" method="post" runat="server">

    <div class="DemoArea">

    <table cellspacing="0" cellpadding="0" border="0" width="340">
    <tr>
      <td class="RotatorFrame" onmouseover="this.className='RotatorFrameOver'" onmouseout="this.className='RotatorFrame'">
        <ComponentArt:Rotator id="Rotator1" runat="server" 
          CssClass="Rotator" width="340" height="77" 
          ScrollInterval="10"
          RotationType="SmoothScroll" 
          SlidePause="4000"
          PauseOnMouseOver="true" 
          XmlContentFile="products.xml">
        <SlideTemplate>
        <table width="325" cellpadding="0" cellspacing="2" border="0">
        <tr>
          <td class="MainText" align="center">
            <span class="ProductTitle"><%# DataBinder.Eval(Container.DataItem, "Title") %></span><br />
            <span class="ProductText"><%# DataBinder.Eval(Container.DataItem, "Text") %></span><br />
            <span class="ProductPrice"><%# DataBinder.Eval(Container.DataItem, "Price") %></span><br />

          </td>
          <td style="width:70px;"><img src="images/<%# DataBinder.Eval(Container.DataItem, "Image") %>" alt="" width="70" height="70" style="border:none;" /></td>
        </tr>
        </table>
        </SlideTemplate>
        </ComponentArt:Rotator>   
      </td>
    </tr>
    </table>

    </div>


    </form>
  </body>
</html>

Not Ranked
Posts: 1
ibennett Posted: Sat Sep 17, 2005 @ 12:10 PM
Same for me on both IE and FireFox
Top 500 Contributor
Posts: 18
USER80625408 Posted: Sun Sep 18, 2005 @ 2:34 PM
I am also getting the same js error "cart_browser_ie" undefined.

Any thoughts on this CA? This is my code and client scripts to do exist in my web application. I don't see any definition in your js files to define cart_browser_ie.

<ComponentArt:Rotator id="Rotator1" runat="server"
				CssClass="Rotator" Width="749" Height="96"
				RotationType="SmoothScroll"
				ScrollInterval="5"
				SlidePause="8000"
				PauseOnMouseOver="true"
				XmlContentFile="~/CAbanners.xml">
				<SlideTemplate>
					<a onclick="window.open(this.href,'_blank');return false;" href="<%# DataBinder.Eval(Container.DataItem, "Url") %>"><img src="images/<%# DataBinder.Eval(Container.DataItem, "Image") %>" alt="" width="468" height="60" style="border:none;" /></a>
				</SlideTemplate>
	        </ComponentArt:Rotator>


I don't see how your samples work as this is basically copied straight from the samples.

Todd
Top 10 Contributor
Posts: 806
jovan Posted: Mon Sep 19, 2005 @ 11:36 AM
I am unable to reproduce this error, but it is of very high priority. As soon as we manage to reproduce it, we will fix it. This will almost certainly be in the very next patch - most likely within a week.
Not Ranked
Posts: 1
lean Posted: Mon Sep 19, 2005 @ 2:29 PM
I Found a Simple Way to fix it !

Just Add :

<script src="/componentart_webui_client/3_0_1507/A573G988.js" type="text/javascript"></script>

ahead of the

<ComponentArt:Rotator id="Rotator1" </ComponentArt:Rotator>

That Would Work As Ver 2.x !!!
Top 10 Contributor
Posts: 806
jovan Posted: Tue Sep 20, 2005 @ 10:26 AM
You are correct, that is one way to fix it. As mentioned in this thread the actual fix will be out within a week. Until then there are now two workarounds.
Not Ranked
Posts: 2
BlueSys Posted: Tue Sep 27, 2005 @ 7:00 AM
Once I add the code
<script src="/componentart_webui_client/3_0_1507/A573G988.js" type="text/javascript">
in my page ahead of
<ComponentArt:Rotator id="Rotator1" runat="server"...

I have another error:
'componentArt_rotator is undefined.'

Any idea...
Top 10 Contributor
Posts: 6,694
stephen Posted: Tue Sep 27, 2005 @ 12:58 PM
The patched version is now available, and this problem has been fixed.
Not Ranked
Posts: 9
hakano Posted: Wed Nov 2, 2005 @ 3:13 AM
In which version is this corrected in? It doesn't work for me with the componentart:callback control in 3.0.1576!
Not Ranked
Posts: 8
mikesafier Posted: Wed Nov 2, 2005 @ 9:58 AM
Seems like they re-introduced this bug in 3.0.1576

I'm having the same problem with the Callback control now... worked fine with 3.0.1545
Top 10 Contributor
Posts: 806
jovan Posted: Thu Nov 3, 2005 @ 8:08 AM
You are correct, this is a known bug. Please refer to this knowledge base article.

Thank you for reporting this problem. It will be fixed in the very next service pack.
Not Ranked
Posts: 3
nirsubha Posted: Tue Aug 31, 2010 @ 1:02 PM
Sir ; 

any one Please Send me any of Component Art  Rotator Example File

Please....

my email address nirsubha@ibibo.com 
Page 1 of 2 (16 items) 1 2 Next >