Hi!
I would like to build a file browser from which I can drag and drop files into a web page loaded in a CefBrowser control.
I don´t know how to make the drag and drop functionality. Does any have experiences with that?
Will the CefBrowser control of the upcoming Xailer update support the latest CEF version?
Best regards, Timm.
In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
CefBrowser
- ignacio
- Site Admin
- Mensajes: 9253
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
CefBrowser
Hello,
METHOD FormDropFiles( oSender, aFiles, aPoint ) CLASS TForm1
::oCefBrowser1:Navigate( "file://" + aFiles[1] )
RETURN Nil
About the upgrade to newest CEF, we are working on that, but for future developments. The newest CEF browser is a lot bigger than the actual version and we believe is not worth the change, but probably we will change in the near future.
Regards,
METHOD FormDropFiles( oSender, aFiles, aPoint ) CLASS TForm1
::oCefBrowser1:Navigate( "file://" + aFiles[1] )
RETURN Nil
About the upgrade to newest CEF, we are working on that, but for future developments. The newest CEF browser is a lot bigger than the actual version and we believe is not worth the change, but probably we will change in the near future.
Regards,
CefBrowser
Ignacio,
::oCefBrowser1:Navigate( "file://" + aFiles[1] ) will display the file in the browser but I want that the website receives the dragged filenames like in drag&drop operation among applications.
In my case local image files should be read by a php script.
Best regards, Timm.
::oCefBrowser1:Navigate( "file://" + aFiles[1] ) will display the file in the browser but I want that the website receives the dragged filenames like in drag&drop operation among applications.
In my case local image files should be read by a php script.
Best regards, Timm.
- ignacio
- Site Admin
- Mensajes: 9253
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
CefBrowser
Timm escribió el mar, 10 marzo 2015 11:08Ignacio,
::oCefBrowser1:Navigate( "file://" + aFiles[1] ) will display the file in the browser but I want that the website receives the dragged filenames like in drag&drop operation among applications.
In my case local image files should be read by a php script.
Best regards, Timm.
Sorry. Instead of Navigate(...) do what ever you want. I can't see the problem. The event OnDropFiles you can use on any manner, it just receives an array of files. That's all.
Regards,
::oCefBrowser1:Navigate( "file://" + aFiles[1] ) will display the file in the browser but I want that the website receives the dragged filenames like in drag&drop operation among applications.
In my case local image files should be read by a php script.
Best regards, Timm.
Sorry. Instead of Navigate(...) do what ever you want. I can't see the problem. The event OnDropFiles you can use on any manner, it just receives an array of files. That's all.
Regards,
CefBrowser
Timm,
> ::oCefBrowser1:Navigate( "file://" + aFiles[1] ) will
> display the file in the browser but I want that the website
> receives the dragged filenames like in drag&drop operation
> among applications.
> In my case local image files should be read by a php
> script.
That feature must be implemented by using AJAX in your own web page.
Try navigating to http://ge.tt from the CEF browser sample and you can
see that it support dragging files on it. You don't need to implement it
in Xailer at all.
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
> ::oCefBrowser1:Navigate( "file://" + aFiles[1] ) will
> display the file in the browser but I want that the website
> receives the dragged filenames like in drag&drop operation
> among applications.
> In my case local image files should be read by a php
> script.
That feature must be implemented by using AJAX in your own web page.
Try navigating to http://ge.tt from the CEF browser sample and you can
see that it support dragging files on it. You don't need to implement it
in Xailer at all.
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
CefBrowser
Ignacio,
our web page is already able to receive dragged files. I can drag and drop files from the Windows Explorer for example.
I want to build an application with a CefBrowser control on the left side and an image browser on the right side.
The goal is to drag the image filenames from the right into the CefBrowser control.
Best regards, Timm.
our web page is already able to receive dragged files. I can drag and drop files from the Windows Explorer for example.
I want to build an application with a CefBrowser control on the left side and an image browser on the right side.
The goal is to drag the image filenames from the right into the CefBrowser control.
Best regards, Timm.
CefBrowser
Timm,
> our web page is already able to receive dragged files. I can
> drag and drop files from the Windows Explorer for example.
>
> I want to build an application with a CefBrowser control on
> the left side and an image browser on the right side.
> The goal is to drag the image filenames from the right into
> the CefBrowser control.
Well, try to drag files directly from the windows explorer onto the CEF
browser. I'm pretty sure it works.
The other issue is to drag items from the "image browser" control, like
if they were files. I'm afraid it's not so easy. To drag items from a
control as filenames, involves writing low level COM interfaces that
handle windows explorer, and it's a difficult task. BTW, what control
are you using for "image browser"?
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
> our web page is already able to receive dragged files. I can
> drag and drop files from the Windows Explorer for example.
>
> I want to build an application with a CefBrowser control on
> the left side and an image browser on the right side.
> The goal is to drag the image filenames from the right into
> the CefBrowser control.
Well, try to drag files directly from the windows explorer onto the CEF
browser. I'm pretty sure it works.
The other issue is to drag items from the "image browser" control, like
if they were files. I'm afraid it's not so easy. To drag items from a
control as filenames, involves writing low level COM interfaces that
handle windows explorer, and it's a difficult task. BTW, what control
are you using for "image browser"?
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info