search for: form1

Displaying 20 results from an estimated 39 matches for "form1".

Did you mean: form
2011 Jun 23
0
Loops, Paste, Apply? What is the best way to set up a list of many equations?
Is there a way to apply paste to?list(form1 = EQ1, form2 = EQ2, form3 = EQ3, form4 = EQ4)?such that I don't have to write form1=EQ1 for all my models?(I might have a list of 20 or more)? I also need the EQs to read the formulas associated with them. For example, below, I was able to automate the name assignment but I could not figure ou...
2013 Feb 26
1
problem with nested loops
...ce indices for 7 countries. I use the fitted values from reg1 in the reg2 model. The interior loop executes without error as long as I explicitly specify the data set, i.e. data=dat70. However the code fails to execute if I specify the model in the form of the commented line, i. e reg1 <-dynlm(form1,data=Dnames[j]) I get the following error message: Error in merge.zoo(USA, lag(USA, k = -1), lag(USA, k = -2), lag(Canada, : object 'USA' not found Apparently the Dnames[j] does not evaluate to the dataset name. Does anyone have a solution to my problem? The values in Names are:...
2012 Mar 25
2
Modal dialogs getting out of focus
Hello, it is really nice to be here with the wonderful Wine community. Modal window gets out of focus if minimized and blocks any actions in the main window. I've attached and example created in Delphi called Project1. It has Form1 window with action button which opens a modal dialog called Form2. The main idea is when opened Form2 to be always on top and to be impossible to hide it behind Form1. However once that Form2 is opened if I minimize it, I have Form1 stealing modal Form2's focus and Form1's window is blocked...
2011 Jun 21
1
Setting up list of many equations for systemfit
...ystem of equations and I am trying to find a simple way to set up the list command under the package system fit. Here is the example from system fit and what I am trying to do: EQ1 <- Y1 ~ X1 + X2 + X4EQ2 <- Y2 ~ X2 + X3EQ3 <- Y3 ~ X2 + X3 + X4EQ4 <- Y4 ~ X1 + X3 + X4eqSystem <-list(form1 = EQ1, form2 = EQ2, form3 = EQ3, form4 = EQ4) #atempt 1 to "automate" above:eqSystem1 <-paste(paste("form", 1:4, sep=""), paste("EQ", 1:4,sep=""),sep="=") #attempt 2 "automate" above:eqSystem2 <-as.list(paste(paste("f...
2012 Apr 01
1
indexing in a function doesn't work?
...amevec is the vector within the dataframe you're using to subset (should be a percentage), form 1 is the simple y~x for the plot, form 2 is y~x for regression, type is lm 1 or 2 nls ,form 3 is the formula for the nls, sx and sn are the start values for nls plotter<-function(a,b,fram,framvec,form1,form2,form3, type=1, xlm, ylm, sx=.01,sn=25){ g<-ceiling(a/b) par(mfrow=c(b,g)) num<-rep(0,a) sub.plotter<-function(i,fram,framvec,form1,form2,form3,type, xlm,ylm,var1,var2){ temp.i<-fram[framvec <=(i*.10),] plot(form1, data=temp.i, xlim=c(0,xlm), ylim=c(0,ylm), main=((i-1)*.10)) i...
2007 Mar 19
1
Forms lost focus in KDE
Hello, I'm testing a simple delphi application that have 3 forms. >From FORM1 (the main form) I press a button to show FORM2, then from FORM2 I press a button to show FORM3, when I close FORM3, FORM1 becomes focused instead of FORM2. Every time you close a form or a dialog the application main form becomes the active one. This only happend in KDE, allowing windows manager t...
2006 Jul 08
4
Hidden fields in forms
Please can someone show me the correct syntax for a hidden field in forms, this is my code <%= start_form_tag :action => ''create'' %> <div class="form1"> <table width="auto" boader="8" cellspacing="5" cellpadding="5"> <% hidden_field ''line_item'', ''client_id'', :value => session[:client_id] %> <% hidden_field ''line_item'', '...
2008 Apr 23
1
pdf() and histogram() in function call
...the problem. create.pdf<- function(x, dir) { dir.create(dir, showWarnings = FALSE) plist<- c("a", "b" , "c", "d") for(j in plist) { filedir<- paste(dir, "/", j, ".pdf", sep="") form1<- as.formula(paste("~ ", j, " | var1", sep=" ")) form2<- as.formula(paste("~ ", j, " | var2", sep=" ")) form3<- as.formula(paste("~ ", j, " | var3", sep=" ")) pdf(filedir) his...
2006 Jan 17
1
Step.glm() question
Hi: I am using step.glm() as follows: form1 <- as.formula(haspdata ~ 1) lg.mod1 <- glm ( formula=form1, data=st.mtx, family=binomial , na.action=na.omit ) upper <- as.formula( haspdata ~ ( c5+childnm+educ1+incpov1+marital+msa+racekid+racemom+sex+shotcard )^2) lower <- as.formula(haspdata~1) lst <- list( upper=upper ,...
2006 Mar 31
4
javascript help
Hi list, I have a list of tags. I want to be able to click on a tag and have that tag name populate an input field. I think delicious used to allow you to click on existing links to tag your bookmark similar to this (moving instead to auto_complete). My guess is the code looks something like this.... <form> <input type="text" name="all" id="discover"
2006 Nov 23
3
Prototype Safari onSubmit Issues
...simple ajax form which I want to return results on an onChange. Works in IE6 (Win) and FF, but Safari doesn''t seem to take the onChange too well. Upon the return key, it blanks out the form. Upon tabbing to the next field (actually the next form), I get the results. <form name="form1" id="form1" action="#" method="post" onSubmit="return false;"> <input class="formentry" type="text" id="x_hotel" size="20" value="" onChange="getNames(this.form)" /> </form> I...
2006 Apr 22
3
quick ''link_to_remote'' question
...#39; end but when i try to save the @work before moving to a new set of fields, making this change doesn''t work how i want... def SidebarItem(name) link_to_remote "#{name}", :update => ''EditFields'', :before => "document.form1.submit();", :url=> {:action => name, :id => @work.id, :layout => false } end my form is this <div id="EditArea"> <%=form_tag ({:action => ''update_part'', :id => @work} , {:name => ''form1'' })%> &lt...
2011 Nov 15
2
Regular expressions in R
Good afternoon list, I have the following character strings; one with spaces between the maths operators and variable names, and one without said spaces. form<-c('~ Sentence + LEGAL + Intro + Intro / Intro1 + Intro * LEGAL + benefit + benefit / benefit1 + product + action * mean + CTA + help + mean * product')
2006 Jan 12
5
file_column preview in multistage forms
i have a 2 step form which contains 1 file_column field. The second form is just "This is how your post will look" kind of form and the user can click Edit (to take them back to form1) or Submit. If the user clicks edit it takes them back to the first form with fields populated. I have it working with all text fields, I just dont know how to do this with file_column field (showing the image and file selected). Storing the @params[:post]["image"] field in a session c...
2006 Mar 29
1
Help: Input of form 1 to hidden field in form 2?
...hidden field in form 2. The problem I have is that the entire hash from form 1 is showing up in form two rather than just the input data. example: form 1: <h1>Step 1</h1> <%= start_form_tag :action => ''step2'' %> <%= render :partial => ''form1'' %> <%= submit_tag "Register Tag" %> <%= end_form_tag %> Here is the partial (form1): <!--[form:tag]--> <p> <%= text_field ''tag'', ''tag'' %></p> <!--[eoform:tag]--> CONTROLLER: def step1...
2007 Sep 03
1
unnumbered priorities
Hi: When should we use "unnumbered priorities"(n) in extensions.What is the different between these 2 forms of extensions.conf? and ,Are both true? extensions.conf: form1: [Conferencerooms] exten => 333,1,Answer exten => 333,n,meetme(8000|cim) exten => 333,n,playback(vm-goodbye) exten => 333,n,hangup form2: [Conferencerooms] exten => 333,1,Answer exten => 333,2,meetme(8000|cim) exten => 333,3,playback(vm-goodbye) exten => 333,4,hangup I...
2007 Apr 19
1
Do you have any idea what could be the problem with this script?
...equire ''rubygems'' require ''mechanize'' agent = WWW::Mechanize.new agent.user_agent_alias = ''Mac Safari'' page = agent.get("http://www.sbstransit.com.sg/iris3/bus_serviceopt.aspx") search_form = page.forms.with.name("Form1").first search_form.txtsvcno = "014" search_form.txtbusstop = ''92129'' search_results = agent.submit(search_form) open(''output.html'',''w'') {|f| f.write search_results.body} Thanks, Peter
2007 Apr 20
2
Running script does not return the correct page
...equire ''rubygems'' require ''mechanize'' agent = WWW::Mechanize.new agent.user_agent_alias = ''Mac Safari'' page = agent.get("http://www.sbstransit.com.sg/iris3/bus_serviceopt.aspx") search_form = page.forms.with.name("Form1").first search_form.txtsvcno = "014" search_form.txtbusstop = ''92129'' search_results = agent.submit(search_form) open(''output.html'',''w'') {|f| f.write search_results.body} Thanks, Peter
2005 Sep 15
1
Javascript object literals -- prototype clash?
...want to be able to click and change any part, it makes sense to define characteristics of forms and then insert them client-side when needed. (No need for 40+ hidden forms.) Anyway, I''m trying to use a javascript object literal definition that looks something like this: var forms = { form1: { input_line1: { name: ''stuff1'', size: ''30'', type: ''text'', value: ''Init string for stuff1'' }, input_line2: { name: ''stuff2'', size: ''30'', type: ''text'', value: ''Init...
2006 Mar 09
7
how to make two forms on the same page???
I can get the forms to be displayed, but i want to have only one "create" button. i''ve tried everything i can think of... -- Posted via http://www.ruby-forum.com/.