a question about forms in powershell
my script uses two forms. i want to close second form after opening first one. how can i do it? ...
my script uses two forms. i want to close second form after opening first one. how can i do it? ...
In IE7 and IE6 the form validation returns alert('Please fill the indicated fields.'); and no field is highlighted as invalid . <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="cont...
Let's consider this scenario: a freshly create windows form application in which i created a Form2 besides the original Form1. 1st Question: I want both forms to show up at start-up, so i basically wanted to add Application.Run(new Form2()); in main right after the similar command for Form1, but since i read that i cant use multiple thr...
Hi, I've got a functioning form with a sfWidgetFormChoice that acts as a list of checkboxes. I'm able to set the checkboxes to "ticked" by default with the following: 'status' => new sfWidgetFormChoice(array('choices' => array(1, 2, 3), 'multiple' => true, 'expanded' => true), array('checked' => 'checked')) ... where the checkboxes a...
How can i deploy a system that I can install in a PC and dont have to install a DBMS locally. I want the data repository of this system to sync with the main database online whenever the user want. The local system wont have internet access all the time. I could manage data locally with files or Access but I think a better solution must ...
I am trying to create buttons ala Wufoo (Rediscovering the button element) I would like to write the following code like the following: <%form_tag search_path, :method => :get, :class => 'search' do %> <%=text_field_tag :search, params[:search] -%> <%=button_tag 'search', :name => nil-%> <%end%> To generate the following HTML (in...
A friend has asked me to help him with a project that's MVC. This is my first experience with MVC. I'm trying to build the MVC components for a form for him. A page has a modal popup which uses a JavaScript to POST or GET and receive HTML backthat it displays inside the popup modal. I need to create an MVC form that has validation to d...
I am trying to email the content of a Div. We have a booking system online and the user selects what options they want, then submit the form. It displays their information on the next page for them to print. I also want a copy of that emailed to them and us. I liked the look of Jonathon Sampson's email div using ajax script. But it does...
I have isolated the problem in the second block of code below (if you don't want all the details): I can create new users from the account model. I can't assign those users roles from the accounts model. I am using fields_for, this method does not work when I attempt to assign the role_ids to the roles model. My db is set up in the follo...
Hi All, I have an MDI Application and have a sort of menu that has been created using a child form so it stays within the parents window. What I would like is when I call LayoutMDI (or some variation) for all but this form to be cascaded, tiled ect but I can't seem to find a way to do it. I have tried overriding the LayoutMDI but that...
(Rails newbie) Hello! I am feeling like I am reusing a lot of my code and I feel there has to be a better way to do this... (I am sure there is...) What I have is a Settings page, where you can create categories and procedures (which belong to a category). index Settings action: def categories_and_procedures @prefs = @current...
*Note to view all code, follow the link I am creating new "accounts". Each new Account have_many :users. Users have_and_belong_to_many roles. I am trying to assign EXISTING roles to new users, in the new account form. Typically an easy process however... The have_and_belong_to_many association between Users and Roles implies that user...
I have an html form consisting of just radio buttons. The 2nd line of the following is in a loop, therefore assume there are multiple radio buttons. The value of each radio button printed out is a PHP variable. <form action='delFile.php' method='post'> <input type='radio' value=" . $row['fileName'] . " name='del' /> <input type='submit'...
How to do the following: I want to have a link [upload image] which pop ups modal form, and when user populates it, the form is processed. (The question is not about uploading, this may be a contact form or anything). My problem is, how to display the form and server side validation messages when validation fails. I have found this tu...
Hey guys I've been using the has_and_belongs_to_many relationship with checkboxes example from the Railscast Episode #17 . I had some problems and now everything is working kind of smoothly except the update button will not work. the edit view looks like so <% form_for :users, :action => 'update' do |f| %> <% for interest in Intere...
I'm using $form->input("time") to render select boxes for time input. They have minute-accuracy, which I don't need. How could I limit the select lists to quarters (XX:00, XX:15, XX:30, XX:45)? ...
I have a modal Windows form created in VB.NET that I am using for a PowerPoint add-in (this issue would also apply to an Excel add-in, I suspect). The form lets the user select shapes on the current slide from a ListView object. With each selection, the corresponding shape should be selected on the current slide. I know that my code i...
I'd like the user to be able to make multiple selections via the admin interface, and store the result as a list of comma-separated values. A select-multiple or a list of checkboxes would be great. However, I don't need the items in this list of values to refer to any models in particular... I just want a text list of items, plain and si...
Hi there, I've just signed up for Adsense and copied their code into my pages. Have tried doing it in an aspx page, and html page etc. When I run the page in Visual Studio (when connected to the net) or on the server (after ftping it), I see nothing. There is a space on the page where it should be, but no adverts, nothing in fact. I am ...
I am just wondering what general best practice is for saving data in Ajax Forms. In Spree ECommerce for example, every time you change a value in a list of objects (say you change the quantity of a certain Item in an Order), it updates the database with an Ajax call. Is it better to have the User manually press "Save" or "Update" when ...