Sponsored Content
Top Forums Shell Programming and Scripting Perl - radio button processing Post 302508562 by devtakh on Monday 28th of March 2011 12:37:58 PM
Old 03-28-2011
Perl - radio button processing

Hi,
I am hoping to get some help on perl. I am trying to process a HTML radio button selected value in perl. Basically What I am trying to do is

1. I have some radio buttons which indicated different colors.
2. I have a list box where I want to populate depending on the selected radio button above by reading a directory in unix box.

Please suggest the best possible solution to this.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Perl and refresh button, save twice?

Hi guys, I am writing a simple script save_me.cgi that can save the data in form.html into a txt (data.txt)file. But when user click "refresh" button one the browser on page save_me.cgi, the data will be save again in the data.txt. could someone help me on this issue? a studpid way... (3 Replies)
Discussion started by: gusla
3 Replies

2. UNIX for Dummies Questions & Answers

Script for using the Back button and the Close button

Here's a question I have for anyone that might be able to help me: I can write a html script that will allow the user to return to the previous page using the back button, and I can write a script that will allow the user to return to the previous page using the close button, but...is there a... (1 Reply)
Discussion started by: mdgibson
1 Replies

3. Shell Programming and Scripting

File processing on perl

Hey everyone ... I wanted to process the contents of a file, as in modify its contents. whats the best way to do it on perl? In more detail I hav to go through the contents of the file, match patterns n then modify the contents of the same file depending on the matching results. Any help is... (2 Replies)
Discussion started by: garric
2 Replies

4. UNIX for Dummies Questions & Answers

Changing middle mouse button for pasting to right mouse button in cygwin rxvt

Hi, I'm using rxvt in Cygwin and I'm wondering how to change my mouse bindings from the middle button for pasting to the right button. The main reason why I want to do this is because my laptop doesn't have a middle mouse button. Thanks for any help! (2 Replies)
Discussion started by: sayeo
2 Replies

5. Shell Programming and Scripting

Perl file processing

I have an input array like : "SVR1" GRP="EVT_BOX06B" SRID=100 MIN=2 "SVR1" GRP="EVT_BOX06B" SRID=200 MIN=1 "SVR2" GRP="ADM_BOX06B" SRID=100 MIN=1 "SVR1" GRP="EVT_BOX88B" SRID=100 MIN=2 "SVR1" GRP="EVT_BOX88B" SRID=200 MIN=1... (4 Replies)
Discussion started by: deo_kaustubh
4 Replies

6. Shell Programming and Scripting

include virtual perl-script - submit button opens a new page..

hello 2 all I can't understand how to insert a perl-script into .shml in a right way. <form> should be working but it's not doing that: <!--#include virtual="/cgi-bin/script.cgi?filename"--> filename is a name of the file which script is using the script is used for a score show (the number... (0 Replies)
Discussion started by: tip78
0 Replies

7. Web Development

include virtual perl-script - submit button opens a new page..

hello 2 all I can't understand how to insert a perl-script into .shml in a right way. <form> should be working but it's not doing that: <!--#include virtual="/cgi-bin/script.cgi?filename"--> filename is a name of the file which script is using the script is used for a score show (the number... (3 Replies)
Discussion started by: tip78
3 Replies

8. Shell Programming and Scripting

PARALLEL PROCESSING IN PERL

