You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
________________________________
From: pwFoo <notifications@github.com>
Sent: Friday, May 17, 2019 8:55:13 AM
To: anywhichway/tlx
Cc: Subscribed
Subject: [anywhichway/tlx] Loop during load remote template (with local xampp server) (#15)
Is it a bug or a problem with 127.0.0.1 as server?
Template is loaded in an endless loop instead of once.
[image]<https://user-images.githubusercontent.com/333408/57929481-bdc82380-78b3-11e9-894b-3f13ef8f024d.png>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#15?email_source=notifications&email_token=ABF2US653WYCBYWSCHNE6D3PV2TLDA5CNFSM4HNVA6D2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GUMWO3Q>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABF2US4OO7XSTMVMAKOVUPTPV2TLDANCNFSM4HNVA6DQ>.
<html lang="en">
<head>
<!--<script src="https://unpkg.com/tlx/browser/tlx.min.js"></script>-->
<script src="https://unpkg.com/tlx@1.0.39/browser/tlx.min.js"></script>
<style>
input:invalid {
box-shadow: 0 0 5px 1px red;
}
</style>
</head>
<body>
<div>
You must be loading this file over an http server for this example to work
</div>
<div id="message"></div>
<hr />
<div id="name">First Name: <input id="firstName" name="firstname" value="${firstname}" protect placeholder="Enter a name"></div>
<hr />
<div>Below there should be a message that a load has failed.</div>
<div id="fail"></div>
<script>
const model = tlx.reactor({firstname:"joe"}),
url = new URL("./template.html",window.location.href),
missing = new URL("./missing.html",window.location.href);
tlx.view(document.getElementById("message"),{model,template:url.href});
tlx.view(document.getElementById("name"),{model,linkModel:true});
tlx.view(document.getElementById("fail"),{model,template:missing.href});
</script>
</body>
</html>
Is it a bug or a problem with 127.0.0.1 as server?
Template is loaded in an endless loop instead of once.
The text was updated successfully, but these errors were encountered: