Tags:
create new tag
view all tags

Question

I am attempting to use USERCOLORSURL in conjunction with a session variable.

* Set USERCOLORSURL = %PUBURLPATH%/%MAINWEB%/ClientColors/%SESSION_VARIABLE{"client"}%colors.css%

The session variable is set from an input button with a dropdown list (ControlsPlugin) in the "beforetext" template.

Setting the session variable works but the display colors don't change immediately.

I must refresh the display or follow a link in order to the color changes to take affect.

Is there a "preferred" method for setting style with one action?

Environment

TWiki version: TWikiRelease04x01x02
TWiki plugins: SpreadSheetPlugin, AttachContentPlugin, CommentPlugin, ControlsPlugin, EditTablePlugin, HtmlFormsPlugin, InterwikiPlugin, MostPopularPlugin, PreferencesPlugin, SlideShowPlugin, SmiliesPlugin, TablePlugin, TagMePlugin, TwistyPlugin, WysiwygPlugin
Server OS: Linux Debian stable, v3.1 (released Dec 20th, 2005)
Web server: Apache2
Perl version: ?
Client OS: Microsoft Windows 2000 Pro Version 2002 SP2
Web Browser: Microsoft Internet Explorer 6
Categories: Skin

-- BruceRobertson - 11 Dec 2007

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

You will always need to reload the page, if that is what you mean.

-- ArthurClemens - 19 Dec 2007

Thanks for the response.

Can you explain why the 2-pass process does not catch this?

-- BruceRobertson - 19 Dec 2007

The path to your custom CSS file is written in the html. Changing the session won't change the html.

-- ArthurClemens - 19 Dec 2007

Change status to:
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2007-12-19 - ArthurClemens
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.