Displaying 20 results from an estimated 20000 matches similar to: "Problem about javascript in RoR"
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 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
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 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 Sep 24
3
Oracle Date + RoR
Hi Experts,
I''ve a model called Product where i''ve column called created_at,
updated_at
where i''ve made a query based on Oracle date format
like
date_of_created = ''23-SEP-07''
@product = Product.find(:all, :conditions => ["created_at=?",
date_of_created])
but in view its empty.
AND EXPERTS I''VE DATA WITH 24-SEP-07 FOR MORE
2006 Jul 28
0
[CONTRACTING JOB] We are looking for RoR developers, preferably with JavaScript knowledge
Hi
My company is looking for one or more web application developers to
develop modules to be integrated in one of our projects. You need to
be available for the coming two months, this one is on a tight
deadline but should be great fun to do. Currently, I can''t tell a lot
about the project itself as we are under NDA.
Our freelancers and employees all work from their own home,
2006 Jul 31
0
[OT] Javascript based drawing editor for RoR project
Does anyone know of any open source (prefer BSD, LGPL type license)
javascript drawing packages for drawing on websites? Something along
the lines of the FCKEditor but for drawing, not text editing.
F.Y.I - This site is doing what I''d like to do to tie into my RoR app:
http://stuartjmoore.googlepages.com/Gpaint.html
--
Posted via http://www.ruby-forum.com/.
2006 Feb 16
7
RoR vs JavaScript/AJAX vs Java interface. Conflicting ideas?
Hi,
Over the past month I''ve been playing with some ideas for an admin
interface for a ecommerce app.
1) Old-fashioned, forms-based, full-page-refresh, server-focused interface
2) Modern, JavaScript-Drag-Drop, AJAX, client-focused, Web2.0 interface
The more I work on the second option with JavaScript an AJAX the more
I feel like I''m moving away from building a server side
2009 Feb 12
4
Easy RoR <-> Javascript syntax question
Hi there,
a simple n00b question:
I have that Javascript snippet on my page (see below; taken from jquery,
actually).
I want to pass it the "@cities" array from the controller. But what''s
the correct syntax, here?
See the 3rd line:
========================================
<script>
$(document).ready(function(){
var data = @cities; <---- that''s
2005 Oct 25
2
Dragging to a textfield?
Hi All,
I''m trying to drag a copy of a string from a list into a text field so
that the original string stays in the list. I''m able to drag the item
and set the value of the text field onDrop. But the original text leaves
the list & with revert set to true it flies back to it''s original
position in the list. We''re trying to avoid the flying text.
What
2006 Jul 21
3
ROR - Apache - FastCGI / Can''t see stylesheets or javascript
Folks ...
I have been porting my app from dev environment on Webrick to Apache
with FastCGI. I have the app responding and pulling up the data, but it
is ignoring the "images", "stylesheets", "javascripts" directories
located in the public directory.
I''m running Apache under Suse Linux 9.x. Here is the information that I
have in my vhosts.conf file:
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
2006 Apr 24
4
javascript in RoR page - Check ALL/uncheck ALL buttons
I am trying to implement a check all and uncheck all button for my check
boxes.
Here is what I have below. I am getting this error each time:
Error: document.myform.add_visit_for_this_Pt has no properties
Source File: http://localhost:3000/AddPatientVisit/addvisits
Line: 1
Strange that I can''t seem to pass value into the function.
Thanks for your help!
<SCRIPT
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
2006 Jul 09
3
Verify hash key in hash in params hash
Hi,
how can I use Rails ActionController::Verification#verify :params when
the hash key is in a hash?
E.g.: params[:form][:textfield] and I want to verify that :textfield is
a key in params[:form]
Thanks
Markus
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) {
2007 Jan 10
0
Ajax.InPlaceEditor Create Form question
I''ve successfully combined Ajax.Inplaceeditor with another autocomplete
javascript.
However, I''m trying to alter the form that is created.
Is there a way to prevent the autocompletion feature when typing in the
form?
I tried messing with the controls.js file:
textField.obj = this;
textField.type = "text";
textField.name = "value";
textField.id =
2005 Oct 05
5
InPlaceEditor crash on Safari
Quick question..
I often crash my Safari when using ''Enter'' on InPlaceEditor''s for
submitting.
Works fine on firefox(win & Mac) - no javascript errors.
Anyone else seen this behavior?
(Maybe it is just my alterings of InPlaceEditor :-)
Best Regards
Michael Krog
2007 Jul 03
2
"form_for" names fields using brackets = javascript problems
Hi all,
The "form_for" helper and its friends "text_field_for" etc generate form
fields with names like "forum[title]", i.e. using square brackets to
denote attributes on model objects.
Now, for the convenience of the user I want to do some simple
client-side validation to check that some fields have been filled in. So
I am trying to write javascript like
"if
2006 Jul 16
3
Binding text_field et al to object.attribute.name
Hi all,
Suppose I have a PurchaseItem model which refers to Product model...
class Product < ActiveRecord::Base
has_many :purchase_items
end
class PurchaseItem < ActiveRecord::Base
belongs_to :product
end
To keep things simple, one of the attribute of the Product model is
title.
On the interface, I have a textfield that I need to bind with
@purchase_item.product.title.