Author Topic: XML flyout menu question  (Read 1013 times)

0 Members and 1 Guest are viewing this topic.

Offline Johnmac

  • Senior Contributor
  • ****
  • Posts: 183
    • Westminster Massachusetts Weather
XML flyout menu question
« on: May 06, 2017, 07:00:13 PM »
I am trying to add the following to my menu - https://www.ventusky.com/?p=46.1;-57.0;3&l=wind-300hpa and when I do, the XML file does not like the semi-colons. I have this opening in a new tab and not within my Saratoga Template. Is there a way around this issue? it works fine if I take out the "p=46.1;-57.0;3&". The XML error states that it is expecting a colon, which does not make any sense to me.

Thanks,

John
John
Westminster, MA USA

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: XML flyout menu question
« Reply #1 on: May 06, 2017, 07:22:27 PM »
Hi John,
try replacing each semi-colon with

Code: [Select]
%3B

Offline Johnmac

  • Senior Contributor
  • ****
  • Posts: 183
    • Westminster Massachusetts Weather
Re: XML flyout menu question
« Reply #2 on: May 06, 2017, 07:43:09 PM »
Hi John,
try replacing each semi-colon with

Code: [Select]
%3B

Jáchym

I tried your suggestion and get the same error message

John
Westminster, MA USA

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: XML flyout menu question
« Reply #3 on: May 06, 2017, 07:58:36 PM »
Quote
same error message

what error message, can you provide some link?

Offline Johnmac

  • Senior Contributor
  • ****
  • Posts: 183
    • Westminster Massachusetts Weather
Re: XML flyout menu question
« Reply #4 on: May 06, 2017, 08:04:06 PM »
Here is the error I get after I update the flyout menu and try to open my website.

XML error: EntityRef: expecting ';' at line 100
John
Westminster, MA USA

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: XML flyout menu question
« Reply #5 on: May 06, 2017, 08:18:48 PM »
OK, well thats different :D

Notice the error, it is not "not liking semi-colon", it is expecting one :D

In this case most likely the problem is in the & sign.

Try replacing & with
Code: [Select]
&

Offline Johnmac

  • Senior Contributor
  • ****
  • Posts: 183
    • Westminster Massachusetts Weather
Re: XML flyout menu question
« Reply #6 on: May 06, 2017, 08:34:44 PM »
OK, well thats different :D

Notice the error, it is not "not liking semi-colon", it is expecting one :D

In this case most likely the problem is in the & sign.

Try replacing & with
Code: [Select]
&

OK, that did the trick. Thanks for the assistance.

John
John
Westminster, MA USA

 

anything