Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Dreamweaver HTML - Text only?

Empfohlene Antworten

Veröffentlicht

Hi.

i want to put a weather forecast on my homepage from National and Local Weather Forecast, Radar, Map and Report but it says that i need to: "When you paste the code into your HTML editor, please ensure you are pasting it in as plain text, not as HTML. Please refer to your HTML editor help files for instructions on how to paste text correctly". I have tried all i can think of e.g. inserting it in "code" mode but it only displays the actual link and not the image.

The code is:

<div id="wx_module_5614">   

<a href="http://www.weather.com/weather/local/GRXX0068">Corfu Weather Forecast, Greece</a></div>

<script type="text/javascript">   

/* Locations can be edited manually by updating 'wx_locID' below.  Please also update */  

/* the location name and link in the above div (wx_module) to reflect any changes made. */   

var wx_locID = 'GRXX0068';   

/* If you are editing locations manually and are adding multiple modules to one page, each */   

/* module must have a unique div id.  Please append a unique # to the div above, as well */   

/* as the one referenced just below.  If you use the builder to create individual modules */   

/* you will not need to edit these parameters. */   

var wx_targetDiv = 'wx_module_5614';   

/* Please do not change the configuration value [wx_config] manually - your module */   

/* will no longer function if you do.  If at any time you wish to modify this */  

 /* configuration please use the graphical configuration tool found at */   

 /* https://registration.weather.com/ursa/wow/step2 */   

 var wx_config='SZ=180x150*WX=FHW*LNK=SSNL*UNT=C*BGC=ffffff*MAP=null|null*DN=http';   

 document.write('<scr'+'ipt src="'+document.location.protocol+'//wow.weather.com/weather/wow/module/'+wx_locID+'?config='+wx_config+'&proto='+document.location.protocol+'&target='+wx_targetDiv+'"></scr'+'ipt>');

 </script>

Can anyone think of anything?

it looks like the Javascript you are using is not working correcty

document.write('<scr'+'ipt src="'+document.location.protocol+'//wow.weather.com/weather/wow/module/'+wx_locID+'?config='+wx_config+'&proto='+document.location.protocol+'&target='+wx_targetDiv+'"></scr'+'ipt>');

it's just building up a link dynamically, you can build up this link manually and take a look if its correct.

this might not even work in every website. (document.write should not be used anymore)

Try using Firefox' JS-Debugger. If you have no knowledge of javascript this might get ugly if you have to go deeper into the script.

Since this is an existing website i presume this script is used on other websites. You might want to check out how its integrated into the html-Source there.

Can anyone think of anything?

I can think of many things ;)

But concerning your problem, I think it is that pasting HTML code will escape the code so in your document (code view, or plan text view) there will be:


<a href="....

insted of

<a href="...

I dont know Dreamweaver, but maybe there is an option to escape/unescape selected text? If not open your page with notepad and paste the text there. This should solve the problem.

Danke fuer eure Hilfe.

Ich habe den Fehler durch Zufall gefunden.

Und zwar war aus irgend ein Grund die Domain wo ich das o.g. script einsetzen wollte nicht zu weather.com uebertragen worden.

Was ich mich viel eher frage, wo kommt der Englisch-Deutsch-Switch her? +am kopp kratz+ und warum nicht gleich deutsch?

:rolleyes:

Entschuldigt den switch,

Ich war kurz vorher in einen englischen Forum wegen einer anderen Sache.

Habe mein Brain nicht so schnell umgeschaltet.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.