Results 1 to 5 of 5

Thread: New section for .DAX files (feature request)

  1. #1
    Join Date
    Feb 2004
    Location
    Posts
    157

    Default New section for .DAX files (feature request)

    If you feel this belongs in New Features, please move it there.

    May I suggest a new section in the .DAX file where Javascript common to more than one page might appear? This would solve the problem of the same code used in multiple places, which I'm sure you're aware is a maintenance headache.

    Perhaps a new "Javascript" tab might appear in the DAX editor, as well.

    Thanks in advance.

  2. #2
    Join Date
    Feb 2009
    Posts
    1,549

    Default Re: New section for .DAX files (feature request)

    Thanks for suggestion. Indeed, as more javascript is added to the default theme these days, separate javascript section makes a lot of sense.

    I will look into it.

    Andrei

  3. #3

    Default Re: New section for .DAX files (feature request)

    Hi Balok!
    I think it's a useful suggestion ;D, as I heavily modified OCD with my own theme full of Javascript functions (Andrei knows it.. I posted him some topics about JS on OCD) and they're always used in more than a section, also it seems that OCD doesn't like external .js files (I tried different ways...)

    Cheers
    Emanuele

  4. #4
    Join Date
    Feb 2004
    Location
    Posts
    157

    Default Re: New section for .DAX files (feature request)

    Yes, I also tried various ways of shoehorning in external files without much luck. I also tried using an external editor to tuck them into the end of the styles section. OCD can't find them if they're there (and the template editor that comes with it won't even display them). And, of course, you can't refer to routines on one page from another, I'd guess because each page is loaded into a separate execution context.

    Hopefully, Andrei will get 'round to looking at this one of these days, but it might be harder to do than we think.

  5. #5
    Join Date
    Feb 2004
    Location
    Posts
    157

    Default Re: New section for .DAX files (feature request)

    This would suuuure be a nice feature... (hint, hint)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •