Displaying 20 results from an estimated 8000 matches similar to: "creating a new record in a pop-up-window"
2006 Feb 21
3
HABTM :insert_sql help
Hi all,
I''m working with a legacy sqlserver db and I''m trying to override the
insert sql in as defined in the HABTM method below(becasue the join
has three primary keys), but I''m getting the error: ''undefined local
variable or method `record'' for Project:Class''
has_and_belongs_to_many :people,
:class => ''Person'',
2006 Dec 11
1
Using link_to_remote to add a record
I am trying to use link_to_remote to simply add a record to a database
table called "ratings". I''ve seen some examples of this being done but
can''t seem to get it to work. Any ideas about what I''m doing wrong?
Here is what I have in my view:
<%= link_to_remote( "1", {:url => { :controller => "ratings", :action =>
2007 Nov 14
1
reading tables from url
I'm trying to read some web tables directly into R. These are both
genome sequencing projects (eukaryotes and metagenomes) from NCBI and
look very similar; however, only the first one works.
http://www.ncbi.nlm.nih.gov/genomes/leuks.cgi
http://www.ncbi.nlm.nih.gov/genomes/lenvs.cgi
I added ?dump=selected to the end of the url string to get a tab-
delimited file (which is what happens
2007 Feb 19
0
Ajax.Update nested within Ajax.Request
Hi everyone,
I have a script below that submits a form using Ajax.Request which is
working fine. onComplete or onSuccess though, I''d like it to refresh
the div form (formCapture), but so far I can''t get it to work. The
script runs to into the onComplete stage, but the div isn''t refreshed.
Can anyone help with this?
Regards,
Robert Hofmeyr
function subForm() {
new
2006 Nov 20
2
getting form content for print popup
I''m trying to open a new window for printing a form from a link. I want
to display the contents of the form for printing. I can get the popup
to work, but am wondering how to get the contents of the form from the
parent window, using RJS.
I can use a submit option to get the form parameters in a
link_to_remote, but the popup doesn''t work.
<%= link_to_remote
1998 Dec 22
2
Problems with SMB.CONF (2nd)
Majid,
On Wed, 23 Dec 1998 00:20:31 +1100, Majid Tajamolian wrote:
>> >; hosts allow = *.bol.sharif.ac.ir
>> >; hosts allow = .bol.sharif.ac.ir
>> >; hosts allow = 194.225.42.*
>> > hosts allow = 194.225.42.
>> >2. As you see above, if I use a domain detector except with the format
>> > "194.225.42." , clients on our LAN
2006 Jun 13
1
AJAX based record deletion
Hi,
New to RoR and I just wanted to check the correct process flow for
this...
I presently have a controller action:
def destroy_category_association
category = CatalogueCategory.find(params[:id])
product = Product.find(params[:product_id])
product.catalogue_categories.delete(category)
end
I display a list of categories assigned to a product, some of which I
may wish to delete
2002 Jun 14
1
data.frame - transform
Hi there,
I have a data.frame (pwt6) which I would like to transform:
country year gdp
MEX 1950 2
MEX 1951 5
BOL 1950 4
BOL 1951 12
ITA 1950 45
ITA 1951 2
This should be the result:
year MEX.gdp BOL.gdp ITA.gdp
1950 2 4 45
1951 5 12 2
Right now I have this code (better - no code):
country.label<-names(table(pwt6$country))
result<-data.frame(year=NULL)
for(i in country.label)
?
2009 Oct 26
1
[LLVMdev] RegAllocSimple doesn't work
I tried both the most recent version of "simple" register allocation and
the one from last August, and neither seems to work correctly (they run,
but produce bad output). I used them to compile an old version of the
Unix "replace" utility (source code attached). Here's how I created the
executable:
llvm-gcc -emit-llvm -O0 -c replace.c -o replace.bc
opt -mem2reg
2002 Oct 25
1
Winbind with samba PDC
Is it possible to use winbind to authenticate my Mandrake
9.0 (samba 2.2.6) machine on my windows domain (controled
by a Mandrake 8.2 (samba 2.2.6) server??? I tryed and the
users are working fine, but the groups that i use to my
windows shares are not, where do i set on the samba
server wich groups are my domain groups, is it possible??
Tanks very much for the help.
Cyro
2006 Oct 17
2
Help needed!!!!
Hello there,,
My self is MANISH KUMAR <http://astriskmanish.wordpress.com/>, i m a some
wat new user of LINUX , presently i am using UBUNTU 6.06 Dapper Dark.
So some how i need a indian msnger named as REDIFF
BOL<http://messenger.rediff.com/newbol/>, on this ubuntu. i have
searched a lot on GOOGLE,, then i got some idea abt
i can configure it by using WINE.
So can any one tell me what
2002 Oct 12
2
common.def
All my shorewall files have a coment at last line:
"#LAST LINE ... DO NOT REMOVE"
But not common.def. Is this file corrupt?
F.
__________________________________________________________________________
Encontre sempre uma linha desocupada com o Discador BOL!
http://www.bol.com.br/discador
Ainda n=E3o tem AcessoBOL? Assine j=E1! http://www.bol.com.br/acessobol
2002 Oct 12
2
logs analise
My logs show thats:
A internal client search my proxy
(192.168.0.3)
Oct 12 12:40:33 massayo kernel:
Shorewall:all2all:REJECT:IN=3Deth1 OUT=3D
MAC=3D00:e0:7d:82:0f:fe:00:04:75:99:28:63:08:00
SRC=3D192.168.0.215 DST=3D192.168.0.3
LEN=3D63 TOS=3D0x00 PREC=3D0x00 TTL=3D128
ID=3D25902 PROTO=3DUDP SPT=3D3028 DPT=3D53 LEN=3D43
Why OUT is empty?
From: Server (DMZ)
Oct 12 12:40:34 massayo kernel:
2002 Oct 02
2
New to Shorewall
Hi,
I just install Mandrake Linux 9.0 and
it use shorewall.
My first impression are extremily
positive. But I simply
can''t ping outside my machine.
I verify that my route table is ok. It
just cant''t ping
in the same network! :(
Any sugestions?
# iptables -L | grep icmp
ACCEPT icmp -- anywhere
anywhere state
NEW,RELATED,ESTABLISHED
ACCEPT icmp
2001 Mar 17
1
request for help in project
Respected sir,
I am doing project of mp3 player using 'C' in linux but i dont know about mp3 compression and how to decode it to play.So I request you to tell us about mp3 compression and how to decode it.
Thanking you sir,
Ujjaval Suthar
_____________________________________________________
Chat with your
1998 Dec 21
1
Problems with SMB.CONF
Hi everyone,
I installed SAMBA-1.9.18p10 on my computer which is a LINUX 2.0.30 and
configure it with the following smb.conf file:
========================================================== BEGIN
[global]
load printers = no
guest account = nobody
workgroup = SAMBA
wins proxy = no
wins server = 194.225.42.33
log level = 1
log file = /usr/local/samba/var/log.%m.%a
max log
2008 Jul 23
0
Link_to_remote object missing
Hello, I''m in troubles trying to use ''link_to_remote'' on Rails 2.1.
Having this page:
<h4>Editing project</h4>
<% form_for(:project, :url => project_path(@project), :html =>
{ :method => :put }) do |f| %>
<p>
Name <%= f.text_field :name %>
Date <%= calendar_date_select :project, :target_date, :time =>
2007 Jan 28
3
always Not Found
hi!
I''m migrating to Rails 1.2.1 (from 1.1.6), but now I''m getting a 404
(Not Found) page for every url I call! Not even the error messages I got
before are shown on this page anymore. So I took a look into
development.log, but there everything is ok, WebRick sends Http 200 OK.
The routes.rb I left as the standard:
map.connect '':controller/:action/:projectid''
2006 Apr 13
1
Adding a title to an AJAX link.
Hello all.
I am trying to add a title to a link_to_remote created AJAX link.
What I want to create is:
<a href="#" title="VALUE-HERE" onclick="new Ajax.Updater(''content'',
''/area/show/28/40'', {asynchronous:true, evalScripts:true}); return
false;">Area Name</a>
However I cannot seem to get it to work, the API says
2006 Jun 07
2
How to send post data with link_to_remote?
Hi,
I''m trying to send a post body with my link_to_remote call.
Prototype supports the ''postBody'' option, but I can''t seem to get
link_to_remote to set that.
Here''s what I''m trying:
link_to_remote ''move up'',
:url => { :controller => ''upload'', :action => ''position_ajax'', :id