Alright mason wizards, I need some quick design advice, I'm currently creating lots of components, each component is essentially a web form, and each form does a different job, ie, one form might take a name and remove privileges on that name, another might add them etc. Then I have a page where each of these forms/widgets/components is loaded an admin console if you will. I'm trying to come up with a way I can have each form work autonomously from the console while having them all embedded in it. So to expand, I can submit the user-name in the revoke privilege form, and upon submission the title for that widget will read something like $username's privileges revoked. But, I can't think of a way to submit the data, allow the widget to know what was submitted, and to be modified for embedding in the console.
This is currently the process:
- Widget (bleh.mas) submits to the console (index.html).
- Widget (bleh.mas) reads from console's (index.html's) submission variables (the ones that presumably it submitted), to get data for processing.
However, one minute problem, the data fields aren't unique. I call all usernames, 'name_user', and I would like to keep that for consistency. So each widget thinks the name_user field is its and changes the title. So the problem now, is having the widget (bleh.mas) know which widget (out of the pool of them) submitted the data, so I can have the title of that widget (and the underling sql) act accordingly.
The current idea I'm having is a hidden input type, however I hate them, I think it is a sign of bad web design. Another idea which would be pristine if I could figure away to get the model to work would be to have the widgets submit the data to themselves, each widget is a file_component, and to have the widget modify its title (among other things) for the invocation and call the console, where its brethren (other widgets) will be displayed unaltered; but, it would have forgone appearance alterations.
Evan Carroll
www.EvanCarroll.com
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.