+ Reply to Thread
Page 4 of 11 FirstFirst ... 2 3 4 5 6 ... LastLast
Results 31 to 40 of 108

Thread: TODO Template on lyonsdemo site?

  1. #31
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Posts
    175

    Default

    Huh. This just stopped working. Did something change in one of the dependency extensions? Error is:
    'MindTouch.Web' is null or not an object'
    AFAIK, nothing changed on my end; everything was working well, and then it wasn't. Server reboot didn't change anything, either.

    This brings up a another question, too: where is this todo data stored? It doesn't appear to be saved with the page, or at least, not in a place I'm looking for it. I ask because one of the byproducts of the failure is that when I clicked on a completed checkbox, all of my data disappeared. Bummer.

    My assumption, BTW, is that something hinky is going on with my system, either server or desktop-side, since that's the normal way things work. But this is one implementation in MT that defies versioning, apparently; good to keep in mind when dealing with important data.
    Last edited by laduncan; 06-08-2009 at 02:46 AM.

  2. #32
    Join Date
    Jul 2006
    Location
    San Diego, CA
    Posts
    5,450

    Default

    Hmm, yeah, something did change. Are you loading the extension from http://scripts.mindtouch.com? I just updated the code then on Friday, but it should have continued working as usual.

    The data is stored in a page property. You can see by going to 'Set Page Properties' and then click on the 'Avanced' tab. Properties are versioned like pages. So technically your data is still there, but I don't think there is an easy mechanism to access it.
    Steve G. Bjorg - Chief Architect
    Did you check the MindTouch FAQ?
    Found a bug? Report it.
    Follow me on Twitter
    Find us on IRC: irc.freenode.net #mindtouch

  3. #33
    Join Date
    Jul 2006
    Location
    San Diego, CA
    Posts
    5,450

    Default

    Can you check the HTML source for the wiki page on which the TODO list is and verify that (a) it has a link to include mindtouch.web.js and (b) that this link returns a valid file. Thanks.
    Steve G. Bjorg - Chief Architect
    Did you check the MindTouch FAQ?
    Found a bug? Report it.
    Follow me on Twitter
    Find us on IRC: irc.freenode.net #mindtouch

  4. #34
    Join Date
    Jul 2006
    Location
    San Diego, CA
    Posts
    5,450

    Default

    I've changed the previous check-in so that invoking dekiapi() uses the original bits, and dekiapi2() will include the new bits. Note: you'll need to restart the DekiApi extension for the changes to take effect.
    Steve G. Bjorg - Chief Architect
    Did you check the MindTouch FAQ?
    Found a bug? Report it.
    Follow me on Twitter
    Find us on IRC: irc.freenode.net #mindtouch

  5. #35
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Posts
    175

    Default

    Cool; thanks. I'm happy to update the template to reflect changes in the extensions, especially with advance notice.

    I'm curious about the page properties: If there's not a good way to get at the versions, does it make sense to go to the trouble of versioning them?

    Or: since they're versioned, can we set up something that allows one to take advantage of that?

    I'm assuming this is stored in the DB, but I'm not finding an obvious table/field where it might be stored; can you point me to the right place? I'd like to dig out some of my old data.

    BTW, the switch on your end fixed it; if what broke isn't obvious to you, I'm happy to take any troubleshooting steps that might be helpful. AFAIK, I'm the only one using functionality from this right now, so it's fine if it stops working for awhile.
    Last edited by laduncan; 06-08-2009 at 05:44 PM.

  6. #36
    Join Date
    May 2009
    Posts
    4

    Default

    this is a really slick form - love it. where does it store the data? could we query it across pages - see a roll-up from the hierarchy? If I understand the above, I can't use a template or put this into the overall CSS or HTML headers, do I have to store the css & function in every page?
    Last edited by dch; 06-09-2009 at 05:08 PM.

  7. #37
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Posts
    175

    Default

    It's pretty great, huh? I did just lose my data again, so there's something not quite right, yet. You should be able to use a template, but--and here is what I think, rather than what I know--when you insert it, do so as a copy (use the template menu) rather than embedding it as a reference (using {{tempate...}}.

    If I'm not quite understanding the problem mentioned above, I'm sure someone will let us know.

  8. #38
    Join Date
    Nov 2008
    Location
    Ludington, Mi (USA)
    Posts
    751

    Default

    Quote Originally Posted by dch View Post
    this is a really slick form - love it. where does it store the data? could we query it across pages - see a roll-up from the hierarchy? If I understand the above, I can't use a template or put this into the overall CSS or HTML headers, do I have to store the css & function in every page?
    It stores the data in the custom page properties (under the more menu). To see them just click Page Properties/Advanced Properties.


    I am in the final stages of completing a rollup functionality. But since there is currently no way of targeting or searching for specific page properties, I have been targeting this information straight out of the Database. I'll let you know when complete.
    Last edited by rberinger; 06-09-2009 at 08:54 PM.
    We are more ready to try the untried when what we do is inconsequential. Hence the fact that many inventions had their birth as toys. - Eric Hoffer

  9. #39
    Join Date
    May 2009
    Location
    Houston, Tx
    Posts
    237

    Default

    I was having the same error in IE: MindTouch.Web is null or not an object
    IE was discovering an error on line39.
    Original:
    Code:
    //--- Define MindTouch.Web Namespace ---
    if(typeof MindTouch.Web == 'undefined') {
        MindTouch.Web = {
            Version: { major: 0, minor: 1 },
        };
    }
    Modified:
    Code:
    //--- Define MindTouch.Web Namespace ---
    if(typeof MindTouch.Web == 'undefined') {
        MindTouch.Web = {
            Version: { major: 0, minor: 1 }
        };
    }
    That little comma after Version: { major: 0, minor: 1 } was annoying IE.

    Now where do I upload the changes? (my deki is on windows server 2008)

    NOTE: I haven't been able to test this...yet.
    Last edited by blakeh; 06-11-2009 at 01:45 PM.

  10. #40
    Join Date
    Jul 2006
    Location
    San Diego, CA
    Posts
    5,450

    Default

    Ah, very nice! I committed a fix for it. It should be live in the next 20 minutes (or less). Let me know if that addresses it.

    Note that you can also run the extension locally, making it easier to modify. Just download the files to your VM or server, keeping the same folder structure. Then replace http://scripts.mindtouch.com/dekiapi.xml with /opt/dekiextensions/dekiapi.xml (or wherever you downloaded the files too). The only that's important is that you keep the folder structure the same (e.g /opt/dekiextensions/res/deki) and the contents. Deki will do the rest.
    Steve G. Bjorg - Chief Architect
    Did you check the MindTouch FAQ?
    Found a bug? Report it.
    Follow me on Twitter
    Find us on IRC: irc.freenode.net #mindtouch

+ Reply to Thread

Posting Permissions

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