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.

JS Text an Formular übergeben

Empfohlene Antworten

Veröffentlicht

Ich will ein über ein angeklicktes Bild Text an ein Formular übergeben, genauso wie bei den Smilies. Dazu habe ich folgenden Code:


<script language="text/javascript"><!--

function insertImage(imgName) {

      document.newsform.FormNewsImage.value += imgName;

      document.newsform.FormNewsImage.focus();

}-->

</script>

// Ein Bild mit dem zugehörigen Link sieht so aus:

<a href="javascript:insertImage('image.jpg')"><img src="hsnews/images/image.jpg" border="0"></a>

Das ist praktisch der gleiche Code wie hier im Forum läuft aber bei mir unter Opera 6.04 und IE 6 nicht. Deshalb poste ich noch den Code des Formulars, obwohl ich keinen Fehler darin sehen kann:

<form action="/news/server/index.php" method="post" class="newsForm" name="newsform">

<fieldset class="newsFieldset" width="500"><legend class="newsLegend">News schreiben: </legend>

<table width="490" border="0"><tr><td widht="50" class="newsCellForm">

<b>Newstitel: </b></td><td class="newsCellForm" colspan="2" width="440">

<input type="text" name="FormNewsTitle" class="newsTextInput" maxlenght="255" size="50">

</td></tr><tr><td class="newsCellForm" width="50"><b>Newstext: </b></td><td class="newsCellForm" colspan="2">

<textarea name="FormNewsText" cols="48" rows="10" class="newsTextarea"></textarea></td>

</tr><tr><td class="newsCellForm" width="50"><b>Bilddatei: </b></td><td class="newsCellForm">

<input type="text" maxlength="10" class="newsTextInput" name="FormNewsImage"></td>

<td class="newsCellForm"><input type="checkbox" name="noImage" value="noImage" class="newsTextInput"> Kein Bild</td>

</tr><tr><td class="newsCellForm"><b>Quelle: </b></td><td class="newsCellform">

<input type="text"" name="FormNewsSource" class="newsTextInput" maxlength="255" size="30"></td><td class="newsCellForm"><input type="checkbox" name="noSource" value="noSource" class="newsTextInput">

 Keine Quelle</td></tr><tr><td class="newsCellForm" width="240" colspan="2"><a href="#" class="newsLink">

Bildname in der Datenbank suchen.</a></td><td class="newsCellForm">

<a href="#" class="newsLink">Neues Bild auf den Server laden.</a></td></tr><tr>

<td colspan="2" class="newsCellForm"><input type="submit" value="Abschicken" name="NewsFormSubmit" class="newsButton">

</td></tr></table></fieldset></form>

Kann mir da irgendwer helfen? Das Script des Forums geht übrigens -> :rolleyes:. Danke für jede Hilfe.

Ihr werdet lachen, aber mit script language="JavaScript" geht es.

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.