logo       
Google Custom Search
    AddThis Social Bookmark Button

RE: Use of anchor tag instead of input for triggers ?: msg#00066

Subject: RE: Use of anchor tag instead of input for triggers ?
The change was fairly minor : I overrode the trigger & submit templates
in html-form-controls.xsl so that instead of 

    <!-- build trigger -->
                ...    
        <xsl:element name="input">
                ...

It produces 

    <!-- build trigger -->
                ...    
                <xsl:element name="a">
                        <xsl:attribute
name="href">javascript:document.chibaform.submit();</xsl:attribute>
                        <xsl:attribute
name="onclick">document.getElementById("dummy").name = "<xsl:value-of
select="concat($trigger-prefix,$id)"/>";</xsl:attribute>
                        ...

I much prefer having input tags, however I couldn't get around the *%&$#
IE styling issues any other way. (I did experiment with
http://dean.edwards.name/IE7/ to fix the CSS bugs in IE, but sadly it
wasn't anywhere near responsive enough).

Adrian

> -----Original Message-----
> From: Joern Turner [mailto:joern.turner-S0/GAf8tV78@xxxxxxxxxxxxxxxx] 
> Sent: Wednesday, 23 February 2005 11:46 a.m.
> To: Adrian Baker
> Cc: chiba-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
> Subject: Re: [Chiba-developer] Use of anchor tag instead of 
> input for triggers ?
> 
> 
> Adrian Baker wrote:
> > Because of IE's problems with pseudoclasses on non-anchor elements 
> > (grrrr), I'm considering modifying the html-form-controls.xsl 
> > stylseheet to produce anchor tags that use a teeny bit of script to 
> > submit, instead of the input tags that are currently used. 
> (I want to 
> > be able to have a rollover effect which switches image when 
> the mouse 
> > hovers over the button).
> > 
> > Has anyone out there done this already ?
> obviously not ;)
> 
> but i would be interested in your findings. we plan to add 
> some script 
> to the xslts anyway in case the client is script-enabled.
> 
> Joern


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>