View Full Version : How to make an attachment textbox like Outlook does
badgerd
08-30-2007, 08:58 PM
Just curious if anyone has come across some code or have seen a way I can display files within a text box with a link to it as per example shown?
ElliotS
08-30-2007, 11:40 PM
I'd check out this (http://extjs.com/forum/showthread.php?t=11111) and this (http://extjs.com/forum/showthread.php?t=9305) to get a feel for how file uploading can work in ext (or you may just be able to use their extensions with a few template changes).
Good luck!
badgerd
09-02-2007, 10:03 PM
Anyone else have ideas and/or suggestions?
Skeleton
09-03-2007, 04:09 AM
AFAIK there is no built-in control in Ext for this (or similar) purpose. But with HTML and CSS there are tons of ways to build such a thing. The first thing comes to my mind is using <ul> and <li> tags where <ul> tag represents the outer rectange (which has a 1px border and white background-color) and each <li> tag represents an attachment (with a no-repeat background-image anchored to left for attachment icon). You can create an <a> tag inside those <li> tags for attachment links. You should also float:left <li> tags to make them in one, not seperate lines (aka block level).
Like I said there are lots of ways to establish this and I think this is a good one both semantically and functionally.
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.