RouteViewer Problems

List of problems related to the RouteViewer and possible solutions

RouteViewer plug-in doesn't show your route anymore: errormessage "You have to provide a route (routeyou_viewer_route)"

Problem: You plugged in your route in you rwebsite but the route is not displayed anymore. You get the error message: "You have to provide a route (routeyou_viewer_route)"

Solution: The problem is related to your html editor you are using (eg. RapidWeaver) You probably pasted the code of the RouteViewer plugin or widget in your html editor. Some of the html editor strip all the CRs (carraige returns)and make it into a long string (see the example below).

In that case, you have to manually add the CRs in html code, to get back to the origianl situation (see example below).

Some of the html editor turn the script into the following long string without CRs:

<script type="text/javascript"><br />routeyou_viewer_width = 700;<br />routeyou_viewer_height = 410;<br />routeyou_viewer_color_background = 'FFFFFF';<br />routeyou_viewer_language = 'en';<br />routeyou_viewer_route = 55715;<br /></script><br /><script src="" type="text/javascript"></script><br />        <br />

What it should be (it might need manual adaptation of the html editor)

<script type="text/javascript">
    routeyou_viewer_width = 700;
    routeyou_viewer_height = 410;
    routeyou_viewer_color_background = 'FFFFFF';
    routeyou_viewer_language = 'en';
    routeyou_viewer_route = 55715;
<script src="" type="text/javascript"></script>

Some of the html editor don't allow you to do this. An alternative solution has been implemented by the RouteYou user iBert.

He used a link to a .js file containing the variables (in the example below: ""). In a second step, the RouteYou script of the viewer is executred(with the uploaded variables). Here the example code and result.

<script src="" type="text/javascript"></script>
<script src="" type="text/javascript"></script>


© 2006-2019 RouteYou -