Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    how to modify UploadItem "button" style?

    i find cellStyle in FormItem properties but i dont know that how to use it for my item.
    there is my code:
    Code:
    DynamicForm.create({
                //cellStyle : "uploadButton",
                numCols : 4,
                layoutAlign : "center",
                encoding : "multipart",
                action : "somaction.action",
                canSubmit : true,
                ID : "contactsForm",
                fields : [
                {title : "Choose File",name : "upload", editorType : "upload", wrapTitle :false,cellStyle : "uploadButton" },                        
                {title : "upload", editorType : "submit", startRow : false}
                    ]
              })
    Last edited by mehdi.zarei; 24 Jul 2007, 00:46.

    #2
    Hello mehdi,

    Browsers do not generally allow the "Browse" button of upload fields to be styled, for security reasons (several exploits might be possible if you couldn't identify a browse button).

    If you are interested, there are some spectacular hacks that people have used to style upload fields, but it is likely that browser makers will consider this a bug, and prevent it in future versions.

    Comment


      #3
      ok thanx. but how can i use cellStyle.

      Comment


        #4
        Hi Mehdi,

        Like all other SmartClient properties that take a CSS styleName, you set it to the name of a CSS style you have defined in a CSS file or in a <STYLE> tag.

        If you're unfamiliar with CSS in general, try a tutorial - there are several good ones.

        Comment


          #5
          i am familar with css but i want apply my style on a specified cell. for example uploaditem composed of a title ,textbox,browse button, each of items is in a cell. i want apply my style on 3th cell.

          Comment

          Working...
          X