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.

Tapestry :: JavaScript - Libs import

Empfohlene Antworten

Hallo,

ich benutze Tapestry 4.1.5 und will auf meine Seite einpaar JavaScript - Libs einbinden, die sollen aber allerding in dem HTML-Head stehen. Ich will die Libs aber mittels Tapestry einbinden und nicht per Hand. (sonst muss ich 40 Dateien beim Änderung anpassen )


<html jwcid="@Shell" title="11_P">


	<!-- DAS WILL ICH MITTELS TAPESTRY EINBINDEN -->

	<script type="text/javascript" src="js/jcarousel/lib/jquery-1.2.3.pack.js"></script>		

	<script type="text/javascript" src="js/jcarousel/lib/jquery.jcarousel.pack.js"></script>		

        <!-- DAS HIER AUCH -->					

	<link rel="stylesheet" type="text/css" href="http://127.0.0.1:8080/11_P/js/jcarousel/lib/jquery.jcarousel.css" />

	<link rel="stylesheet" type="text/css" href="http://127.0.0.1:8080/11_P/js/jcarousel/skins/tango/skin.css" />


	<body jwcid="@Body">


		<h1>Tapestry 01</h1>


	</body>

</html>

Ich habe mit @Script versucht, der Tag schreibt mit aber leider alles in dem Body-Tag.

Also die Frage ist, wie kann ich die JavaScript-Libs mittels Tapestry in dem Head-Tag einbinden? :confused:

Grüße

Ich habe das Problemm gelöst, und zwar es recht wenn die JavaScript-Libs in dem Body-Tag importiert werden.

Ich habe es in dem *.script Datei folgendes eingefügt:

   

   <include-script resource-path="js/jcarousel/lib/jquery-1.2.3.pack.js" />

   <include-script resource-path="js/jcarousel/lib/jquery.jcarousel.pack.js" />

:upps

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.