search for: getinput

Displaying 9 results from an estimated 9 matches for "getinput".

2020 Feb 12
2
tool options to generate spill code
Hello, For the following test case, reg.c #include <stdio.h> int getinput() { static int u=10; return u++; } int main() { int a,b,c,d,e,f,g; a=getinput(); b=getinput(); c=getinput(); d=getinput(); e=getinput(); f=getinput(); g=getinput(); printf("%d %d %d %d %d %d %d\n",a,b,c,d,e,f,g); a=b=c=d=e=f=g=0;...
2007 May 13
2
prototype - get inputs()
hi, i have the following function which is not working for me: function uploadimg (theform,ajaxAction,ajaxTarget){ var imgDesc = theform.getInputs(''page1'', ''text'',''imgDesc''); alert(imgDesc[0]); defaultAction=theform.action; defaultTarget=theform.target; theform.action=ajaxAction; theform.target=ajaxTarget; theform.submit(); //Submit the form. //Then display a loading message to t...
2006 Jul 10
2
inline javascript in partials
...m}'')", :url => { :action => "process_multiple" } } %> <% do_before ||= nil %> <% click_fn = "on_#{form}_#{button}_clicked()" %> <script language="javascript"> function <%=click_fn%> { <%= do_before %> Form.getInputs(''<%=form%>'', null, ''<%=mode%>'')[0].value = ''<%=button%>''; <%= remote_function(remote_options) %>; return false; } </script> <% onclick ||= click_fn %> <%= image_tag("/images/tfs/en-#{butto...
2008 Sep 15
2
Passing an array into controller
I am trying to pass and array from an AJAX Javascript function to a controller. The parameter is being read as a single string and not an array. The Javascript function: function sendtolist(formName){ var form = $(formName) var checked = [] checked = form.getInputs("checkbox","plans[]").findAll(function(item) { return item.checked; }).pluck("value"); action="/generate_reports/advanced_plan_summary" window.location.href=action+"?plans[]="+checked } The controller is: def advanced_plan_summary @ids = para...
2006 Aug 25
3
RJS Error: Element.update is not a function
Hi, I have implemented some RJS code and I have the same exact code in 2 different places. In one place I get the error "Element.update is not a function" and the other place works fine. Any idea why this error is coming? Breaking my head. -Vinod --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on
2006 Apr 29
11
Multiple actions from one form - possible?
Hello * Obviously the rhtml below does not work, but it should be apparent what I try to achieve - I would like to give the user the choice to submit a form either to action1 or action2 but I cannot figure out how?! It would be great if someone could give some assistance. Thanks a lot, Alex <%= start_form_tag :action1 => ''save'', :action2 =>
2005 Oct 26
1
how to get input fields (checkboxes)
Hello, I was wondering what the easiest way would be to get all input fields in a form - they all have the same id like toggle[] for instance. how could I e.g. count them? would the getElements or getInputs work for instance and how would I use them? thank you _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it''s FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
2006 Jan 24
3
AJAX Preview & Edit Page Problem
..._button'', ''Preview'') %> <td><%= submit_tag "Preview", :name => "_signup_button" %></td> <td><%= submit_tag "Cancel", :name => "_signup_button", :onclick => "Form.getInputs(this.form, null, ''signup_button'')[0].value = ''Cancel''" %></td> <%= end_form_tag %> </div> FORM EDIT PAGE -> rendered in main page, replaced by PREVIEW PAGE, then I''d like to put it back in the update div ------------...
2007 Feb 18
11
Tabulation with ENTER key
Dear all, I think this can be interesting for others too. For a while I tried to solve that problem - how to tabulate with ENTER/RETURN key too and not only with TAB. You know the problem - you are entering a lot of numbers from numeric keypad but you need to go far left to press TAB. This prevents one-hand data entry and prohibits web apps to be used by accountants, for instance. Here is a