Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 2nd, 2004, 12:10 PM
Registered User
Join Date: Apr 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem of script functions in-house but not on th


I have as which would say a small problem.

I have to find a script diaporama on the Web, when I it insert in my page and that I test it in-house, script functions well, but once that I puts it on line and that I test it, there remains blocked on the "Loading..."

 Here script:
<OBJECT id="DAControl" classid="CLSID:B6FFC24C-7E13-11D0-9B47-00C04FC2F51D " width="500
" height="350">
<SCRIPT LANGUAGE="Javascript">
sys = DAControl.PixelLibrary;
loadImage = sys.ImportImage("loading.gif");
tabDAImage = new Array();
tabDAImage[0] = sys.ImportImageAsync("phami/01.jpg",loadImage);
tabDAImage[1] = sys.ImportImageAsync("phami/02.jpg",loadImage);
tabDAImage[2] = sys.ImportImageAsync("phami/03.jpg",loadImage);
tabDAImage[3] = sys.ImportImageAsync("phami/04.jpg",loadImage);
tabDAImage[4] = sys.ImportImageAsync("phami/05.jpg",loadImage);
tabDAImage[5] = sys.ImportImageAsync("phami/06.jpg",loadImage);
DAControl.Image = sys.ModifiableBehavior(tabDAImage[0].Image);
indPosDA = 0;
function diaporamaDA()
  imAcc = tabDAImage[indPosDA].Image;
  if (indPosDA > 5) indPosDA = 0;
  numAnim = sys.Sub(sys.DANumber(1),sys.LocalTime);
  coefRot = sys.Mul(numAnim,sys.DANumber(4*Math.PI));
  imTrans = imAcc.Transform(sys.Compose2(sys.Scale2UniformAnim (numAnim),
  compDA = sys.Until(imTrans,sys.Timer(1),tabDAImage[indPosDA].Image);
<A HREF="javascript:diaporamaDA()">Photo suivante</A></div>

Help me.

Thank you in advance


Old April 4th, 2004, 08:51 AM
joefawcett's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts

Presumably it's a security issue. What zone is the status bar showing? Double click on the icon and check permissions for downloading unsafe controls.



Similar Threads
Thread Thread Starter Forum Replies Last Post
Beer House developer plb BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 47 February 18th, 2008 02:11 PM
Problem with forum of the beer house kherrerab BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 August 31st, 2006 03:33 PM
The Beer House kooltech BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 May 8th, 2006 10:31 PM
Help My house on Fire Matthew Access VBA 9 November 30th, 2005 03:21 PM
Java vs Java Script functions joemorrison74 J2EE 0 July 6th, 2005 04:28 PM

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