- Tips'n'tricks
- It is not advisable to have an empty HTML title in decorator.xml, because it will be transformed to "<title />". Eventhough this is valid syntax, it may cause problems with Internet Explorer.
- If the decorator file decorator.xml cannot be validated by the system upon upload, it will be ignored when calling FlexWin. So in case you want to disable your decorator, you can invalidate it by merely adding som random text in the beginning of the file. Then the default DIBS decorator will be used instead.
- "I uploaded my decorator files, but I would like to check out the default DIBS decorators. Is that possible?" Sure, just specify which DIBS decorator you would like to use by giving it as an argument when calling FlexWin. Valid names are "default", "rich" and "basal".
- You can use HTML entities in your decorator. However, you have to encode them. For example, the HTML entity for the letter æ is æ. Encoded it becomes &aelig;. This "extra" encoding of the initial ampersand is due to the internal parsing of the decorator file.
- The cancel button has to be on the page. But if you want, you can hide it and make your own cancel button, which then calls the real cancel button:
- Hide the real cancel button:
document.getElementById("wwctrl_payreturn_0").style.display = "none"; - Make your own cancel button:
<div onclick="javascript:document.forms.payreturn.submit();">Afbryd</div>
- Currently there is no DIBS tag for displaying order information in FlexWin. Nevertheless you can get your decorator to do just that, by sending the order information to FlexWin, and then have some JavaScript do the processing of that information. This is explained further in this example.
- Here you can download a complete example of the Flexwin default decorator.