Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 1:41 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Dynamic image not showing first time
PostPosted: February 2nd, 2005, 4:49 pm 
Offline

Joined: January 19th, 2005, 5:15 pm
Posts: 83
Location: Netherlands
I'm getting a imagepath from a database. When I open the page with the dynamic image, it only shows after a mouseclick, when I keep in initially hidden the first 0,1s (still takes longer than that when played) or the second time it apears in the loop of pages.


Code i'm using:
Code:
query = "SELECT * FROM lok_afbeelding ORDER BY id ASC";

//connection database
var db = new Database("DSN=" + database);
result = db.ExecuteSQL(query);

// show image
AFBEELDING1 = result.pad;
afbeelding.Show();


Any idea on how to show the image instantly.


Top
 Profile  
 
 Post subject:
PostPosted: February 2nd, 2005, 5:32 pm 
Offline

Joined: October 25th, 2004, 12:27 pm
Posts: 526
Location: Digital Workshop
Hi,

Thank you for your enquiry.

Without seeing the publication in question, it is difficult to be certain what could be causing this. The only thing that springs to mind is that you may have placed your database connection actions within a function, but have not called this function when the page is displayed. However, if this were the case, the function would have most likely have been included in your script excerpt.

I have provided below a link to download a slideshow example which determines the images to be displayed from a database. As you will see, the first record determined as soon as the page is displayed and the image is shown without delay.

Please compare this to your publication to identify where the problem may be occuring. If you have any further problems, please forward your publication .imp file, DSN file and database to support@digitalworkshop.com and I will be happy to investigate further.

Kind regards,


You do not have the required permissions to view the files attached to this post.

_________________
Robin Garrett
Digital Workshop Technical Support


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 51 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group