<script type="text/javascript">
$(function() {
    $("#bord").resizable({
        aspectRatio: true,
        grid: 50,
        stop: function(event, ui) { ... }
    });
});
</script>

You only get one .pluginname(options) init in jQuery UI. Any init calls
after that (same element and same plugin) are ignored. If you want to change
an option after init, use the option method:

<script type="text/javascript">
$(function() {
    $("#bord").resizable({
        aspectRatio: true,
        grid: 50
    });
    $("#bord").resizable('option', 'stop', function(event, ui) { ... });
});
</script>

- Richard

On Mon, Aug 17, 2009 at 11:44 AM, webmas...@terradon.nl <
webmas...@terradon.nl> wrote:

>
> Hi, thanks for your answer.
> I have tried this now (see code below), but does not work.
> I did hardcode the image name first, just to see it changing, but it
> doesn't...
>
> Please, any hints?
>
>
>        <script type="text/javascript">
>        $(function() {
>                $("#bord").resizable({
>                        aspectRatio: true,
>                        grid: 50
>                });
>        });
>        $('#bord').resizable({
>     stop: function(event, ui) {
>                    // square image, so just one size needed
>                    var newWidth = $(this).width();
>                                // hardcoded for trying to change
>                                $(this).css({'background-image' :
> 'url(images/bord/bg350.png)'});
>           }
>  });
>        </script>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to jquery-ui@googlegroups.com
To unsubscribe from this group, send email to 
jquery-ui+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to