Hi Peter,
I think in theory it should be possible to send a PUT requests with the
body of the resource to the appropriate URL. I do not know how the
default servlet handles this now, but this might be easier to do than
doing some multipart tricks.
regards,
Lars
Btw. I am installing Bunkai
Am 12.02.2008 um 21:51 schrieb Tobias Bocanegra:
i don't know dojo, but afaik in ajax you cannot send a file unless you
loosen some browser security policies. a work around is to use a
hidden iframe that contains a form.
You can send a form with an input type=file via XHR, but you
cannot
But I think that I can get it going now, with the correctly named parameter.
I did some digging and Dojo have a very nice content: {} parameter for
setting 'form' data ina apost on the fly, so I'll use that ^-^
I hope I have time tomorrow to finish a version that can be used for generic
Ups, my last mail was nonsense regarding the XHR upload. You can't do
that without iframe or swf tricks. Thanks for correcting me!
Alex
Am 13.02.2008 um 17:26 schrieb Alexander Klimetschek:
Am 12.02.2008 um 21:51 schrieb Tobias Bocanegra:
i don't know dojo, but afaik in ajax you cannot send
Hi Toby,
Maybe this will work out anyway, because I can create the nodes with
required type from the bunkai tree right now.
If I then fill the content of the node in a form field with the name
jcr:data, it should work, shouldn't it?
Cheers,
PS
On Feb 12, 2008 9:51 PM, Tobias Bocanegra [EMAIL
Hmm. The easiest way would of course be to send the content as jcr:data.
How far away is the implementation of this, do you think?
i haven't tried this, but it should work. if you are dealing with text
anyways you just need to
ensure that you POST in utf-8. as long as the 'files' are already
Maybe this will work out anyway, because I can create the nodes with
required type from the bunkai tree right now.
If I then fill the content of the node in a form field with the name
jcr:data, it should work, shouldn't it?
yes. this should work.
regards, toby
Cheers,
PS
On Feb 12, 2008
Hmm. The easiest way would of course be to send the content as jcr:data.
How far away is the implementation of this, do you think?
Also, if not, how do I simulate multipart posting from Dojo? Hmm. I'll go
down in the dark documentation cellars..
Cheers,
PS
On Feb 11, 2008 10:44 PM, Peter
Thanks Tobias! Actually, I already rely on one script to get the Sling
resource hierarchy out in the way I like :)
But since I think Bunkai (the editor and hopefully Sling browser) will be
egared at editing web content in Sling nodes, the basic file thin is
probably the way to go.
Great. I'll have
ok, there are several posibilities:
1) you create a node with some property, eg: 'content'. but then you
need a html.esp script to dump the 'content' out again.
2) you create a 'nt:file' node and store the content in the jcr:data
property. but this is not possible currently, since you can't define
Hi,
I'm now able to create new nodes and subnodes in the Sling hierarchy with
bunkai. I'm now trying to load and save the 'contents' of each node, but I
can't seem to figure out what to call the form property.
Could someone help me out on this? I've tried to read Bertrands 15 minute
intro, but
Hmm. OK. That makes sense. but at the moment I'm trying to use the nodes as
if they were files. Is there a magic property for 'content'?
Or, wait, maybe I can use any property name at all, as long as I use the
same all the time?
But if I try to save contents of files (html files) using a property
hi,
you just give the input field of the form the same name as the
property you want to save.
regards, toby
On 2/11/08, Peter Svensson [EMAIL PROTECTED] wrote:
Hi,
I'm now able to create new nodes and subnodes in the Sling hierarchy with
bunkai. I'm now trying to load and save the 'contents'
13 matches
Mail list logo