Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
How to save modified tree on server?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post will appear after it is approved by moderators
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Michal Jedryka  
View profile  
 More options Oct 18 2011, 1:08 pm
From: Michal Jedryka <michal.jedr...@gmail.com>
Date: Tue, 18 Oct 2011 10:08:45 -0700 (PDT)
Local: Tues, Oct 18 2011 1:08 pm
Subject: How to save modified tree on server?
Hi all!
Dojo widget tree has everything I need, ie context menus, drag & drop
editing of branches, etc. But all these bells and whistles make sense
if
I can write it to the database.
E. g. if I drag item from one branch to another I would like to save
this change in
the database.
The server is Django and the tree representation in the table is very
simple.
Each category have the "parent" (multi-category), and Table
"item" has a field "category" and of course, relationships are
defined.

Well, I'm looking for a method which would allow to upload information
changes made ​​by the widget, for example by changing the order
pulling, name change via the context menu, copy, paste, etc.

Of course you can combine a manual transmission index AJAX
or something, but I do not want to believe that there was no simple
and obvious solution.
One solution would be sent to the server XML or JSON-a,
which would include a modified structure. On the server, I would have
is handled. But I don't know how to get _modified_ datastore to send?
Is it such a feature, or do I have to write it yourself?
I'm still in point of departure.

Maybe it's because I'm not a specialist in javascript ...

Could I ask for a hint?

I would like to thank you in advance

Michał Jędryka


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »