Connecting Tech Pros Worldwide Forums | Help | Site Map

Any problem with onblur=""

eric.goforth@gmail.com
Guest
 
Posts: n/a
#1: Aug 17 '06
Hello,

I'm rendering a page with xml/xsl, for one control, I've set up a an
xsl template something like:

<xsl:template name="MyText">
<xsl:param name="sName"></xsl:param>
<xsl:param name="sAction"></xsl:param>
<INPUT TYPE="text" SIZE="7" MAXLENGTH="15" NAME="{$sName}" VALUE="Test"
onblur="{$sAction}"></INPUT>
</xsl:template>

I'm calling the template something like:

<xsl:call-template name="MyText">
<xsl:with-param name="sName">MyName</xsl:with-param>
<xsl:with-param name="sAction">DoSomething</xsl:with-param>
</xsl:call-template>

Since some of my textboxes need an action in the onblur event, I've put
it in there as a parameter. However, some of my textboxes don't do
anything on the onblur, which means they look like:


<xsl:call-template name="MyText">
<xsl:with-param name="sName">MyName</xsl:with-param>
<xsl:with-param name="sAction"></xsl:with-param>
</xsl:call-template>

and would be render like:

<INPUT TYPE="text" SIZE="7" MAXLENGTH="15" NAME="MyName" VALUE="Test"
onblur="">

Will having this empty onblur cause any problems?

Thanks,
Eric


Randy Webb
Guest
 
Posts: n/a
#2: Aug 17 '06

re: Any problem with onblur=""


eric.goforth@gmail.com said the following on 8/17/2006 2:51 PM:
Quote:
Hello,
<snip>
Quote:
<INPUT TYPE="text" SIZE="7" MAXLENGTH="15" NAME="MyName" VALUE="Test"
onblur="">
>
Will having this empty onblur cause any problems?
None at all.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Closed Thread