• Beschreibung des Problems:
    in Evo habe ich den Code für ein Wetterwidget (von hotel-mix.de) in einen Chunk kopiert und das im Seitentemplate aufgerufen. Alles ok.
    In Revo versuche ich es nach dem gleichen Muster (mit angepasstem Syntax). Es passiert nichts.
    Hier ist der Code vom Widget:
    <!-- weather widget start --><div id="m-booked-bl-simple-week-vertical-4630"> <a href="//hotel-mix.de/weather/wriezen-w501510" class="booked-wzs-160-275" style="background-color:#006600;"> <div class="booked-wzs-160-275-data wrz-03"> <div class="booked-wzs-160-275-right"> <div class="booked-wzs-day-deck"> <div class="booked-wzs-day-val"> <div class="booked-wzs-day-number"><span class="plus">+</span>27</div> <div class="booked-wzs-day-dergee"> <div class="booked-wzs-day-dergee-val">°</div> <div class="booked-wzs-day-dergee-name">C</div> </div> </div> <div class="booked-wzs-day"> <div class="booked-wzs-day-d"><span class="plus">+</span>27°</div> <div class="booked-wzs-day-n"><span class="plus">+</span>19°</div> </div> </div> <div class="booked-wzs-160-275-city">Wriezen</div> <div class="booked-wzs-160-275-date">Dienstag, 12</div> </div> </div> <table cellpadding="0" cellspacing="0" class="booked-wzs-table-160"> <tr> <td class="week-day">Montag</td> <td class="week-day-ico"><div class="wrz-sml wrzs-18"></div></td> <td class="week-day-val"><span class="plus">+</span>27°</td> <td class="week-day-val"><span class="plus">+</span>19°</td> </tr> <tr> <td class="week-day">Mittwoch</td> <td class="week-day-ico"><div class="wrz-sml wrzs-18"></div></td> <td class="week-day-val"><span class="plus">+</span>20°</td> <td class="week-day-val"><span class="plus">+</span>14°</td> </tr> <tr> <td class="week-day">Donnerstag</td> <td class="week-day-ico"><div class="wrz-sml wrzs-18"></div></td> <td class="week-day-val"><span class="plus">+</span>19°</td> <td class="week-day-val"><span class="plus">+</span>12°</td> </tr> <tr> <td class="week-day">Freitag</td> <td class="week-day-ico"><div class="wrz-sml wrzs-18"></div></td> <td class="week-day-val"><span class="plus">+</span>19°</td> <td class="week-day-val"><span class="plus">+</span>13°</td> </tr> <tr> <td class="week-day">Samstag</td> <td class="week-day-ico"><div class="wrz-sml wrzs-18"></div></td> <td class="week-day-val"><span class="plus">+</span>21°</td> <td class="week-day-val"><span class="plus">+</span>15°</td> </tr> <tr> <td class="week-day">Sonntag</td> <td class="week-day-ico"><div class="wrz-sml wrzs-18"></div></td> <td class="week-day-val"><span class="plus">+</span>25°</td> <td class="week-day-val"><span class="plus">+</span>18°</td> </tr> </table> <div class="booked-wzs-center"> <span class="booked-wzs-bottom-l">7-Tage-Vorhersage</span> </div> </a> </div><script type="text/javascript"> var css_file=document.createElement("link"); css_file.setAttribute("rel","stylesheet"); css_file.setAttribute("type","text/css"); css_file.setAttribute("href",'//s.bookcdn.com/css/w/booked-wzs-widget-160x275.css?v=0.0.1'); document.getElementsByTagName("head")[0].appendChild(css_file); function setWidgetData(data) { if(typeof(data) != 'undefined' && data.results.length > 0) { for(var i = 0; i < data.results.length; ++i) { var objMainBlock = document.getElementById('m-booked-bl-simple-week-vertical-4630'); if(objMainBlock !== null) { var copyBlock = document.getElementById('m-bookew-weather-copy-'+data.results[i].widget_type); objMainBlock.innerHTML = data.results[i].html_code; if(copyBlock !== null) objMainBlock.appendChild(copyBlock); } } } else { alert('data=undefined||data.results is empty'); } } </script> <script type="text/javascript" charset="UTF-8" src="http://widgets.booked.net/weather/info?action=get_weather_info&ver=4&cityID=w501510&type=4&scode=2<id=3458&domid=591&cmetric=1&wlangID=2&color=006600&wwidth=250&header_color=ffffff&text_color=333333&link_color=08488D&border_form=1&footer_color=ffffff&footer_text_color=333333&transparent=0"></script><!-- weather widget end -->

    Wo kann das Problem liegen?
  • Habe es selbst herausgefunden. Manchmal hilft selber nachdenken.
    Das komplette Script in einem Snippet per echo ausgeben. Die Anführungsstriche, die die echo-Ausgabe umschließen, im Script selbst mit Backslashes versehen und schon klappt es.
  • Haha hast du super gemacht smiley
    Wenn der Krieg ausbricht, war der Frieden offenbar ein Gefängnis.

Um eine Antwort zu verfassen musst Du dich anmelden.