• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item6004: databg setting for table on page should not override any further JavaScript

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension TablePlugin Enhancement No Action Required   n/a  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

Where I work, we have numerous tables that use JavaScript code to color table cells, based on their content. (It does this after the table has been converted to HTML.)

Following a recent update to TablePlugin, the JS code does not work as expected if the table parameters include a setting for databg.

e.g.

%TABLE{databg="#FFFFFF"}%

Personally, I think that JS that runs on the rendered HTML should work as expected. Also, this code used to work prior to a change to Table, so the change breaks existing functionality.

Can we please undo whatever was done so that the order of evaluation is, once again

  1. whatever is set in TablePlugin page
  2. TABLEATTRIBUTES on current page
  3. %TABLE params for current table
  4. JavaScript that runs after page is rendered

See: Support/TablePluginSettngsOverrideJavaScript for additional details and working example.

-- TWiki:Main/VickiBrown - 19 Sep 2008

I find it a bit of a stretch to say that if added javascript does no longer works, "it breaks existing functionality". But actually it is not the javascript but the embedded css on the page.

See TWiki:Support/TablePluginSettngsOverrideJavaScript for a working solution.

-- TWiki:Main.ArthurClemens - 20 Sep 2008

ItemTemplate
Summary databg setting for table on page should not override any further JavaScript
ReportedBy TWiki:Main.VickiBrown
Codebase

SVN Range TWiki-5.0.0, Fri, 12 Sep 2008, build 17509
AppliesTo Extension
Component TablePlugin
Priority Enhancement
CurrentState No Action Required
WaitingFor

Checkins

TargetRelease n/a
ReleasedIn

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2008-09-20 - ArthurClemens
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback