Displaying 20 results from an estimated 400 matches similar to: "Rails/Ajax question from a newbie (to both)"
2006 May 04
3
Problem using url_for
I''m trying to generate a URL of the form
controller/action?id=<id>&type=<type>. My code looks like this:
url_for(:controller => ''content'',
:action => ''get_resource'',:id => item[''Id''],:type => item[''type'']
)
The url I end up with looks like this:
2006 Aug 10
5
Ampersand Heartburn
Greetings all.
I''m using the Microsoft "NorthWind Traders" database "orders" table as
test data for the Rico LiveGrid JavaScript.
The problem I''m noticing is that some of the records in the "ShipName"
field contain ampersands -- which for some reason are not being escaped
by Rails.
Rails does in fact automatically escape all of the other
2006 Feb 08
3
OpenRico LiveGrid or similar
Hi
Has anyone used OpenRico''s "on-demand listbox" LiveGrid or something
similar in a Rails app already? How well does it behave?
I''m asking this because I need a scrollable list but the number of
records in the table could be well above 5000. In the past I''ve used
similar "on-demand fetchings" in desktop apps and it was a real
blessing (the
2005 Sep 13
3
Alternatives to Rico LiveGrid?
I''m no friend of paging, but I have to somehow deal with lists of
potentially large numbers of objects. The Rico LiveGrid[*] at first
blush seems attractive, but has some major drawbacks. It doesn''t work
with Safari/Konqueror, not yet anyway. It can only handle fixed-size
tables and requires that widths, including column widths, are
hand-crafted.
I''m looking for a
2005 Sep 15
4
Scrolling Tables/Divs?
Is anyone working on a scrolling table or div such as the openrico
livegrid demo? I''m looking to develop (much like smashbox''s scrolling
images) a collection of thumbnails that you can scroll horizontally.
I''ve got a non-prototype.js example but I wanted to check to see if
anyone was closer than I to this.
BTW, I will be finishing up my slider code shortly and
2006 Aug 10
4
I need "validates_presence_of" help
Hi - I have 3 fileds a user can fill out. They can fill out 2 of them or
just one of them, for example.
fill out these 2 fields:
Field1 and Field2
Or fill out this field:
Field3
In my model how do I use validates_presence_of for Field1 and Field2 or
just Field3.
I want to do something like this:
validates_presence_of Field1, Field2
OR
validates_presence_of Field3
So the user can fill out
2008 May 29
2
how to use substring match as condition?
Hi,
How can I use a substring match as a condition in a subset command?
Sth like this:
subset(input, field1=="blah1" & field2=="blah2") # but now with substring
match in field2
subset(input, field1=="blah1" & field3 *substringmatch* "blah3")
I've tried with gsub, but it won't work:
subset(input, field1=="blah1" &
2006 Jan 13
4
How to add virtual fields in model
I want to add virtual fields in a model.
table: field1 field2
I want to add field3 which is field1*2 + field2
I know tihs can be achieved in View, but I want it in model.
Then I will pass this model to PagerRenderer to paginate.
How to achieve this?
thanks
--
Posted via http://www.ruby-forum.com/.
2011 Oct 05
1
Weird behaviour of tab characters in a string in R (vs Python)
Hello,
I wanted to parse some information from a text, where fields are tab
separated.
When I copy the text into an R session (under emacs) like:
mystring <- "field1 field2 field3"
the tab character is replaced by a single space!
For ex, if I type mystring, I get:
"field1 field2 field3"
The tabs have disappeared!!!
I checked with Python that the text I copied was tab
2009 Aug 15
4
How to use R to perform prediction based on history data
Say I have a csv file, each row contains several fields, one of them
are whether the row is success.
In history data, I have all the fields including the result of whether
it is success. In future data, I only have fields without the result.
For example:
history data:
Field1 Field2 Field3 Field4 ResultField
1231 CA TRUE 443 TRUE
23231 NC TRUE 123 FALSE
2013 Oct 31
6
need help !!!
Hi,
I am using puppet 2.7.20 server on linux and windows client with same
version of puppet.
Until recently everything was working fine but lately I have started
getting the error below
[0m
[0;32minfo: Caching catalog for node_windows [0m
[0;37mdebug: Puppet::Type::Exec::ProviderShell: feature posix is
missing [0m
[0;37mdebug: Puppet::Type::Exec::ProviderPosix: feature posix is
missing [0m
2011 Aug 22
8
Reserved Memory release
I had temporarily started a VM, and it has allocated the memory for it. I
have realised that after turning it down, the memory allocated to it, has
remained reserved. Now, I need it for Dom0.
So, how do I release the RAM that is reserved for VM, and make it available
to Dom0? Is reboot the only option?
_______________________________________________
Xen-users mailing list
2009 Sep 10
3
[LLVMdev] Finding call points to a function
Hi,
I am writing an LLVM Pass and I would like to know how would I do the
following:
1. I have a function foo, and I need to get all the call points calling this
function in each Function of the Module. The only way I can think of is to
iterate over the BasicBlocks of each Function, look for all the Call
Instructions and check if the called function is foo. I was wondering if
there is any other
2006 Feb 20
3
Pretty Data Grid
Hey everyone,
I''m looking for a good way to display a table of data in rails. I
want something with scroll bars and resizable columns. Am I crazy for
trying this? Is there a class or such already written that makes
pretty data grids?
-Josh
-----------
Due to the recent increase in spam and falsely sent email, I now PGP
Sign all of my outgoing mail to prove my identity. This
2009 Sep 04
2
[LLVMdev] Error in Hello World Pass
Hi,
I am trying to compile the Hello World pass (described at
http://llvm.org/docs/WritingAnLLVMPass.html#basiccode) in an LLVM Project
and I get an error, 'no match for ‘operator<<’ at line
llvm::cerr << "*Hello: *" << F.getName() << "\n";
But when I looked up in the LLVM API Documentation, I think "<<"
operator is not overloaded
2011 Aug 17
14
Copy files from Centos Guest to Host
Is there any method to copy files from the guest to host? I use virbr
networking where the host and the guest have different static IPs.
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
2011 Aug 17
14
Copy files from Centos Guest to Host
Is there any method to copy files from the guest to host? I use virbr
networking where the host and the guest have different static IPs.
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
1999 Aug 25
2
Change passwd via web
hi all,
I am looking for a cgi script which can be used to change the smbpasswd via
web browser. Anyone done this already ?. Any pointers will he appreciated
much.
Thanks
rakesh
--------------------------------------------------------------------
Rakesh Jain Systems Administrator, MIS Dept
BEA Systems, Inc. voice: +1-972-943-5135
4965, Preston Park Blvd fax: +1-972-943-5111
Suite 500
2010 Jun 25
3
Best practice for removing leading and trailing whitespaces
I want to remove the leading and training spaces for most of the
resources in my rails application
For a new POST request, rails does the xml parsing and passes the params
hash to the controller. Some of the parameters have leading and/or
trailing whitespaces which are causing problems (e.g. new resources
being created rather than using the old ones). I don''t want to put the
code in all
2005 Feb 19
3
Hi Newbie question
Hi List,
I am a newbie, just came to know about asterisk a few days back while
installing suse 9.2.
I have a question for which I am sorry to say,but I havntread through
all the archives, but AFAIK i didnt get the answer in the archives.
My question is like this.
I am in Nebraska, US.
I have broadband cable connection at my home. And I have friend and
family in other country.
Using asterisk