![]() |
[QUOTE=Madpoo;386030]I would posit that disabling Javascript in your browser is doing-it-wrong™ :smile:
What you're telling me is that showing a spinner while content loads is hacky. Oh... you! :razz: [SNIP] [B]One of these days we're going to finally convince you that Javascript is not a bad thing.[/B] One feature at a time, we'll wear you down. :smile:[/QUOTE] I find this unlikely, as it would require giving up a perpetual target for carping, without which some might be shown up as ir-rass-ible pikers who are just floundering about. |
[QUOTE=Madpoo;386030]I would posit that disabling Javascript in your browser is doing-it-wrong™ :smile:
What you're telling me is that showing a spinner while content loads is hacky. Oh... you! :razz: I only have that *feature* on one page, and now I've forgotten which one. It was more to see how well that approach would work... it was something else where it's just dumping a lot of data. Oh, it's in the "Found factors" report. Sometimes a really large range is requested and it just takes a long time to load. It's not the server's fault, honest. I challenge you to (with Javascript *enabled*) fail to appreciate the beauty of showing a brief spinner while the table loads on a page like this: [URL="http://www.mersenne.org/report_factors/?exp_lo=2&exp_hi=10000&exp_date=&fac_len=&dispdate=1&B1=Get+Factors"]http://www.mersenne.org/report_factors/?exp_lo=2&exp_hi=10000&exp_date=&fac_len=&dispdate=1&B1=Get+Factors[/URL] There's no way in pure CSS to do that. Javascript can detect when the document is loaded and remove a class... try doing that in just CSS. :) One of these days we're going to finally convince you that Javascript is not a bad thing. One feature at a time, we'll wear you down. :smile:[/QUOTE]Hehe, nice try. But guess what? Can't guess? Okay I'll tell you. Sure you can't guess? Okay. My browser has it's own indicator about the load status of a page.:shock: Perhaps all those newfangled modern browsers aren't clever enough to show users a download progress indicator? If so, then I am pleased I didn't [u]down[/u]grade to one of those crippled new browsers. :razz: Maybe one day I'll convince everyone else how terrible JS is. Once piece of animated annoyance at a time. So the content is still good and no complaints there. Although my minions do go for those flashy empty content sites and I don't think anyone wants them running amok around here. [size=1][color=grey]PS: I didn't actually see that page you linked in all its JS glory so I don't know what I am missing. But I did see a perpetually frozen spinner GIF because I have turned off animations. And now I wonder if someone has made a JS spinner version to overcome the "problem" of users turning off animations because clearly it was a mistake and we need to use JS to give such wonderful things back to the users. Kind of reminds me of recently when FF was updated and forced everyone to have JS turned on, the bastards. They lost my trust then and there. Anyhow I digressed more than I intended to in this little aside. Sorry. Won't happen again. Really.... And why is colour in these BB tags spelled without a U? And another thing ... :truck:[/color][/size] |
[QUOTE=retina;386063]PS: I didn't actually see that page you linked in all its JS glory so I don't know what I am missing. But I did see a perpetually frozen spinner GIF because I have turned off animations...[/QUOTE]
Yeah, it's just an animated GIF for a spinner: [URL="http://www.mersenne.org/images/spinner.gif"]http://www.mersenne.org/images/spinner.gif[/URL] If anyone else is really curious how to hide an element until it's loaded, here's how that works: [LIST][*]I set that page up so that the <table> has a class of "preload"[*]There's a <style> section on the page that defines ".preload" as {display: none;}[*]So normally that means when the page loads, that entire table is hidden. To satisfy the likes of Retina who have JS disabled, that <style> is actually in a javascript block itself, so if they don't have Javascript, that style is missing to and it'll show up anyway.[*]There's a <div> with an id of "processing" that has some text like "please wait while processing" and has the spinner image[*]There's a Javascript block that attaches a function to document.ready (same as the tablesorter plugin) that simply does: table.removeClass("preload"). That makes the table show up.[*]There's another part of that document.ready that adds another class to that "processing" div that applies a style to hide that block. So yeah, it unhides the table and hides the "processing" text in one swell foop.[/LIST] I can't stress enough how nice it is too use Javascript to manipulate elements on the page in reaction to load events, user actions, etc. AJAX enabled pages, for instance, offer all kinds of nifty things, and without Javascript you wouldn't have things we may take for granted now, like dragging and dropping emails in Gmail to pop them in a folder, for example. I'll grant you that some pages will take javascript and do some truly useless things with it that don't add anything to the user experience and can slow down a browser (well, in some older browsers at least). I have in mind some sites I've seen that will draw a little trail of whatever as you move your pointer around in the window. I mean, if I ever wanted to punish the planet, I would inflict mouse trails on every website. Forget viruses or trojans or worms... just add mouse trails to everything and watch the intertubes implode. And yet, the same features allow a site to create drag and drop functionality, so... Is that the website equivalent of tolerating nuclear weapons because the same basic concept gives us radiation therapy to cure cancer? LOL And yes, I compared mouse trails to nuclear weapons. :smile: Behold: [URL="http://javascript-fx.com/mouse_trail/pinwheel/demo.html"]http://javascript-fx.com/mouse_trail/pinwheel/demo.html[/URL] |
Account results page changes
I just finished up some changes to the account "results" page.
The "result type" column now indicates whether a result is "verified" (double-checked) or "unverified" (only single checked). Additionally, if a result was flagged as suspect or bad due to errors noted during the LL test, or if your residue didn't match and it was the odd man out in a triple check, that column will be color coded as well so it stands out even more, as a way to let you know something was up on your machine during that run. Say a thanks to Xyzzy for the suggestion... but truth be told it looks like maybe that type of info was included at one point but commented out. Perhaps it didn't perform well on the old server but it seemed okay for me so I added it back in along with the display enhancements. I don't personally have any suspect or bad results in my account, but it should be working. I just couldn't test that exact scenario, so holler if it looks bad. It should be "black text on yellow" for suspect and "black text on red" for bad results. |
This is what I currently get:
Warning: odbc_exec(): SQL error: [Microsoft][ODBC SQL Server Driver][SQL Server]Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression., SQL state 21000 in SQLExecDirect in C:\inetpub\www\results\default.php on line 111 Warning: odbc_fetch_array() expects parameter 1 to be resource, boolean given in C:\inetpub\www\results\default.php on line 129 richs has 194 results in the last 365 days (only 0 are shown). |
[QUOTE=richs;386120]This is what I currently get:
Warning: odbc_exec(): SQL error: [Microsoft][ODBC SQL Server Driver][SQL Server]Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression., SQL state 21000 in SQLExecDirect in C:\inetpub\www\results\default.php on line 111 Warning: odbc_fetch_array() expects parameter 1 to be resource, boolean given in C:\inetpub\www\results\default.php on line 129 richs has 194 results in the last 365 days (only 0 are shown).[/QUOTE] Hmm... I wondered if that could happen. I can fix that, but it's weird that more than one would match, but I think some people report their same results twice sometimes. No idea how that happens. |
[QUOTE=Madpoo;386119]The "result type" column now indicates whether a result is "verified" (double-checked) or "unverified" (only single checked).
Additionally, if a result was flagged as suspect or bad due to errors noted during the LL test, or if your residue didn't match and it was the odd man out in a triple check, that column will be color coded as well so it stands out even more, as a way to let you know something was up on your machine during that run.[/QUOTE]:bow: |
Thanks, Madpoo. The results page works now.
I have a box at work that is behind a firewall so I have to manually take assignments from other boxes and run them at work. On occasion I have mistakenly run the same assignment on two different boxes which is the reason for the same result being reported twice. How may one check earlier assignments? |
[QUOTE=richs;386154]Thanks, Madpoo. The results page works now.
I have a box at work that is behind a firewall so I have to manually take assignments from other boxes and run them at work. On occasion I have mistakenly run the same assignment on two different boxes which is the reason for the same result being reported twice. How may one check earlier assignments?[/QUOTE] Earlier assignments, like more than a year old? The report right now limits it to 365 days, maybe that was for performance reasons. The table of client messages is pretty big but I think the indexing on it, plus the new server, has helped it out a lot. I'd probably have to ensure performance is okay before letting it go back further. I just did a few tests... going back 2 years isn't too bad for me, but I don't have a ton of entries (something like 2000 records over 2 years). Letting it pull up *all* of my 12,000+ records took a really long time. I'll table changing anything until the impact of any changes is checked a bit more. It could be worth changing it to show a max of XXX records (I think 5000 is the current limit) regardless of age, but I don't want to make that call. :) |
[QUOTE=Madpoo;386100]Yeah, it's just an animated GIF for a spinner:
[URL]http://www.mersenne.org/images/spinner.gif[/URL] If anyone else is really curious how to hide an element until it's loaded, here's how that works: [LIST][*]I set that page up so that the <table> has a class of "preload"[*]There's a <style> section on the page that defines ".preload" as {display: none;}[*]So normally that means when the page loads, that entire table is hidden. To satisfy the likes of Retina who have JS disabled, that <style> is actually in a javascript block itself, so if they don't have Javascript, that style is missing to and it'll show up anyway.[*]There's a <div> with an id of "processing" that has some text like "please wait while processing" and has the spinner image[*]There's a Javascript block that attaches a function to document.ready (same as the tablesorter plugin) that simply does: table.removeClass("preload"). That makes the table show up.[*]There's another part of that document.ready that adds another class to that "processing" div that applies a style to hide that block. So yeah, it unhides the table and hides the "processing" text in one swell foop.[/LIST] [/QUOTE] Can you make the spinner etc only appear if javascript is enabled? It's misleading to have it still there after the page has finished loading? Chris |
[QUOTE=chris2be8;386233]Can you make the spinner etc only appear if javascript is enabled? It's misleading to have it still there after the page has finished loading?
Chris[/QUOTE] I could, but maybe it's punishment for the people with Javascript disabled. :smile: Truth be told, I thought about it at the time (only adding that part dynamically using Javascript in the first place) but I was happy enough to get what I had working and called it good enough. Next time I revisit that page, I may take care of that but it's not super high on the priority list. |
| All times are UTC. The time now is 22:52. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.