Active
Project:
Javascript Tools
Version:
5.x-0.8
Component:
Ajaxsubmit
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 Feb 2008 at 12:58 UTC
Updated:
17 Jan 2015 at 18:33 UTC
Jump to comment: Most recent
Comments
Comment #1
develcuy commentedPlease take a look at project demo site: http://develcuy.elblog.de/ics/
Comment #2
nedjoThanks for the contribution. This is indeed an area where additional work is needed. Your effort is a valuable first step.
My first priority in AjaxSubmit is to convert it to use the jQuery forms plugin (now part of Drupal 6). So I'd like to do that before adding significant new features.
Beyond that, I try to avoid AJAX/AHAH approaches that expose data through new menu items. When you take that approach, you need to either (a) replicate complex access control logic that's already handled elsewhere or (b) open significant security holes. The approach in this patch so far falls under b)--it exposes potentially sensitive data by bypassing the usual access controls.
Can we implement comment preview without a new menu item? I suspect we can. See e.g. the implementations in activeedit for returning rendered node and comment bodies.
Comment #3
yngens commentedi am looking forward to see this feature functional in Drupal 6. nevertheless, i would like to thank develCuy for his contribution.
Comment #4
develcuy commentedThanks nedjo for your guidelines, I'm going to review activeedit to avoid security holes. I've don't tried D6 before but it is a good opportunity to start on. So, I assigned this task to me. Will keep you informed about my progress.
Blessings!
Comment #5
shames commentedsir this patch is working perfectly this is what i'm lo0king for. But i dont know how to patch it manually. Can you email me the modified ajaxsubmit module? i'm using drupal 4.7 thanks sh4m3s@yahoo.com
Comment #6
alex_shapka commentedunfortunately, for 5.x-1.1 it produces an error if you submit two comments in a row. to see what was the error try to delete added comment and it will give:
does this mean there are dramatical changes in mysql tables between 5.x-0.8 and 5.x-1.1, or this error caused by conflict between some other modules - i can't figure out.
Comment #7
develcuy commented@alex.shapiro, I've been very busy, and did not checked jstools 1.1 yet, and I will not review it until June :(. So please keep me update if there are some changes about ICS in further jstools releases.
Blessings!
Comment #8
Brian.Harris commentedThe patch works almost perfectly in 5.x-1.1. The only thing i see not working is when an anonymous user posts a comment, the comment does get posted, but the comments do not reload to show the new comment.
also the actual patch file didn't work for me, but i made the changes manually and it works.
Comment #9
Brian.Harris commentedJust figured out what was wrong. for some reason you need the "Administer Menu" permission in order to access ajaxsubmit/backend/comment/thread/comment/reply/* so i modified your patch to this:
hope this helps someone. kick ass patch by the way.
Comment #10
bobdalob commentedgood to see progress on this - it's starting to work better than before.
I tried this (patch+modification #9) however I report the following problems:
* if comment editing is available, editing loads a standard comment edit page and things go pear-shaped when trying to preview or post (ajax form). preview doesn't preview, and when user posts the changes there is no confirmation and user is stuck on comment edit page although, when the node is reloaded, the edit has been successfully saved.
* use of comment preview or post using IE7 can [sometimes] trigger progress bar which progresses, slowly, before it reaches half way and the bar then hangs.
* in all browsers, after submitting a comment (not previewing), comment voting via extra voting forms will not work.
Comment #11
ahkiam commentedsubscribe
Comment #12
develcuy commented