View Full Version : How to make an attachment textbox like Outlook does
badgerd
30 Aug 2007, 5: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
30 Aug 2007, 8: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
2 Sep 2007, 7:03 PM
Anyone else have ideas and/or suggestions?
Skeleton
3 Sep 2007, 1: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.
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.