4
jsFiddle uses json to save CSS/HTML, Javascript/Jquery? Probably this json
is saved in a bank. The series 4fh0xdpc
would be the ID in the bank.
http://jsfiddle.net/
4fh0xdpc
/
Each update generates a number after this id.
http://jsfiddle.net/4fh0xdpc/
1
/
Or does it simply send the . json file to the server and save (a folder is created)? for example:
- briefcase
4fh0xdpc
for the first project created.
if there is an update:
- briefcase
4fh0xdpc
subdirectory1
(always varying)
I am developing a system that the user can build a form dynamically (include questions, validation of each question, generate the form database automatically etc). Part of the system is developed (I’m already generating .json with all the questions, number, etc). However, I would like to do something else: save the project to be later moved by the same user or another.
Are there any tips to implement this part? Wanted to follow the molds of jsfiddle
, in case there are any good tips, I’m open to tips.
You’d better ask them.
– Maniero
Reverse engineering on top of a tool that we don’t have access to the source code, is something I would say outside the scope (?)
– MarceloBoni
I was thinking about doing something like that, but it’s not for developers. is to build a form dynamically (mount the .json on the front and send to the server to assemble the form and return it to download). wanted to do similar to jsfiddle - update, something collaborative).
– Jose Maximilian
@Marcelobonifazio If you have a tip where to start, rsrs. I’m working recently with javascript (4 months). I didn’t want to copy, but get the same idea from them (if it was implemented the way I said).
– Jose Maximilian
It turns out that this is very relative, there are n ways to achieve the same goal, there has to be a whole case study, I personally read your doubt in the comment and understood bulhufas.... try to explain your goal better in the question itself, who knows not to be more understandable
– MarceloBoni
modified the post. Maybe you can understand what I’m looking for.
– Jose Maximilian
jsFiddle was developed by Oskar and Piotr, at the time active members of the Mootools community and has a API to create already filled jsFiddles. What features do you want? Just create new urls for new forms? and keep the idea in the url
base/versão
as in your example4fh0xdpc/1/
? Also want to fill in with json? what language do you have on the server?– Sergio
Interesting question, but out of focus. While Jsfiddle can be a source of inspiration, try to think of a structure that fits your solution, then ask specific questions about this architecture. For example, first you need to define what information will be edited by the user on the screen, then how it will be transmitted to the server, then how it will be identified (single hash?), persisted (tables), and versioned (new versions 2, 3, 4...)Then you have to worry about permission and security and so on. Not necessarily things are in that order.
– utluiz
["would like to do something else: save the project to be later moved by the same user or another"] only Jsfiddle already does this rsrsr
– SneepS NinjA
What do you care about is the server side? For example, how to save, how to compose Urls, etc.? Or jsfiddle functionality itself?
– bfavaretto
@Sergio would like to create the urls, and display the content (I have a .json file that I mount on the server and dynamically Gero the inputs populated in html). - bfavaretto yes something like this, the person enters the url if something has been saved.
– Jose Maximilian