search for: maxlength

Displaying 20 results from an estimated 84 matches for "maxlength".

2006 Jun 13
2
Custom Primary Key, Using Primary Key in Form "gives before_type_cast" error?
..." end Login Controller class LoginController < ApplicationController def login @user = User.new end end When creating a Login form (login.rhtml) <%= start_form_tag :action => "process" %> <%= text_field ''user'', ''user_id'', :MAXLENGTH =>"10" %> <%= text_field ''user'', ''user_password'', :MAXLENGTH =>"20" %> <%= submit_tag "Login" %> <%= end_form_tag %> I get an error NoMethodError in Login#login Showing app/views/login/login.rhtml where...
2007 Apr 18
3
Problems with the Speex Jitter Buffer
...buff, 320); p.data = buff; p.len = 320; p.timestamp = packet->SequenceNumber() * m_Ticks; p.span = m_Ticks; jitter_buffer_put(m_JitterBuffer, &p); } m_Mutex.Release(); delete packet; } void BeatJitterBuffer::GetSound(char* buffer, size_t maxLength) { int ret; if (320 == maxLength) { JitterBufferPacket packet; packet.data = buffer; m_Mutex.Aquire(); ret = jitter_buffer_get(m_JitterBuffer, &packet, 0); if(ret != JITTER_BUFFER_OK) { ZeroMemory(packet.data, maxLength...
2006 Jul 15
7
:maxsize => 30 in form not working
...tag ''Update'' %> <%= end_form_tag %> And the following code in _form.rhtml: Category: </td> <%= text_field("category", "category", :size => 30, :maxsize => 30) %> I''ve tried numerous different combinations such as: maxlength="30", :maxsize => "30", without the :size => and so on. All to no avail. Surely this doesn''t require code in validation or a before filter or otherwise does it? Since I can''t allow the app to blow up every time a user enters more characters than the...
2003 Aug 15
0
Re: [R} stars graphs
...rigin of length 'lengths' # at the angles specified by 'radial.pos' in radians # starts at the 'east' position and goes counterclockwise radial.plot<-function(lengths,radial.pos,radial.range,labels,label.pos, main="",xlab="",ylab="",...) { maxlength<-1.1*max(lengths) if(missing(radial.range)) radial.range<-range(radial.pos) plot(c(-maxlength,maxlength),c(-maxlength,maxlength),type="n",axes=FALSE, main=main,xlab=xlab,ylab=ylab,...) # get the vector of x positions xpos<-cos(radial.pos)*lengths # get the vector of y posi...
2006 Jul 06
4
ERb question: Embedding <%= %> in helper method calls
...d a situation where I wanted to use a <%= %> (scriptlet) in my text_field call to set the "disabled" attribute on the text field, like so: <%= text_field(:current_job, ''removeLinkPos'', :value => '''', :id => ''offset'', :maxlength => 2, :disabled => <%= sometest ? ''true'' : ''false'' %>) %> however, this caused a compile error. I ended up with an if/else statement to generate my text_field differently based on the boolean test for "disabledness". It kind of makes...
2007 Apr 20
2
Problems with the Speex Jitter Buffer
...mp = packet->SequenceNumber() * m_Ticks; >> p.span = m_Ticks; >> jitter_buffer_put(m_JitterBuffer, &p); >> } >> >> m_Mutex.Release(); >> delete packet; >> } >> >> void BeatJitterBuffer::GetSound(char* buffer, size_t maxLength) >> { >> int ret; >> >> if (320 == maxLength) >> { >> JitterBufferPacket packet; >> packet.data = buffer; >> >> m_Mutex.Aquire(); >> >> ret = jitter_buffer_get(m_JitterBuffer, &packet, 0); &gt...
2012 Oct 02
1
ffsave problems
...uot;Dim")= int 65640757 6 .. - attr(*, "Dimorder")= int 1 2 $ physical: List of 6 .. $ fecha : list() .. ..- attr(*, "physical")=Class 'ff_pointer' <externalptr> .. .. ..- attr(*, "vmode")= chr "double" .. .. ..- attr(*, "maxlength")= int 65640757 .. .. ..- attr(*, "pattern")= chr "clone" .. .. ..- attr(*, "filename")= chr "C:/Users/ADMIN-~1/AppData/Local/Temp/RtmpqmcfGU/clone10d86b45b04.ff" .. .. ..- attr(*, "pagesize")= int 65536 .. .. ..- attr(*, "finalize...
2007 Nov 18
2
Variable inside of another variable
...9;'ve tried like this: <div class="form_row"> <label for="<%= field %>"><%= field_title || field.humanize %>:</ label> <%= form.text_field field, :size => User::field.upcase_SIZE, :maxlength => User::field.upcase_MAX_LENGTH %> </div> like this: <div class="form_row"> <label for="<%= field %>"><%= field_title || field.humanize %>:</ label> <%= form.text_field field, :size => User::#...
2009 Nov 06
0
Nested objects not propagating from view
...ield :street_address1 %> </p> <p> <%= f.label :street_address2 %>: <%= f.text_field :street_address2 %> </p> <p> <%= f.label :city %>: <%= f.text_field :city %> </p> <p> <%= f.label :state_id %>: <%= f.text_field :state_id, :maxlength=>2 %> </p> <p> <%= f.label :zipcode %>: <%= f.text_field :zipcode, :maxlength=>5 %>-<%= f.text_field :plus4, :maxlength=>4 %> </p> <% end %> <p> <%= f.label :phone %>: (<%= f.text_field :phone_areacode, :maxlength=&gt...
2010 Jan 10
1
xmlToDataFrame#Help!!!#follow-up
...s:z='#RowsetSchema'> <s:Schema id='RowsetSchema'> <s:ElementType name='row' content='eltOnly'> <s:AttributeType name='Name' rs:number='1'> <s:datatype dt:type='string' rs:dbtype='str' dt:maxLength='8' rs:maybenull='false'/> </s:AttributeType> <s:AttributeType name='Sex' rs:number='2'> <s:datatype dt:type='string' rs:dbtype='str' dt:maxLength='1' rs:maybenull='false'/> &lt...
2009 Apr 03
2
Problem with spacing
...on>0</option> <flag>wxALL</flag> <border>5</border> <object class="wxTextCtrl" name="companyText"> <size>200,-1</size> <value></value> <maxlength>0</maxlength> </object> </object> <object class="sizeritem"> <option>0</option> <flag>wxALL</flag> <border>5</border> <object class="wxSta...
2008 Jan 16
4
ActionController::InvalidAuthenticityToken in LoginController
...ogin</h1> <form method="post" action=""> <p><label for="user_login">Username</label> <%= text_field "user", "username", :class => ''textbox'', :value => '''', :maxlength => 40 %></p> <p><label for="user_password">Password</label> <%= password_field "user", "password", :class => ''textbox'', :value => '''', :maxlength => 40 %></p> <...
2009 Nov 23
1
xrcise not working
...> <flag>wxALL</flag> <border>5</border> <object class="wxTextCtrl" name="m_textCtrl4"> <value></value> <maxlength>0</maxlength> </object> </object> </object> </object> <object class="sizeritem"> <option>1</option> <flag>wxEXPAND&l...
2007 Aug 16
2
maxLength for InPlaceEditor
It doesn''t seem to be very easy to limit the size of an InPlaceEditor input field, unless I''m missing something. This is pretty simple: http://dev.rubyonrails.org/ticket/5223 Any chance of it getting implemented? Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2007 Oct 03
4
form_remote_tag :onsubmit not working.
...39;); } </script> <%= form_remote_tag :update => '''', :url => { :action => ''''}, :onsubmit => "set_tojid()", :after => "clearinput()" %> <%= text_field_tag :newmessage, nil, {:style => "width: 100%", :maxlength => "1000",:autocomplete => "off"} %> <%= hidden_field_tag :send_to, value = '''' %> <%= end_form_tag %> Anything buggy here?? TIA ~Shishir --~--~---------~--~----~------------~-------~--~----~ You received this message because you are sub...
2003 Aug 13
1
stars graphs
Hi listers, A few days ago I posted a question about the use of the stars function on selected lines of a frame. Thanks to two helpers, a closer look at the scale argument allowed to partially solve the problem. Yet I still have a problem with stars. Allow me to explain what I intend to do (sorry for my poor English and the long post): I want to graph an activity index of a fish during the day
2007 Apr 20
0
Problems with the Speex Jitter Buffer
...p.len = 320; > p.timestamp = packet->SequenceNumber() * m_Ticks; > p.span = m_Ticks; > jitter_buffer_put(m_JitterBuffer, &p); > } > > m_Mutex.Release(); > delete packet; > } > > void BeatJitterBuffer::GetSound(char* buffer, size_t maxLength) > { > int ret; > > if (320 == maxLength) > { > JitterBufferPacket packet; > packet.data = buffer; > > m_Mutex.Aquire(); > > ret = jitter_buffer_get(m_JitterBuffer, &packet, 0); > > if(ret != JITTER_BUFFER_OK...
2007 Apr 20
0
Problems with the Speex Jitter Buffer
..._Ticks; >>> p.span = m_Ticks; >>> jitter_buffer_put(m_JitterBuffer, &p); >>> } >>> >>> m_Mutex.Release(); >>> delete packet; >>> } >>> >>> void BeatJitterBuffer::GetSound(char* buffer, size_t maxLength) >>> { >>> int ret; >>> >>> if (320 == maxLength) >>> { >>> JitterBufferPacket packet; >>> packet.data = buffer; >>> >>> m_Mutex.Aquire(); >>> >>> ret = jitter_buf...
2006 Jul 27
9
Introspecting validates_presence_of
Hello people, I''d like to detect whether an attribute of a model has vaildates_presence_of applied to it so I can automatically apply a mandatory (*) to the field...it doesn''t look easy...any ideas? Cheers, -- Dan Webb http://www.danwebb.net
2006 Jul 26
8
change text_field_tag class
..._form I have the following input fields : (startdate and endate) <div> <label for="startdate">Booking Start Date</label><br /> <%= text_field_tag(''startdate'', @startdate, {:class => @startdateclass, :readonly => "readonly", :maxlength => "25"} ) %> <%= observe_field("startdate", :frequency => 0.5, :url => {:controller => ''booking'' , :action => ''startdateChanged'' }, :update => ''enddate'', :with => "''input=''...