Loading ...
Sorry, an error occurred while loading the content.

Re: [ydn-javascript] displaying an image in a datatable column

Expand Messages
  • Satyam
    You mean that you set the className for the container where the DataTable will be displayed to yui-dt ?. You shouldn t do this as the DataTable will already
    Message 1 of 4 , Jan 31, 2009
    • 0 Attachment
      You mean that you set the className for the container where the
      DataTable will be displayed to 'yui-dt'?. You shouldn't do this as the
      DataTable will already do it on the <table>element. I can't imagine
      that this would confuse the stylesheet stuff, but it's the only strange
      thing I find in your description. Otherwise, displaying images in table
      cells is not a problem.

      Satyam


      balancingactpictures wrote:
      > My datatable works great with one exception - I cannot get it to
      > display an image using an <img src="..."> tag. I know the path is
      > correct; in fact I even see the image when the page loads for one very
      > brief instant before the yahoo stylesheet takes charge. The datatable
      > is contained within a container with class="yui-dt". Is there a limit
      > to how large the image is? Thank you for any hints, tips, etc.
      >
      >
      > ------------------------------------
      >
      > Yahoo! Groups Links
      >
      >
      >
      > ------------------------------------------------------------------------
      >
      >
      > No virus found in this incoming message.
      > Checked by AVG - www.avg.com
      > Version: 8.0.233 / Virus Database: 270.10.16/1926 - Release Date: 01/30/09 17:31:00
      >
      >
    • balancingactpictures
      Thank you, I solved the problem. It was an html error. ... label: MyTestColumn ,className= showimg ,sortable:true} ... very ... datatable ... limit ...
      Message 2 of 4 , Feb 1, 2009
      • 0 Attachment
        Thank you, I solved the problem. It was an html error.

        --- In ydn-javascript@yahoogroups.com, ketigadu <ketigadu@...> wrote:
        >
        >
        > You might want to try this.
        >
        > Specify a class for your column.
        >
        > {key:"testcolumn",
        label:"MyTestColumn",className="showimg",sortable:true}
        >
        > In your stylesheet use something like this.
        >
        > .showimg {
        > background:url(/images/myimage.gif) no-repeat right
        > }
        >
        >
        > Manoj
        >
        >
        > balancingactpictures wrote:
        > >
        > > My datatable works great with one exception - I cannot get it to
        > > display an image using an ... tag. I know the path is
        > > correct; in fact I even see the image when the page loads for one
        very
        > > brief instant before the yahoo stylesheet takes charge. The
        datatable
        > > is contained within a container with class="yui-dt". Is there a
        limit
        > > to how large the image is? Thank you for any hints, tips, etc.
        > >
        > >
        > >
        >
        > --
        > View this message in context:
        http://www.nabble.com/displaying-an-image-in-a-datatable-column-tp217709\
        15p21771791.html
        > Sent from the ydn-javascript mailing list archive at Nabble.com.
        >
      Your message has been successfully submitted and would be delivered to recipients shortly.