similar to: Slider: passing the slider object to onChange and onSlide?

Displaying 20 results from an estimated 1000 matches similar to: "Slider: passing the slider object to onChange and onSlide?"

2006 Jun 18
1
Equivalent of java httpclient
Hi everyone, I''m trying to post from a controller to another application, with one of the post parameters being a multipart file attachment. What do you recommend for this process? From what I could gather from doing searches I need to use something like Net::HTTP or open-uri, but I cannot find how to add attachments to these. Any suggestions? Thanks, Abdullah -------------- next part
2005 Sep 21
8
Slider controls
Heya! Thanks to Marty Haught, script.aculo.us (as of changeset 2281) now sports a new Control for horizontal and vertical sliders. See the functional test file (test/functional/slider_test.html) for information on how to use it. Basically, you do: <div id="track1" style="width:200px;background-color:#aaa;height:5px;"> <div id="handle1"
2008 Jul 07
4
script.aculo.us slider - this and event handler - depending sliders
Hi, I successfully created depending sliders with prototype and slider.js. See the result here: http://www.soa-world.de/dev/slider/slider.html (here''s the code: http://pastebin.com/ma1e82eb) There is one problem with my code. What I do is I have a sliders class "function sliders()" inside I create the 5 sliders in a for loop and store them inside an array which is a member of
2006 Apr 24
1
implementing a Slider control
i''m trying to implement a slider like "http://wiki.script.aculo.us/scriptaculous/show/SliderDemo", but i see that my code doesnt work. i seem to do everything correct but then if some one could look into it and help.. regards muddana The View Code: <%= javascript_include_tag "prototype", "effects"
2006 May 20
1
Slider.js - Attemting to put values in form.
I can''t figure out how to take that value that the user has chosen in the slider and put that into a form value. Does anybody know how to do this? Here is my code so far (It''s pretty much directly from script.aculo.us): <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html> <head> <title>Text effects tests</title> <script
2001 Sep 28
5
smbclient error
Hi, I've installed Samba on AIX 4.3 machine named ibmf40, and the domain name is vercom. This is how the smb.conf file looks: [global] netbios name = ibmf40 workgroup = vercom server string = Samba Server security = user However I get an error when trying to run smbclient as follows: ibmf40 /usr/local/samba/bin # ./smbclient -L ibmf40 -N added interface ip=65.45.28.4
2006 May 01
3
beta testers: tab panes
Hello, I was wondering whether anybody is interested to do some beta testing on a script I''m currently working on. Here is a little preview: http://net4visions.com/dev/tabs/tabs.html. A little doc file can be found here: http://www.net4visions.com/dev/tabs/docs/readme.htm _______________________________________________ Rails-spinoffs mailing list
2006 Feb 17
7
Released: window dialog script
Hello, First, please let me thank you to Ryan Gahl and Jerod Venema for their patient help - really appreciated their input - I couldn''t have done this script without their support. Today I released a dialog script based on scriptaculous and prototype. A demo can be seen here: http://net4visions.com/dev/dialog/dialog.htm . Please see the readme and changelog file for details. Your
2006 May 23
0
Slider.js - Attemting to put values in form.
I can''t figure out how to take that value that the user has chosen in the slider and put that into a form value. Does anybody know how to do this? Here is my code so far (It''s pretty much directly from script.aculo.us): <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html> <head> <title>Text effects tests</title> <script
2006 Jan 31
1
Slider values from .25 - 1
I am having some difficulty understanding how to set the slider values to a specific range <div id="track" style="position:absolute; left:25px; top:10px; width: 150px; height:10px;"> <div id="scaller" style=" width:10px; height:15px; background- image: url(slidder2.png)"></div> </div> var scalebar = new
2006 Mar 01
1
Eager loading problem. Help greately appreciated
Each Timesheet has an employee. An employee has a division and a location. I want to find all the timesheets with a status of 2. I then iterate over the timesheet collection and print the timesheet name, employee name, employee divison name, and employee location name. Like so: for t in Timesheet.find(:all,:conditions=>"status=2",:include=>:employee) puts timesheet.date
2006 Jul 12
6
Showing rows on a page
This is my first rails program and I?m having trouble figuring out how to show rows on the page when there may not be rows in the database. There are 3 tables, employees, cost_codes and timesheet, I will simplify them when describing them later on. When an employee logs in, I would like to pull up their timesheet, which should consist of one row per cost code. So timesheet would look a
2006 Jan 19
2
select vs. select_tag
I have a "Users" object and a "Timesheets" object. Each timesheet entry belongs to a User, which is selected from a drop-down list. The timesheet has a user_id field. (The user needs to have an option to select a different user due to the way our system works.) If i use the "select" object, which is bound to the Timesheet model, using this code: &lt;%= select
2013 Mar 30
1
How to use group in nested associations
The below query fails: Timesheet.joins(:time_entries).select("timesheets.*, sum(time_entries.worktime) as total").group("timesheets.start_date") The models have the following relations: Timesheet < AR has_many :activities, dependent: :destroy, inverse_of: :timesheet has_many :time_entries, through: :activities accepts_nested_attributes_for :activities,
2006 Aug 04
5
query across tables
I am trying to do things the proper rails way and use the auto generated id to refernce other tables. Now I''ve hit a wall in trying to write a query. timesheets: id, employee_id, code_id, ... values codes: id, job_number, code How can I show just the timesheets that belong to a specific job? I would need to check the codes table and look at the jobs, so I was thinking of something
2006 Mar 28
2
Fastest way of adding " " around multiline text in RADRAILS
lets say i have the following SQL in my database editor : When i paste it into rad rails i have to add quotes and the ''+'' symbol to the end of each line. It is very tedious. What is the best method? select timesheets.employee, sum(items.hours) as hours, sum(items.hours*timesheets.cost) as cost, sum(items.hours*timesheets.charge*decode(activities.chargetype,0,1,0)) as charge,
2006 Jul 31
1
Adding new rows to a db
I''ve created the following function, and for testing have hardcoded the following values: def addNewRow @timesheet = Timesheet.find(:employee_id => ''1'', :cost_code_id => ''14'', :dept => ''007'', :ending_date =>
2007 May 16
2
very odd controller spec problem
Here''s a snippet: it "should provide the fund" do get(:timesheet,{:id=>@fund.id}) assigns[:fund].should == @fund end Works fine on my box, fails on my CI server. Here''s the output: NoMethodError in ''The FundController timesheet should provide the fund'' You have a nil object when you didn''t expect it! You might have
2006 Feb 18
10
Updated: window dialog script
Dialog script has been update. A demo can be seen here: http://net4visions.com/dev/dialog/dialog.htm . Please see changelog for changes. The dialog script can be downloaded from here: http://www.net4visions.com/dev/downloads/dialog.zip . _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2013 Mar 25
1
validates presence of foreign key fails in nested form
I''m using accepts_nested_attributes as follows: class Timesheet < ActiveRecord::Base attr_accessible :status, :user_id, :start_date, :end_date, :activities_attributes has_many :activities, dependent: :destroy has_many :time_entries, through: :activities accepts_nested_attributes_for :activities, allow_destroy: true end class Activity < ActiveRecord::Base attr_accessible