Connecting Tech Pros Worldwide Help | Site Map

Any problem with onblur=""

  #1  
Old August 17th, 2006, 07:45 PM
eric.goforth@gmail.com
Guest
 
Posts: n/a
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

  #2  
Old August 17th, 2006, 08:05 PM
Randy Webb
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Values of NaN in Floor Are Ratio (FAR) Calculations Catalyst159 answers 9 August 6th, 2009 05:00 PM
Problem with onBlur="window.close()" and MS IE 6 Peter Pagé answers 4 July 23rd, 2005 07:55 PM
What's wrong with this "new Function()" statement? Christoph answers 1 July 20th, 2005 12:47 PM
"<td><input name='".$i-2."' aa answers 3 July 17th, 2005 11:39 AM