PDA

View Full Version : preview using ExtJS



maali
3 Apr 2012, 3:54 AM
based on the input URL of pdf or image or jpeg i need to display the appropriate one in the flash player in a preview panel using extJS 4.0

please suggest with the approach and code.


Thanks

scottmartin
3 Apr 2012, 9:22 AM
I am not sure I understand your requirement.

Here is an article about embedding flash in a panel. If you want to display images in a panel, then you can use html




new Ext.Window({
..
html: '<img src=image_file + '.jpg?'+dtStamp.getTime()+'" onError=this.src="photos/no_photo.jpg" />' // added random number to get latest image from disk
}).show();


Regards,
Scott.

mayur_satasiya
7 Jun 2012, 4:44 AM
Hi
Thanks for sharing , But what about docx files and excel files and any other files for preview.
If it is possible please tell me ASAP,

Thanks
Mayur