close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Timing Issues

Thread began 11/29/2018 1:42 pm by vernon webb | Last modified 12/06/2018 11:59 am by Ray Borduin | 52 views | 5 replies |

vernon webb

Timing Issues

Ray,

The below two pages you worked on and these pages are taking a very long time to load. I know that they are reading from a folder location on the hard drive, but there really isn't a whole lot of files in there but there so I'm not 100% sure that the cause.

Sign in to reply to this post

Ray BorduinWebAssist

The issue on this page was with the code you added to create a zip file from the files. You put the code inside of the FOR loop that displays all of the files so that the .zip file was being re-created after each file listed on the page. That means you were re-creating the zip file 20+ times before displaying the page.

I thought at first it was just the creating of the zip file in general was taking the time, but after a little debugging I realized it only took a second or two, but it was running 20 times before the page loads.

I moved it on your two pages that list files so that the .zip file is only created once. The page could be sped up even further so that the zip file is only created once the user clicks the link to download it, but the time doesn't seem bad now.

Sign in to reply to this post

vernon webb

This post has been deleted.

Ray BorduinWebAssist

For the printing issue, I'd add some CSS like:

<style type="text/css">
.printOnly {
display: none;
}
@media print {
.printOnly {
display: block;
}
.dontPrint {
display:none;
}
}
</style>



Then you can add the classes printOnly for elements you only want to show when printed, and dontPrint for elements you don't want shown on the printed page.

So add class="dontPrint" to the menu and radio buttons and other navigation elements, and add class="printOnly" to the full path to the file that you want on the printed page.

Sign in to reply to this post

vernon webb

Sorry I don't understand what you mean by, "and add class="printOnly" to the full path to the file that you want on the printed page"

Sign in to reply to this post

Ray BorduinWebAssist

I mean you can identify things that you do or don't want shown on the printed page as opposed to the page displayed in the browser by adding classes like:

<div class="printOnly">print this but don't show it on the web</div>
<div class="dontPrint ">display this on a web page, but don't print it</div>

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...