HI All, I have scenerio where I need to call sub modules through for loop for (i=0; i<30 ;i++) { .. .. .. subroutine 1; subroutine 2; } I want this to be run in parallel process1 { ... ... subroutine 1; subroutine 2; (0 Replies)
Discussion started by: gvk25
0 Replies

9. Shell Programming and Scripting

Create download button using perl CGI

Hi, I want to insert in a page a .html button that - once it is clicked - opens a save file dialog box by using perl CGI . I know that to create a link to do that I've done : print $cgi->p ( { -class => 'linc' },);I want to do something similar for a download button (0 Replies)
Discussion started by: black_fender
0 Replies

10. Shell Programming and Scripting

Perl - start search by using search button or by pressing the enter key

#Build label and text box $main->Label( -text => "Input string below:" )->pack(); $main->Entry( -textvariable => \$text456 )->pack(); $main->Button( -text => "Search", -command => sub { errchk ($text456) ... (4 Replies)
Discussion started by: popeye
4 Replies
QButtonGroup(3qt)														 QButtonGroup(3qt)

NAME
QButtonGroup - Organizes QButton widgets in a group SYNOPSIS
#include <qbuttongroup.h> Inherits QGroupBox. Inherited by QHButtonGroup and QVButtonGroup. Public Members QButtonGroup ( QWidget * parent = 0, const char * name = 0 ) QButtonGroup ( const QString & title, QWidget * parent = 0, const char * name = 0 ) QButtonGroup ( int strips, Orientation orientation, QWidget * parent = 0, const char * name = 0 ) QButtonGroup ( int strips, Orientation orientation, const QString & title, QWidget * parent = 0, const char * name = 0 ) bool isExclusive () const bool isRadioButtonExclusive () const virtual void setExclusive ( bool ) virtual void setRadioButtonExclusive ( bool ) int insert ( QButton * button, int id = -1 ) void remove ( QButton * button ) QButton * find ( int id ) const int id ( QButton * button ) const int count () const virtual void setButton ( int id ) virtual void moveFocus ( int key ) QButton * selected () const int selectedId () const Signals void pressed ( int id ) void released ( int id ) void clicked ( int id ) Properties bool exclusive - whether the button group is exclusive bool radioButtonExclusive - whether the radio buttons in the group are exclusive int selectedId - the selected toggle button DESCRIPTION
The QButtonGroup widget organizes QButton widgets in a group. A button group widget makes it easier to deal with groups of buttons. Each button in a button group has a unique identifier. The button group emits a clicked() signal with this identifier when a button in the group is clicked. This makes a button group particularly useful when you have several similar buttons and want to connect all their clicked() signals to a single slot. An exclusive button group switches off all toggle buttons except the one that was clicked. A button group is, by default, non-exclusive. Note that all radio buttons that are inserted into a button group are mutually exclusive even if the button group is non-exclusive. (See setRadioButtonExclusive().) There are two ways of using a button group: The button group is the parent widget of a number of buttons, i.e. the button group is the parent argument in the button constructor. The buttons are assigned identifiers 0, 1, 2, etc., in the order they are created. A QButtonGroup can display a frame and a title because it inherits QGroupBox. The button group is an invisible widget and the contained buttons have some other parent widget. In this usage, each button must be manually inserted, using insert(), into the button group and given an identifier. A button can be removed from the group with remove(). A pointer to a button with a given id can be obtained using find(). The id of a button is available using id(). A button can be set on with setButton(). The number of buttons in the group is returned by count(). [Image Omitted] [Image Omitted] See also QPushButton, QCheckBox, QRadioButton, Widget Appearance and Style, Layout Management, and Organizers. MEMBER FUNCTION DOCUMENTATION
QButtonGroup::QButtonGroup ( QWidget * parent = 0, const char * name = 0 ) Constructs a button group with no title. The parent and name arguments are passed to the QWidget constructor. QButtonGroup::QButtonGroup ( const QString & title, QWidget * parent = 0, const char * name = 0 ) Constructs a button group with the title title. The parent and name arguments are passed to the QWidget constructor. QButtonGroup::QButtonGroup ( int strips, Orientation orientation, QWidget * parent = 0, const char * name = 0 ) Constructs a button group with no title. Child widgets will be arranged in strips rows or columns (depending on orientation). The parent and name arguments are passed to the QWidget constructor. QButtonGroup::QButtonGroup ( int strips, Orientation orientation, const QString & title, QWidget * parent = 0, const char * name = 0 ) Constructs a button group with title title. Child widgets will be arranged in strips rows or columns (depending on orientation). The parent and name arguments are passed to the QWidget constructor. void QButtonGroup::clicked ( int id ) [signal] This signal is emitted when a button in the group is clicked. The id argument is the button's identifier. See also insert(). Examples: int QButtonGroup::count () const Returns the number of buttons in the group. QButton * QButtonGroup::find ( int id ) const Returns the button with the specified identifier id, or 0 if the button was not found. int QButtonGroup::id ( QButton * button ) const Returns the id of button, or -1 if button is not a member of this group. See also selectedId. int QButtonGroup::insert ( QButton * button, int id = -1 ) Inserts the button with the identifier id into the button group. Returns the button identifier. Buttons are normally inserted into a button group automatically by passing the button group as the parent when the button is constructed. So it is not necessary to manually insert buttons that have this button group as their parent widget. An exception is when you want custom identifiers instead of the default 0, 1, 2, etc., or if you want the buttons to have some other parent. The button is assigned the identifier id or an automatically generated identifier. It works as follows: If id >= 0, this identifier is assigned. If id == -1 (default), the identifier is equal to the number of buttons in the group. If id is any other negative integer, for instance -2, a unique identifier (negative integer <= -2) is generated. No button has an id of -1. See also find(), remove(), and exclusive. Examples: bool QButtonGroup::isExclusive () const Returns TRUE if the button group is exclusive; otherwise returns FALSE. See the "exclusive" property for details. bool QButtonGroup::isRadioButtonExclusive () const Returns TRUE if the radio buttons in the group are exclusive; otherwise returns FALSE. See the "radioButtonExclusive" property for details. void QButtonGroup::moveFocus ( int key ) [virtual] Moves the keyboard focus according to key, and if appropriate checks the new focus item. This function does nothing unless the keyboard focus points to one of the button group members and key is one of Key_Up, Key_Down, Key_Left and Key_Right. void QButtonGroup::pressed ( int id ) [signal] This signal is emitted when a button in the group is pressed. The id argument is the button's identifier. See also insert(). void QButtonGroup::released ( int id ) [signal] This signal is emitted when a button in the group is released. The id argument is the button's identifier. See also insert(). void QButtonGroup::remove ( QButton * button ) Removes the button from the button group. See also insert(). QButton * QButtonGroup::selected () const Returns the selected toggle button if exactly one is selected; otherwise returns 0. See also selectedId. int QButtonGroup::selectedId () const Returns the selected toggle button. See the "selectedId" property for details. void QButtonGroup::setButton ( int id ) [virtual] Sets the selected toggle button to id. See the "selectedId" property for details. void QButtonGroup::setExclusive ( bool ) [virtual] Sets whether the button group is exclusive. See the "exclusive" property for details. void QButtonGroup::setRadioButtonExclusive ( bool ) [virtual] Sets whether the radio buttons in the group are exclusive. See the "radioButtonExclusive" property for details. Property Documentation bool exclusive This property holds whether the button group is exclusive. If this property is TRUE, then the buttons in the group are toggled, and to untoggle a button you must click on another button in the group. The default value is FALSE. Set this property's value with setExclusive() and get this property's value with isExclusive(). bool radioButtonExclusive This property holds whether the radio buttons in the group are exclusive. If this property is TRUE (the default), the radiobuttons in the group are treated exclusively. Set this property's value with setRadioButtonExclusive() and get this property's value with isRadioButtonExclusive(). int selectedId This property holds the selected toggle button. The toggle button is specified as an ID. If no toggle button is selected, this property holds -1. If setButton() is called on an exclusive group, the button with the given id will be set to on and all the others will be set to off. See also selected(). Set this property's value with setButton() and get this property's value with selectedId(). SEE ALSO
http://doc.trolltech.com/qbuttongroup.html http://www.trolltech.com/faq/tech.html COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the license file included in the distribution for a complete license statement. AUTHOR
Generated automatically from the source code. BUGS
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qbuttongroup.3qt) and the Qt version (3.3.8). Trolltech AS 2 February 2007 QButtonGroup(3qt)
All times are GMT -4. The time now is 04:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy