Skip to content
General Revolution Evolution Add-ons International
Login | Register | MODX.com
MODX Open Source Content Management System, Framework, Platform and More.
Find a Partner | Hosts + SaaS | Jobs | Donate
  • RegisterSign Up with the MODX Community
  • LoginUse Your MODX.com Account
  • MODX Community Forums
  • Evolution
  • In Development
  •  
  • <
  • 1
  • 2
  • >
  • Jot 1.1.4 ajax version#

  • 33992
    450
    God loves me. 【ツ】

    Boplo.ir/modx/ (Persian)
    Sticky Notes
    JoCo : Jot Comment tool
    Jot: Xtendable version (Jot + Events)
    EasyLingual : Multilingual site by TVs
    CakeMODx 1.3beta : Some different MODx APIs....

    AHHP Reply #1, 3 years, 5 months ago

    Reply
    • Link to this post#1
    Hi,
    The Jot snippet has good potential to add ajax features to it. I added &ajax [1|0] parameter as a new parameter to this snippet. Now by this version user can submit comment use all parts by ajax.

    I have not changed the main codes, i've just added a javascript file to jot/templates directory and about 20 lines to main class of Jot snippet.

    For ajax commenting,
    You must put your Jot call in a container which has id attribute and DO NOT put your Jot FORM in any container! or give a container to snippet for printing data, see jot/ajax_config.html.


    If &placeholders is on, ajax Jot only updates placeholders below:
    [+jot.html.form+]
    [+jot.html.comments+]
    [+jot.html.moderate+]
    [+jot.html.navigation+]
    [+jot.html.subscribe+]

    for getting output, you must put each placeholder in a container that has id attribute and get IDs to Jot, for do that see jot/ajax_config.html.


    You can also create a dynamic form tpl that sets a ajax form with necessary data when &ajax=`1` and sets a non-ajax form when &ajax=`0` by PHx, see jot/ajax_config.html and jot/templates/chunk.form.inc.html.


    Note: There is an javascript error when using ajax commenting in Internet Explorer 6 and unfortunately i can't find it. So ajax commenting does not work in IE6 but it works well in browsers i've tested: Firefox3, Opera9.52, Chrome0.2.149.27 (Chrome uses Apple webkit processors so probably Safari output is same as Chrome)
    But in current version if you use IE6, &ajax will be disabled!



    Thanks
    AHHP


  • 27708
    1,811
    - Dir. Channels & Community

    Jay Gilmore Reply #2, 3 years, 5 months ago

    Reply
    • Link to this post#2
    Great Idea. I know it is a short horizon but I think this would make a great addition to the 0.9.6.3 release if it could be tested quickly.



  • 25663
    12,071


    Ryan Thrash

    MODX Co-Founder & Leader of Awesomeness




    MODX Revolution

    Your Content, Your Way.


    Issues | Documentation | Git the Source


    Need help? Help us help you.


    rthrash Reply #3, 3 years, 5 months ago

    Reply
    • Link to this post#3
    Would need to be added to the demo content too. There's always 0964 or Evo though


  • 7231
    4,205
    Shane Sponagle | Snippet Call Anatomy | MODx Developer Blog | Working With a Content Management Framework: MODx

    Something is happening here, but you don't know what it is.
    Do you, Mr. Jones?  - 

    dev_cw Reply #4, 3 years, 5 months ago

    Reply
    • Link to this post#4
    Very cool indeed, thanks. I will give it a test drive as soon as I get some time and report any issues.


  • 20289
    958
    - MODx RTL Guru.




    |
    [برای دسترسی به راهنمای فارسی به 

    motsmart Reply #5, 3 years, 5 months ago

    Reply
    • Link to this post#5
    Amir, Excellent contribution!
    Ryan, I remember that modxhost theme doesn't pass the W3C test, Why not using something that represents all the built-in features of 0.9.6 series and passes the W3C test?


  • 25663
    12,071


    Ryan Thrash

    MODX Co-Founder & Leader of Awesomeness




    MODX Revolution

    Your Content, Your Way.


    Issues | Documentation | Git the Source


    Need help? Help us help you.


    rthrash Reply #6, 3 years, 5 months ago

    Reply
    • Link to this post#6
    Time, effort and re-testing. And secret plans for the future stuff.


  • 33992
    450
    God loves me. 【ツ】

    Boplo.ir/modx/ (Persian)
    Sticky Notes
    JoCo : Jot Comment tool
    Jot: Xtendable version (Jot + Events)
    EasyLingual : Multilingual site by TVs
    CakeMODx 1.3beta : Some different MODx APIs....

    AHHP Reply #7, 3 years, 4 months ago

    Reply
    • Link to this post#7
    It seems nobody has downloaded it or test it because i found out that the last JS codes that i added to scripts before uploading, made error and the ajax commenting did not work!

    Anyway i fixed it and upgraded the snippet, now there is possible to use all actions by ajax.

    Please test it and report bugs,


  • 20413
    2,474
    My playground: http://4up2date.info | Twitter: @mrhaw

    mrhaw Reply #8, 3 years, 4 months ago

    Reply
    • Link to this post#8
    Can't wait get from this work computer and try!! I love Jot and with ajax to it...
    You have any demo page somewhere?


  • 33992
    450
    God loves me. 【ツ】

    Boplo.ir/modx/ (Persian)
    Sticky Notes
    JoCo : Jot Comment tool
    Jot: Xtendable version (Jot + Events)
    EasyLingual : Multilingual site by TVs
    CakeMODx 1.3beta : Some different MODx APIs....

    AHHP Reply #9, 3 years, 4 months ago

    Reply
    • Link to this post#9
    I solved the problems and completed the script, Now All actions are AJAX. Please test it.


    Quote from: mrhaw at Dec 24, 2008, 06:56 PM
    You have any demo page somewhere?
    I will create it soon


  • 27708
    1,811
    - Dir. Channels & Community

    Jay Gilmore Reply #10, 3 years, 4 months ago

    Reply
    • Link to this post#10
    This works like a charm. Took a little to get it working but WOW! Thanks for this.


  • <
  • 1
  • 2
  • >



Actions

Login to Post

Other Support Options

To file a bug or make a feature request visit our issue tracker, or you can also purchase commercial support.

Love MODX?

If you build sites for a living with MODX or just love using it, why not give back?

Information

Posted in this thread:
AHHP, Bartol, c-m, dev_cw, motsmart, mrhaw, nikk, rethrash, smashingred, zaigham

 
Back to Top

MODX Global HQ

1333 N Stemmons Fwy, Ste 110
Dallas, TX 75207
United States

+1 (469) 777-MODX (6639)

The MODX Company

  • Contact
  • Media Center
  • Careers at MODX
  • Wall of Fame
  • The MODX Blog

Sponsors

SoftLayer Firehost: Secure Cloud Hosting

Stay Connected

Read our previous email newsletters.

Twitter Facebook Google+ LinkedIn github Feeds

Privacy Policy | Terms of Service | Pixels by AKTA Web Studio© 2005-2012 MODX. All rights reserved. Trademark Policy