-
Re: Post Race!
I have been toying around with the idea of building a modern-day web application without using any JavaScript.
So far, I've been able to implement a SPA pattern using URL fragments and a modal dialog using a hidden checkbox. Not only that, but I've been able to implement both at the same time.
E.g., assume you're viewing a football schedule and want to toggle which season to show. The seasons are stored in containers (e.g., section elements) where their identifier is set so that when the URL fragment references it, it is shown. A user clicks on a select, which is really just a label styled to look like a select that toggle a checkbox. Then when the checkbox is checked the modal is visible and there is a list of all the seasons. The list items are actually forms, with the method set to the URL fragment that represents the season and inside the forms are single submit button styled to look like anchors and inside the buttons are labels which the toggle the checkbox to hide the modal.
HTML Code:
<div class="modal-container">
<input type="checkbox" id="schedule-season-toggle" class="visually-hidden" aria-controls="schedule-season-modal" aria-label="Open dialog for schedule season selection" />
<label for="schedule-season-toggle" role="button" tabindex="0" aria-haspopup="dialog" aria-controls="schedule-season-modal">
<span>Season</span>
<span aria-hidden="true"></span> <!-- dropdown caret -->
</label>
<dialog id="schedule-season-modal" aria-modal="true" aria-labelledby="schedule-season-modal-title" aria-describedby="schedule-season-modal-description">
<label for="schedule-season-toggle" aria-hidden="true"></label> <!-- gray background behind dialog -->
<div tabindex="-1">
<h2 id="schedule-season-modal-title">Seasons</h2>
<p id="schedule-season-modal-description">Pick a season below to load its schedule.</p>
<ul>
<li>
<form action="#schedule-season-2025" method="get">
<button type="submit" role="link">
<label for="schedule-season-toggle">2025</label>
</button>
</form>
</li>
<li>
<form action="#schedule-season-2024" method="get">
<button type="submit" role="link">
<label for="schedule-season-toggle">2024</label>
</button>
</form>
</li>
</ul>
<label for="schedule-season-toggle" role="button" aria-label="Close dialog">×</label>
</div>
</dialog>
</div>
-
Re: Post Race!
I had a dream last night where I was going to post a question on here. The question had to do with an exception I was getting where the debugger didn't seem to be taking me to the right line. The line I was going to was something fundamentally innocent, like a comment or a simple assignment, or something like that. The error message was totally opaque, too, though I don't remember what it was.
-
Re: Post Race!
I then changed a setting so that the debugger would break when an exception was thrown (which probably stemmed from a thread in the .NET forum), and got a better error message at an earlier place. However, the error message said that there was an invalid use of the word 'perhaps'.
"Perhaps" is not a key word in any language I have ever heard of, though it would be kind of funny for it to be a key word in either fuzzy logic or quantum computing.
In any case, it was more definitive, so I went to look at the line that caused the problem, and found that it was not a line of source code, but a JPEG of a line of source code that was inserted into the source code file. Therefore, at least according to the logic of the dream, that line should not have executed since it wasn't code but a picture of code.
I was going to start a thread asking how the compiler could be running a line of code from a picture of a line of code.
-
Re: Post Race!
That is becoming increasingly possible, though, as AI would be able to interpret the picture into code and run it. Still, it didn't seem right.
-
Re: Post Race!
Apparently, this was a pretty disturbing dream, as I awoke to find the pillow was damp from sweat, which I have never had happen before unless it was either VERY hot (it was not), or I had a fever (I don't think I did).
-
Re: Post Race!
In any case, the result was some posts in the post race rather than a thread on the subject.
-
Re: Post Race!
I've dreamt that I was coding before, but nothing like that.
-
Re: Post Race!
Yeah, I can't say I've ever had a dream like that, either.
-
Re: Post Race!
-
Re: Post Race!
Are you sure it was a dream?
-
Re: Post Race!
-
Re: Post Race!
-
Re: Post Race!
She's a light brown hare?
-
Re: Post Race!
That's the Bugs Bunny version of the lyrics.
-
Re: Post Race!
-
Re: Post Race!
-
1 Attachment(s)
Re: Post Race!
Quote:
Originally Posted by
Shaggy Hiker
Off to lunch.
There's a new place for lunch here.
-
Re: Post Race!
I think I might have eaten there.
-
Re: Post Race!
My father knew I'd try pretty nearly anything, and he knew a lot of edible plants around our property. We tried a variety of different things.
-
Re: Post Race!
I was in Deaf Valley tonight. It was rough to watch this game to say the least.