Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Download links in scratchpad's

by demerphq (Chancellor)
on Jan 16, 2006 at 12:31 UTC ( #523482=note: print w/replies, xml ) Need Help??

in reply to Download links in scratchpad's

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.


Replies are listed 'Best First'.
Re^2: Download links in scratchpad's
by aufflick (Deacon) on Jan 18, 2006 at 04:59 UTC
    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

      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 ever so slightly.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://523482]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2022-11-26 22:00 GMT
Find Nodes?
    Voting Booth?