-
Notifications
You must be signed in to change notification settings - Fork 26
Changes #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes #28
Conversation
1) in case no previous sibling of a certain *new* block is
found, djax used to prepend this block within its parent,
and this behaviour is preserved.
2) however, in case a new block has no parent (or no id is
specified for the parent enclosing a certain set of
blocks) the new block is inserted after the previous
block.
The case 2) is triggered with a response like:
<div>
<div id="...">...</div>
<div id="...">...</div>
<div id="...">...</div>
</div>
(note that the enclosing block has no id).
- public method to trigger a djax update programmatically - make code more standard as explained in http://learn.jquery.com/plugins/basic-plugin-creation/
|
@darksmo all sounds great and thanks for opening- this will take me some time to evaluate since the diff is so large. One note from initial readthrough- the syntax is incorrect in your updated readme examples (missing curly brackets around parameter object) Other than that I'll aim to give a line by line readthrough within the next week and I'll add any comments to specific commits as necessary, or merge if everything looks good. Thanks again for all this, very cool pull request. |
|
Cool, have fixed the syntax in the documentation... |
- only the last click is finally considered the intended click. - if the user clicks too fast, we assume he doesn't want to even store the intermediate locations in the history...
Add ajax timeout time and callback to settings
|
Recently I came across your fork of djax and tried it on a project. I was wondering if the script is working properly since I got multiple errors due to e.g. the following code: But even by changing the code to get rid of the errors the script doesn’t insert anything from the ajax call. Maybe you can help me to get the script working as desired. |
|
Hello @WTVader, please ignore that fork. After this commit it really diverges from the original project (DJAX). I should perhaps delete it or point it in the README to avoid further confusion around. The one I'm currently using is DDJAX (see https://github.com/lokku/jquery-ddjax). It shares the same idea as DJAX, but the implementation of block replacements is left to you (e.g., for better performance). |
Hello, I've been using djax for a project and made a bunch of changes.
See commit messages for details.
I was wondering if you would like to pull and merge the changes in the main repository.
Changes are basically:
Cheers,
Savio