Displaying 20 results from an estimated 3000 matches similar to: "Verify hash key in hash in params hash"
2006 Mar 29
2
intercepting messages from FXScrollBar toFXScrollArea
Hello Lyle,
the Task, I want to accomplish:
I''ve created a little app that is used on a PC with a touch screen. To ease
hitting the keys, the keys and the scrollbars are really big (45 pixels). So
the ScrollCorner is also really big and I just wanted to use this space by
moving the ScrollDown Botton down to the position of the ScrollCorner (like
the attachment shows)
The code looks like
2005 May 16
1
TEXTFIELD_ENTER_ONLY doesn''t work
Hi Lyle,
I noticed that when creating a FXTextField with TEXTFIELD_ENTER_ONLY it
still sends messages
to its target when other keys than KEY_Return are pressed.
I usually create a textfield this way:
textfield = FXTextField.new(self, 50, self, ID_INPUT, TEXTFIELD_ENTER_ONLY)
textfield.setText(aStr)
textfield.setFocus
textfield.move(x, y, w, h)
textfield.show
This way only the enter key should
2007 Jun 05
2
.activate() behaviour
Hi all,
I''m trying to understand why the following code doesnt work...
----------------------------------------------------------------------------------------
<html>
<head>
<title>blabla</title>
<script type="text/javascript" src="prototype.js"></script>
</head>
<body>
<form action="bllalba">
2006 Mar 07
2
Building tkentry dynamicly
Dear R-users,
I would like to build N "tkentry" compounds in the same window, with
default text for each. As N is variable I need to construct them in an
iterative way :
library(tcltk)
main<-tktoplevel()
tktitle(main)<-"My Tool"
filenames<-c("toto","tata","titi")
N<-length(filenames)
for (i in 1: N) {
2008 Jan 08
1
HOWTO: Add a new line, Remove new line?
Hello everyone,
I have a couple of checkboxes, where each checkbox belongs to a
specific input field (which has a value). So whenever the user clicks
on the checkbox, each value of the associated input field is added up
and placed in the ''result'' ID. I''m using unobtrusive Javascript to
make this happen...
However I want to able to add and remove a new line (checkbox
2019 Jan 02
3
Solr
Refinement of the schema.xml (below)
THis however does not solve the "no results" and "Out of range" errors
in Dovecot and Solr
<?xml version="1.0" encoding="UTF-8"?>
<schema name="dovecot" version="2.0">
<uniqueKey>id</uniqueKey>
<fieldType name="booleans" class="solr.BoolField"
2006 Jul 18
8
Including files from lib/
I asked about this a few days ago and got no replies, so I''m asking again.
I have a file called string_extensions.rb. In it, I extend the String class
to include some extra functionality. I put this file into the lib/ directory
of my app.
But the changes made to String don''t take effect. The program acts as though
the files aren''t being included.
I''ve stopped
2006 Jun 18
3
on change of drop down a textfield emerging
hi,
i have a situation where i have a list of options from which a user selects
his options if its not in the list he/she selects Others/Not Present and a
new textfield should pop up and the data entered there should be considered
instead of dropdown.
i have done this using javascript/dhtml but i was wondering how this can be
done using pure rails i.e using some of the RoR apis?.
i would
2008 May 08
1
Textfields
Hey everybody,
I've just merged my TextField hacking into master. It's basically a
big refactoring and test addition thing, to get signals and variables
report something sane. It's not complete yet, but I wanted to have it
in, so we don't get too many merge conflicts when Pekka fixes the HTML
parsing bugs. Here's a partial list of what's missing so far:
- vertical
2019 Jan 02
1
Solr
In the code, it says
#define SOLR_HEADER_MAX_SIZE (1024*1024)
and line 620
if (!ctx->truncate_header &&
str_len(ctx->cur_value) >= SOLR_HEADER_MAX_SIZE) {
/* a large header */
so this is a 1Mo header. This is of course completely wrong.
Maybe this is not the root cause of the errors of fts_solr, but maybe
this will help
On 2019-01-02 18:00, Joan Moreau via dovecot
2006 Jul 15
12
Safe way to destroy records
Hello,
how can I check if a destroy was successful?
Is the object only frozen if deleted or do I have to do an additional
find to see if there is a record left?
What happens if an after_destroy callback returns false? Is there always
a rollback?
Markus
2008 May 18
2
Rendering data in tables
Hello all,
I am new to Rails.
I don''t know whether it is possible are not.
In my application, I need get data from one table , then arrange these
data in table in textfield, then I need to edit data in all rows in
single form.
At the end I need to save these data back to databse.
How can I do this
Is this possible
<%= tag("input" , {:type => '''',
2006 Jun 18
5
on change of drop down showing a new textfield
hi,
i have a situation where i have a list of options from which a user selects
his options if its not in the list he/she selects Others/Not Present and a
new textfield should pop up and the data entered there should be considered
instead of dropdown.
i have done this using javascript/dhtml but i was wondering how this can be
done using pure rails i.e using some of the RoR apis?.
i would
2007 Nov 15
4
Ajax.InPlaceEditor: controls.js update
I''m not sure if this is a bug or not, but I had to patch controls.js
file to accommodate the idea that I had planned.
I had to combine Ajax.InplaceEditor and AutoCompleter for a "tagging"
feature at my office.
With the autocompleter, I need to target an INPUT FIELD by ID.
However the generated INPUT field from the Ajax.InPlaceEditor did not
include this attribute in
2009 Aug 13
10
default value if textfield is empty
Hey all,
im not sure where to set a default value if a textfield is empty?
For now i do it in the controller, and check if the submitted parameter
is blank.
But this seems not to be the best solution...
Thanks for your help!
--
Posted via http://www.ruby-forum.com/.
2006 Jul 10
18
Deleting join association of has_many :through
I''m trying to use has_many :through, since my join model deserves being
more than just an intersection table.
But when I try to break the association, the break only seems
"temporary":
Let''s say my two tables are Users and Colors, and the join model is
Favorites.
user = Users.find(1)
user.colors.length
>> 2
c = user.colors.first
>> #<Color:....>
2007 Nov 15
2
Changes to 'refs/tags/0.5.4'
Tag '0.5.4' created by Benjamin Otte <otte at gnome.org> at 2007-11-15 10:12 -0800
release 0.5.4 ("Turkish Cycling Federation")
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQBHPBurvMv5VCdLq8QRAj1KAJ40NHRRS3gKyJjSjyyoH7gDaGi/tQCeOha/
R5PF4bZQqmSdJ64t8EbD4cA=
=8qBy
-----END PGP SIGNATURE-----
Changes since the dawn of time:
Benjamin Otte (40):
2008 Nov 15
2
Which data structure in R can mimic hash in PERL best?
Dear all,
Which data structure in R can mimic hash in PERL? I'd like to set up
a lookup table, which could be accomplished by HASH if using PERL. Which
of the data structures in R is the most efficient for lookup table?
Thanks for your help.
Best regards,
Leon
2005 Aug 15
2
Newbie rendering problem
Hi
On every list request i render an item partial through a collection of
items. the item table has 3 columns namely name,anotherName and id. the
item partial looks like
<%@item=item%>
<%= error_messages_for(:item) %>
<tr id="<%=item.id%>">
<% for column in Item.content_columns %>
<td><%=h item.send(column.name) %></td>
<%
2008 Apr 14
3
Copy-paste between FXTable and FXTextfield
Hi,
I''m using FXRuby 1.6.13 under Windows XP / Ruby 1.8.6.
I''ve noticed something strange when copying-pasting things between
FXTable cells, and FXTextfields.
----------------------------------------------
1) When copying the content of an FXTextfield, and pasting it into an
FXTable cell, everything works fine.
2) When selecting an FXTable cell, issuing a "copy"