Displaying 2 results from an estimated 2 matches for "scaler_1".
Did you mean:
scaler
2006 Apr 24
1
implementing a Slider control
...n(value){
$(''debug1'').innerHTML = value;
};
s2.options.onSlide = function(value){
$(''debug1'').innerHTML = "slide";
};
</script>
<body>
<div id="image">
<%= image_tag("/picture/filename/1/scaler_1.jpg") %>
</div>
<p><strong>Standard horizontal slider</strong>
<div id="track1" style="width:200px;background-color:#aaa;height:5px;">
<div id="handle1"
style="width:5px;height:10px;background-color:#f00;cursor:move;"...
2006 May 17
0
send_data not working properly with link_remote_to
...tioning normal ....could someone explain .
my view:
<%= link_to_remote("flip",
:update => "img",
:url => {:action => "flip"}
)%>
<div id="img"></div>
controller:
def flip
filename="/public/picture/filename/1/scaler_1.jpg"
img=File.read(filename)
ilist = Magick::ImageList.new
@picture=ilist.from_blob(img)
@picthumb=@picture.flip!
@out=@picthumb.to_blob
send_data(@out,:filename =>''workshopimage'', :type => "image/png",
:disposition => "inline&...