Displaying 20 results from an estimated 1000 matches similar to: "optgroup and Javascript Issues"
2014 Apr 24
0
How to make optgroup with rails version 3
I am trying to set up a drop down list with a optgroup with active users. i
know the following code is wrong, but would there be any way of doing this
how i have it? right now if you take the raw section and just have
data.collect {|a| [ a.name, a.id ] } instead, it works great for just
showing the names of the users, but i want to add that optgorup. How would
i go about doing that?
=
2016 Feb 03
1
[PATCH] generator: simplify generated code for always-available features
Just refer to the dummy function directly, instead of using #define's.
---
generator/daemon.ml | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/generator/daemon.ml b/generator/daemon.ml
index 7ffea7b..d1689e1 100644
--- a/generator/daemon.ml
+++ b/generator/daemon.ml
@@ -732,19 +732,15 @@ and generate_daemon_optgroups_c () =
pr " return 1;\n";
2006 Jan 13
2
Select multiple question
I''ve got the following code in my view:
<select name="user[member_list][]" multiple="multiple">
<%= options_from_collection_for_select @someUsers, "id", "username" %>
</select>
I have a few other fields, textboxes, etc. within the form. When I go
to save the info, the textboxes all save with their content, but the
select box
2012 Jan 05
6
assest pipeline how to exclude some css files?
In my assets I have
intranet
|_1.css.scss
|_2.css.scss
internet
|_1.css.csss
application.css
application_internet.css
application_intranet.css
1.css.scss
2.css.scss
3.css.scss
intranet and internet are directories.
In my layout I want to exclude the files under internet and intranet.
I have created
application_internet.css
/*
* application-internet.css
*
*= require_self
*=
2007 Nov 29
0
WxRuby + Scintilla avec HTML + JavaScript
bonjour à toutes et à tous,
d''abord désolé de ne pas parler/lire/comprendre l''américain/l''anglais,
ce qui fait que j''ai beaucoup de mal à comprendre la doc par exemple.
j''ai un souci d''utilisation de WXRuby avec SCIntilla,
dans le cas d''un HTML + Javascript.
je suis parti bien entendu de l''exemple scintilla.rb
2005 Aug 07
11
HABTM Movable Select Box
Hi,
I found it a while ago, an add-on to Rails for supporting movable select
boxes, but I searched through the wiki and the mailing list and couldnt
find what I was looking for. I was hoping someone might know of or
remember something about the project.
Thanks,
Dylan.
2006 Jan 11
2
extending the Element.prototype to provide a setAttributes function
Hi folks, I''m pretty new to javascript and prototype, so I just want to get
some peer-review on a function I wrote that makes a handy (at least, it seems
handy) way to set a group of attributes on an element easily.
Object.extend(Element.prototype, {
setAttributes: function(attrs) {
var el = this;
$H(attrs).each( function(attr) {
el.setAttribute(attr[0], attr[1]);
2005 May 17
2
Noob - ActionView::Helpers::FormOptionsHelper::select
Hi,
I''m just starting with Rails and i''m trying to do something like this:
<%= start_form_tag :action => ''add_user'', :id => @social_event_group %>
<%= select ''user'', ''id'' , User.find_all.collect {|u| [ u.login, u.id ]
}%></p>
<%= submit_tag "Add User" %>
<%= end_form_tag %>
2008 Jul 07
0
HAML and nestings
I have this partial:
1 - bairros = bairros_select
2 - selected_id ||= nil
3 - if bairros.any?
4 - cid = nil
5 = select_tag :imovel, :bairro_id do
6 - for b in bairros
7 - sel = b.id == selected_id ? {:selected => true} : {}
8 - if cid != b.cidade_id
9 %optgroup= b.cidade.cidade
10 - cid = b.cidade_id
11 %option{sel, :value =>
2010 Sep 17
1
option_groups_from_collection_for_select
Hi,
in my development environment (Ruby 1.87, Rails 2.3.8) the following
code works fine:
<%= select "applicant", "member_1",
option_groups_from_collection_for_select(@topics, :members, :topic, :id,
:name, @applicant.member_1), {:include_blank => true} %>
Producing:
<optgroup label="Clinical Neuroscience">
<option value="1">Prof
2017 Jul 10
7
[PATCH 0/5] various improvements for make-template.mk
Hi,
this series improves the generation of Debian templates, automating
basically almost all the steps needed.
Also, it fixes the generation of aarch64 images with NVRAM, which is
currently removed too soon, and thus not saved and compressed.
Thanks,
Pino Toscano (5):
builder: templates: update Debian preseed from Stretch
builder: templates: generalize debian location
builder: templates:
2014 May 20
2
Re: [PATCH 1/4] generator: add always-available optgroups
On Tue, May 20, 2014 at 07:54:45PM +0200, Pino Toscano wrote:
> Support the possibility to have optional groups always enabled (e.g.
> because they were present in the past, and they need to be kept for
> users).
> Add and use few helper optgroups-related functions to deal also with
> them.
What do you think about the attached addition to this patch?
(It is meant to be squashed
2006 May 23
10
throttling...
Is there a way to throttle the firing of updater requests easily with
Prototype?
Thanks,
mark
2014 May 20
14
Re: [PATCH] daemon: scrub-file: resolve the path before calling scrub (RHBZ#1099490).
On Tuesday 20 May 2014 15:56:16 Richard W.M. Jones wrote:
> On Tue, May 20, 2014 at 03:33:31PM +0200, Pino Toscano wrote:
> > Resolve the given path within the chroot, so scrub can be invoked
> > outside the chroot on an already-resolved path.
> > Given that realpath is used, its availability is checked manually,
> > since scrub-file already depends on the
2007 Oct 13
0
5 commits - libswfdec/swfdec_html_parser.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_xml.c test/trace
libswfdec/swfdec_html_parser.c | 24 +++++++++++++++++-
libswfdec/swfdec_text_field.c | 2 +
libswfdec/swfdec_text_field_movie.c | 9 ++----
libswfdec/swfdec_text_field_movie_as.c | 3 ++
libswfdec/swfdec_xml.c | 5 +++
test/trace/xml-escape-5.swf |binary
test/trace/xml-escape-6.swf |binary
test/trace/xml-escape-6.swf.trace
2006 Mar 23
4
XML parser fixed
Hi, I changed the XML parser who have been write by Greg (Gregory Hill)
and changed some things.
It did not work in IE and Safari and opera.
I fixed some bugs. Now it works fine in IE, Safari, Firefox and Opera.
/* --------------------------------------- */
XMLParser = Class.create();
Object.extend(XMLParser.prototype,
{
initialize: function (XMLFile, options)
{
2006 Feb 07
2
Question about Classes.
I have the attached class that I''m writing. The problem that I''m
running into is that I can not access the options from the createArray
function which get called after the ajax request gets done. I want to
move the values of the xml file to an array and story it in the options
variable. Can someone explain what I''m doing wrong?
var LeaderInfo = Class.create();
2013 Nov 25
6
[PATCH/RFC OSSTEST] Debian PV netboot guest test
I''ve been working on this on the odd occasion, I think it mostly works,
or it did last I tried which was a while back. I''m sure it is too hacky
in places. My plan was to clean it up on the next test day.
I''m mostly just sending this for Wei''s benefit since he is independently
looking at adding Debian HVM guest tests for OVMF purposes.
Ian.
commit
2006 May 01
0
Passing an Array to a hidden field
I have been trying to figure out the best way to pass an array back
and forth between a hidden field in a form and a controller. I am
working on an app that the user can add group members to and decided
the best and most user friendly is to show the user a text field to
input the name of the member. This field has auto complete on it.
When they submit the member is added to an array in
2006 Jun 29
0
Sortables question
Hello,
I am new to Scriptaculous, and was recently brought into a project using
it to create an email Newsletter builder. The idea is that the user
will have lists of elements that he can add to the email page by
dragging the element he wants to add from an "available sections"
container, to a "loaded sections" container. Dragging from the loaded
to available will