rejetto forum

Software => HFS ~ HTTP File Server => Beta => Topic started by: XCanG on March 24, 2013, 06:02:11 PM

Title: paging with many files
Post by: XCanG on March 24, 2013, 06:02:11 PM
Hello! Can you improve it somehow change pages? I would be very happy ^_^°
(http://)
PS interface translated into my language, it does not pay any attention
Title: Re: paging with many files
Post by: rejetto on March 25, 2013, 12:37:51 PM
i see you have 15k files in your folder.
On my i7 with SSD it took 24 seconds to get 2k files the first time, and 10 seconds later.
I bet you are getting very terrible times with your configuration,  how can it be acceptable?
you should reorganize your files in more folders.
Title: Re: paging with many files
Post by: XCanG on March 29, 2013, 12:39:36 PM
i see you have 15k files in your folder.
On my i7 with SSD it took 24 seconds to get 2k files the first time, and 10 seconds later.
I bet you are getting very terrible times with your configuration,  how can it be acceptable?
you should reorganize your files in more folders.
I took at first time in 3 minutes, and next time in 1 minute(all time, see next). But this is not a problem, the problem lies elsewhere. When the browser starts to load the page first: it hangs for 10 seconds; second: switches pages do not work properly. 1 page: 1—N; 2 page: 2—N+1; 1000 page: 1000—N+999 (P.S. original javascript don't changing) this is not good. The only solution is to display all.
About this folder: I can not reorganize it, and I'd rather use the links to the files in it, rather than a reference to the folder.
Quote
I bet you are getting very terrible times with your configuration
Do not have anything like this. HFS does not load my computer, and he has such a configuration:
Processor    x86 Family 15 Model 3 Stepping 4 GenuineIntel ~2999 MHz
Memory(RAM)   2 304,00 MB
Hard Disk    WDC WD2001FASS-00W2B0 2 TB
Title: Re: paging with many files
Post by: rejetto on March 31, 2013, 02:29:58 PM
for me 3 minutes and 1 minute is a terrible time, but if it's not a problem for you...

i tested the paging and it's working fine here: page 2 is not showing any file in common with page 1.
I see your template is customized. I guess you broke something while customizing.
Try yourself the default template and see.
Title: Re: paging with many files
Post by: XCanG on April 02, 2013, 09:25:31 AM
Try yourself the default template and see.
hmm. In a default template page switcher working good, but in my template I didn't change this javascript. How return working this script without starting a new template?
Title: Re: paging with many files
Post by: rejetto on April 21, 2013, 06:04:00 PM
the javascript relies on the things that are on the page, so you can broke it even by only changing too much on the page.

There's no easy way to fix your template, it takes a programmer to work on it.
Title: Re: paging with many files
Post by: crazyboris on April 22, 2013, 08:01:33 PM
compare the code from your own template and the code from the default template.
do a backup on your own template and copy paste the script from default page and see if it works.
Title: Re: paging with many files
Post by: XCanG on April 26, 2013, 01:40:34 PM
crazyboris, that's the problem. The original script and the one in the tpl-file are the same. And I have not changed it. Maybe there are some another dependent parts of the code?

rejetto, if I start to do it all over again, chances are that get on the same thing, because all I was doing it: stylized design (css) and translated into my language all the titles and error pages.
Title: Re: paging with many files
Post by: rejetto on April 28, 2013, 08:11:33 PM
as i said, the javascript probably relies on the content of the page.
So the same script may not work after your changes.
What you can do is
1. backup your tpl
2. ensure the backup is ok, you don't want to loose your template :)
3. put the default template
4. test the template to see the problem doesn't exist
5. introduce changes from your template, step-by-step
6. at every step, test to see if the problem appears, so you know that latest step introduced it
7. you can eventually post the accused change here on the forum, so that someone may help you
Title: Re: paging with many files
Post by: XCanG on June 04, 2013, 05:06:18 PM
I forgot to write on time.

The problem was only one line:
<script type="text/javascript" src="/jq.js"></script>
Here I include my jQuery, but rather just another version 1.8.3
And with that line problem was solved:
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.js"></script>
Still, it is possible to use the library 1.8.3 instead 1.4.4?
Title: Re: paging with many files
Post by: rejetto on June 23, 2013, 01:02:19 PM
when you update jquery compatibility is not always an automatic thing.
Sometimes you need to change the scripts.