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.

Coldfusion->Javascipt

Empfohlene Antworten

Veröffentlicht

Hallo miteinander,

ich mal wieder.

Ich will nen Newsticker mit Javascript machen, der seinen zu tickenden Text aus einer Access Datenbank nimmt.

Die Verbindung hab ich mit Coldfusion MX gemacht.

Habe zwei einzelne Programme, ein Javascript mit einem Ticker, und eine Cfml Datei, die die Daten aus der Datenbank zieht.

Jetzt will ich die beiden Dateien zu einer machen und letztendlich als .cfm speichern.

Hab jetzt schon ein bisschen am quelltext rumgebastelt, aber irgendwie klappt das noch nicht so ganz.

könnt ihr mal schauen, ob ihr fehler findet?

wäre schwer nett. hier der quelltext:

<html>

<head>

<title> daba übung </title>

</head>

<body>

<CFQUERY Name="qtest" DATASOURCE="t3">

SELECT Tickertext

FROM tix

</CFQUERY>

<cfoutput query="qtest">

<script language="JavaScript" type="text/javascript">

<!--

var i=500;

var j=0;

var geschwindigkeit=150;

var test="";

var param= "msg" value=#qtest.tickertext#;

function Laufleiste()

{

document.forms[0].elements[0].blur();

test+=text.charAt(i);

if ((text.charAt(i)!=" " || text.charAt(i+1)!=" ")

&& i<text.length)

{

document.forms[0].elements[0].value=test+'_';

i++;

}

else if (text.charAt(i)==" " && text.charAt(i+1)==" ")

{

i++;

test="";

}

else

{

if (j==0)

test="";

if (j<msg.length)

test+=msg.charAt(j);

else

test=" "+test;

document.forms[0].elements[0].value=test;

j++;

if (j==40)

{

i=0;

j=0;

test="";

}

}

window.setTimeout('Laufleiste()', geschwindigkeit);

}

//-->

</script>

</cfoutput>

</head>

<body onload="Laufleiste();">

<form>

<input type="text" size="60" name="T1" disabled>

</form>

</body>

</html>

danke euch im voraus.

greets

fred

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.