Template for dynamic web page view version 2.2

If you made a template for printing or HTML export, you can offer it to the others here. You can also ask here for help about these templates
im2020
Posts: 11
Joined: 2006-08-15 14:05:20

Post by im2020 »

OK - figured out relationship between movies.js, cyan.css and layout.xml so my colour question is sorted.
ajwconsult
Posts: 76
Joined: 2008-02-22 21:50:31

Offline Email Popup

Post by ajwconsult »

Hello bonienl,

Can you confirm if there is a way to resolve the offline issue of the contents of the email box been removed when you accept the security policy.

1. choose select
2. filter selected titles
3. select email (popup box with choice selection)
4. Online no question about security, offline it says to allow active x control)
5. Accept active-x control and choice selection dissappears.

It works perfect online, and not had any issue, but I wanted to provide the library on a cd or in a compressed file to extract so slow speed users can view library on their own system and make their selections.

There are ways of switching off the security policies, but it would not be appropriate for me to tell anyone who obtained the library to switch off that feture.

Appreciate all your continued updates and look forward to your thoughts on this mattter.

AJW
ajwconsult
Posts: 76
Joined: 2008-02-22 21:50:31

The XML file

Post by ajwconsult »

Hi m8,

Got a good question for you.

The XML file... Is there a way to make it compatible to keep it as it is with the ability to be able to imported into a program called filemaker pro.

I was tank now that filemaker is compatible with the iPhone, I would like to create a front end that will import the data from the XML file online.

The idea is to have the full online library as usual, but have this separate mod for those with iphones and ipads as the usual browsers have problems as mentioned before.

I have tried imputing the XML into a couple of programms, but all say not a compatible XML format.

Appreciate any advice as usual.
hpsam
Posts: 1
Joined: 2011-02-27 13:13:17

Bad sort with some title

Post by hpsam »

Hi,
I have found two problems with sort.

First, with layout2 sort doesn't work when I clic on columns headers.
The fact is that the var column is undefined when we pass through the sortMovies function :

Code: Select all

  }else{
    if(sortkey!="") column.innerHTML=column.innerHTML.arrowOff();
    sortdir=false;
I just modify the test like that and all work :

Code: Select all

  }else{
    if(sortkey!="" && column) column.innerHTML=column.innerHTML.arrowOff();
    sortdir=false;
This happen because this layout use a dropdown menu in the first column for the sort. So no arrow is set at startup.


Second point, the title sort have bugs with titles that contains only numbers (like the films 300, 2012...).
The problem is in the fix function used by the custom function wich return a number and not a string for these title. And when we compare string and number with > or < it's always false.

First sorts in makeCategories and addCategory are done with xxxx.sort(alphabetic) and are good. But on title header clic sort is done by xxxx.sort(custom).
So I modify function sort like that :

Code: Select all

function sort(k){
  sortkey=k;
  sortkey!='Date'?sortfield=sortkey:sortfield=dateYMD;
  if (sortkey=='TranslatedTitle') {
    movies[category]=movies[category].sort(customSortTitle);
  } else {
    movies[category]=movies[category].sort(custom);
  }
}
And I add this function :

Code: Select all

function customSortTitle(x,y){
  var x=x.getAttribute(sortfield).toLowerCase(),
      y=y.getAttribute(sortfield).toLowerCase();
  if(x>y) return sortdir?-1:1;
  if(x<y) return sortdir?1:-1;
  return 0;
}
Regards
bonienl
Posts: 156
Joined: 2008-02-24 10:10:43
Location: Netherlands

Post by bonienl »

Hi hpsam,

Thanks for spotting this and your solution.

I will incorporate this in the new version 3 (with a small addition to support the three types of titles that may be used).

bonieNL
ajwconsult
Posts: 76
Joined: 2008-02-22 21:50:31

Re: Template for dynamic web page view version 2.2

Post by ajwconsult »

Hi BonieNL,

Its been a while.

Remember the mailform you created that seems to be a big hit I suggested and you created..... Is there a way to get the mailform to work on localhost.

Everything has been working perfect, but, due to the hike in price for my domain, I have setup localhost for the private access to this database.

everything works as it should
1. put tick in choice of title
2. select from menu, my choice which presents the selected titles only
3. select email from menu bar
4. popup is resented as it should, fields filled in as they should be, press the send button and nothing happens. any ideas :-)
BenSit
Posts: 1
Joined: 2020-10-19 08:20:08
Location: Belarus
Contact:

Template for dynamic web page view version 2 2

Post by BenSit »

I have used this template and it works fine in Chrome & Firefox. But when using Explorer on the index page only, the links do not work and some pics will not show sometime. Using Microsoft Edge again in only the index page links work and no pics show. It is very confusing since the second page woks fine and I modified the index page to make it, and it has no problems at all. Do you have any suggestions?
Post Reply