Help change background image using SPRY.

View: New views
3 Messages — Rating Filter:   Alert me  

Help change background image using SPRY.

by NUGROHO NOTO :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi, I am just at the beginning of learning SPRY data.

I can change image using spry data like this.
<div id="op1" spry:detailregion="ds1 ds1Data"><img src="{@file}"/></div>

Now.. how can I change background image in table using spry ?
for example...below does not work

<div id="op1" spry:detailregion="ds1 ds1Data">
<td background="{@file}">content</td>
</div>

So... how can I change those background image with filename taken from spry dataset ?
Anybody can help ?


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: http://www.houseoffusion.com/groups/ajax/message.cfm/messageid:5508
Subscription: http://www.houseoffusion.com/groups/ajax/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.47

Re: Help change background image using SPRY.

by Raymond Camden :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Well I don't think <div><td> is good HTML. Did you just crop out the
rest? If not, try

<div stuff here>
<table>
 <tr your repeat here...>
    <td your background here


On Thu, Oct 9, 2008 at 5:10 AM, NUGROHO NOTO <sendthisletter@...> wrote:

> Hi, I am just at the beginning of learning SPRY data.
>
> I can change image using spry data like this.
> <div id="op1" spry:detailregion="ds1 ds1Data"><img src="{@file}"/></div>
>
> Now.. how can I change background image in table using spry ?
> for example...below does not work
>
> <div id="op1" spry:detailregion="ds1 ds1Data">
> <td background="{@file}">content</td>
> </div>
>
> So... how can I change those background image with filename taken from spry dataset ?
> Anybody can help ?
>
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: http://www.houseoffusion.com/groups/ajax/message.cfm/messageid:5509
Subscription: http://www.houseoffusion.com/groups/ajax/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.47

Re: Help change background image using SPRY.

by NUGROHO NOTO :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks.. Ray.
obviously.. you're right.. it is my code.. not good html
I can make it work now.
Thanks for the response.

>Well I don't think <div><td> is good HTML. Did you just crop out the
>rest? If not, try
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: http://www.houseoffusion.com/groups/ajax/message.cfm/messageid:5510
Subscription: http://www.houseoffusion.com/groups/ajax/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.47