|
Posted by Nikita the Spider on 07/28/06 01:11
In article <1154022746.693017.251360@h48g2000cwc.googlegroups.com>,
bulwark_jrm@hotmail.com wrote:
> I'm trying to duplicate functionality found in a Windows application
> at one of my clients. Essentially, another programmer was able to
> arrange a lot of search options into a single dialog box by positioning
> the descriptive label behind the textbox instead of beside it. When
> the user enters text, the label disappears and the user types in their
> information into the textbox.
>
> I've figured out how to arrange a label behind the textbox (yes, the
> label format has to be altered to differentiate), but events are not
> being captured. I can't type into the textbox, and it doesn't even
> recognize click events. I've narrowed this problem down to the
> "background-color:transparent" since changing 'transparent' to
> 'white' captures the events.
>
> Here's my code.
> ---------------------------
> <label style="position:absolute;left=100;top:100;z-index:1;">Test
> label</label>
> <input type="text"
> style="position:absolute;left:100;top:100;z-index:2;background-color:transpare
> nt;"
> />
> --------------------------
>
> If anybody could enlighten me as to what the problem might be, it would
> be greatly appreciated.
Hi John,
I don't mean to be snide or grouchy, but it'd help if you (a) post a URL
to an example that demonstrates the problem and (b) tell us what browser
you're using. I don't have time to code up a form around your snippet of
HTML above, sorry.
--
Philip
http://NikitaTheSpider.com/
Whole-site HTML validation, link checking and more
Navigation:
[Reply to this message]
|