Page 1 of 2

Can a click on the Save button be imitated using javascript?

Posted: Wed Jun 22, 2011 1:24 pm
by sergey2
Hello,

I need the following feature:
I need some button on the page(where designer is loaded) that would act as the "save" button of the designer.
So can I access to the flash component using javascript and make it to send the "save" request to the server?
(or at least to get the current state of a template in order to send ajax-request for saving that state)

Can a click on the Save button be imitated using javascript?

Posted: Thu Jun 23, 2011 5:05 am
by Vladimir
Hello,

Unfortunately, currently it is impossible. You can configure the autosave interval in seconds, after which the save event will be sent to the server.

Thank you.

Can a click on the Save button be imitated using javascript?

Posted: Thu Jun 23, 2011 7:04 am
by sergey2
Thanks for the reply.

So I suppose that imitation of "Exit" event is also impossible. Am I right?

Can a click on the Save button be imitated using javascript?

Posted: Thu Jun 23, 2011 9:42 am
by Vladimir
Hello,

Unfortunately yes, because Flash has a very limited opportunities for work with Javascript.

Thank you.

Can a click on the Save button be imitated using javascript?

Posted: Fri Jun 24, 2011 6:41 am
by dooblee
Well, is there any way to make it possible? It shouldn’t be too hard to allow us to send a request from js to flash. We are ready to pay for this feature.

Can a click on the Save button be imitated using javascript?

Posted: Fri Jun 24, 2011 8:17 am
by Vladimir
Hello,

We consider this possibility and give you an answer early next week.

Thank you.

Can a click on the Save button be imitated using javascript?

Posted: Mon Jul 04, 2011 9:21 am
by dooblee
Hi Vladimir, is there any news about this issue?

Can a click on the Save button be imitated using javascript?

Posted: Tue Jul 05, 2011 3:18 am
by Vladimir
Hello,

We have done a test mode of executing the designer command from Javascript, the update will be available in the next prerelease build on July, 6. Available are two commands: Save and Exit. To do this you need to call the 'sendCommand' Javascript function with the appropriate string parameter ("Save" or "Exit").

Thank you.

Can a click on the Save button be imitated using javascript?

Posted: Tue Jul 05, 2011 5:45 am
by dooblee
Thank you for fast response, I appreciate it. We will try it when it comes out

Can a click on the Save button be imitated using javascript?

Posted: Tue Jul 05, 2011 7:09 am
by Andrew
Hello,

Ok! Let us know about the result.

Thank you.