Download links in scratchpad's
aufflick
created: 2006-01-16 00:42:32
For some reason toady the download link on a code section of my scratchpad stopped working. I noticed it straight away becauase that's where my perlmonks css comes from!

a download link from any code section of my public scratchpad yields the following:

Server Error (Error ID 7977889a70370)

An error has occurred. The site administrators have been notified of the problem and will likely soon fix it. Thank you, for you're patients.

And it's exactly like that - in all it's text/plain glory!
Re: Download links in scratchpad's
created: 2006-01-16 07:31:43

Hi, this (hopefully) has been fixed. As I had never considered the possibility of using the scratchpad for CSS I have added a new feature. Scratchpad mode selection is normally "sticky" that is you will view the same part as you last viewed, meaning if you last worked on the private part of your pad code download will be from the private pad. I realized that this could be somewhat annoying for someone doing what you are, so I added a new parameter.

If you add "showmode=private" to your link then you will get the private pad (if you have permissions) without the change being 'sticky'. If you add "showmode=public" same deal, but with the public part. If you use 'viewmode' then the change will be sticky.

BTW, im curious why you are doing it this way and not via your Display Settings.

---
$world=~s/war/peace/g

Re^2: Download links in scratchpad's
created: 2006-01-17 23:59:00
All is fine now - thanks.

FYI: In my display settings I use the "Link to External CSS stylesheet" option - the link I use is the download link to a code segment of my public scratchpad. The beauty of this is:

  1. Connection stays with perlmonks
  2. Easy to maintain
  3. Others can use my css if they so desire
  4. It seems somehow cool
Re^3: Download links in scratchpad's
created: 2006-01-19 09:20:17

If your CSS was particularly large, another benefit would be that your browser can cache it instead of having to download it inside the page every time. This may decrease page load times every so slightly.

Re: Download links in scratchpad's
created: 2006-01-16 17:09:47

Thank you, for you're patients.

Interesting error. I guess I never thought of myself as a patient in situations like these.

    -Bryan

perlmonks.org content © perlmonks.org and aufflick, demerphq, kelan, mrborisguy

prlmnks.org © 2006 edmund von der burg (eccles & toad)

v 0.03