I am working on a fairly complicated project. We have a c# forms app that has several layers of business logic, communicating with a c++ hardware management layer via a socket interface.
We have unit test coverage of the c++ side, and the business logic, but acceptance testing of the forms app is a whole new world for me, as we have do...
I am a newbie to Rails. I have simply scaffolded a small model. The model has a field called category. Now I want to filter the entries on the index page by category.
<% form_for @domain do |f| %>
<p>
Domain:
<%= f.select(:Domain,%w{ LifeStyle Automobiles FoodAndBeverage Health IT Telecom EntertainmentAndCelebrity Education BankingInv...
Are there any special considerations trying to read up data from an HTML form where the element is an input type="Password"? When a ColdFusion page POSTs my handler with form data I am getting null for the password instead of the typed value.
Here is the key line from the larger block below:
string password = context.Request.Form["str...
Hello, I am currently writing a script whereby an array of checkboxes are displayed using:
<?
while($i = mysqli_fetch_array($get_perms)){
$pname = $i[pname];
$id = $i[id];
?>
<div>
<input type="checkbox" tabindex="1" name="<? echo("$id");?>" value="1" <? if($permissionid[$id] == '1') {echo ' checked="checked" ';}?> /><?echo...
I'm sorry for maybe making such a basic question but in ASP.NET websites what does the __VIEWSTATE input field represent?
Also, is there any way to compute it's value (based on the values of other form fields)?
EDIT
I understand that __VIEWSTATE, as the name suggests, maintains the values of form field values in webpages however what ...
Hi, this seems simple but I can't figure it out. I receive post data in my rails app through a form and I want to use a redirect (instead of a render) but keep at least one of the pieces of post data alive through the redirect. How can I do this? Adding a hash on to redirect_to doesn't seem to work.
...
Hi,
I'm trying to send parameters to a web site, with no success.
Can anyone please show me a way of how to do it?
an example of one way of doing it in ASP for instance is like that:
Response.Write(http://ads.hevre.co.il/External_Leads_insert_fullDetails.asp?afid=2512&Firstname="AAA"&Exfield1="BBB"&"&phone="321321321"&a...
Is there any way to cancel or abort form creation from within the form's OnCreate event handler or C++Builder constructor?
Basically, I'd like to be able to call Close() from OnCreate or from the constructor and have it skip showing the form altogether. I have several forms that as part of their initialization may determine that they...
I'm programming an order form that has multiple order items. Each line item is a row in form, identical to the previous row. I'm wondering what the convention for names and ids on the input fields. Do i use the same names and id for the fields in each row?
How do I reference an input field within a particular form row?
How do i refere...
Currently our software is running on AIX Unix machines, but we use Windows boxes running Exceed to display the UI in X-windows. I'm writing a Windows application ( modernizing the UI in C# ), but some of the legacy windows still need to be displayed in Exceed. When a user clicks a button on my windows application, it sends a message to...
I have an input box which I want to handle two types of information, foo and bar.
The form action is set to either the foo controller or 'bar controller. It really doesn't matter which one. For the sake of example, the form action is to foo/new.
In the controller, I have a function that looks at the form input text and determines if i...
So, what I want is basically to attach a javascript handler to a form, that whenever one of the form input boxes / select boxes is changed or clicked on, this handler would be called with the id of the element that was changed.
The reason I was wondering about this is because I already have this form that has about 50 input boxes, and I...
I am considering the use of a tab control on a parent form for which I would like to have around 20 tabs. Each tab I am considering the use of one or two separate sub forms. Each sub form will have varied complexity in coded logic. By taking this approach will I severally reduce the performance of my application? I am currently using thi...
I use Model-View-Presentation Model in my application and I am wondering whether I need to create unit tests for the view. (I am on .net 2.0 WinForms)
Now typically the view should be so simple that it should not be necessary to create unit tests for it. At least that's the idea I got from the goal of having the separation of View vs. ...
This is a very weird error ocurring only with Firefox 3.5. I have tested it for IE, Safari and Chrome revealing no errors.
I'm using my localhost IIS 5.1 and ye old asp.
I've been able to reduce the scope to this... I have a textarea in a form, filled with 4000 characters, for example.
< textarea name="obs" id="obs" cols="75" rows="1...
Do input field NAMES have to be unique across forms?
I would imagine that it's ok since the reference to each input field is qualified by the form name.
document.form1.inp1.value
document.form2.inp1.value
Am I right?
Will it work in all browsers?
thanks
...
I eventually couldn't get any further with my program due to the various shortcomings of VB.NET (bad audio support, no reading events in the middle of execution, very weak keyboard input, etc). So I tried SDL.NET 6.1.
Despite its terrible documentation, I was able to fix my code to use it and I love it!
But there's a problem. I don't...
Hi,
Livevalidation script is great to validate forms but how you 're suppose to do with group of checkbox, radio, and select. see website : http://www.livevalidation.com/
Thanks.
...
I wasn't even sure how to phrase this so you'll have to forgive me if this is a duplicate.
I have a form question, it can have be answered with one or more entities
The entity is made up of four numbers, currently 4 textboxes side by side.
The two approaches I've come up with are
At the start you have a blank textboxes to enter the 4...
I have a form that is closed unexpectedly immediately after showing it. I hooked all the usual events that occur when a form is closed, but none of it is fired (including Closed, Closing, FormClosed, FormClosing, VisibleChanged, Disposed). How can that happen? What can cause a form to disappear without any of the mentioned events firing?...