[Webtest] Question on support of javascript events
MVS, Nanda Kishore
webtest@lists.canoo.com
Wed, 5 Oct 2005 20:35:08 +0530
This is a multi-part message in MIME format.
------_=_NextPart_001_01C5C9BD.F35A354D
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Hi All,
=20
I am having a problem with select elements in html that fire javascript
functions on onchange events. When I use <setSelectField> element, Canoo
never seems to fire the onChange event or run the associated javascript
function. For example, on change of one select box, the contents of
another select box are filtered in my page. But the <setSelectField>
element for the second select box doesn't work since the onChange event
for the first select box hasn't fired to filter contents of second
select box. I'd like to know if Canoo does not support such events or if
my javascript is particularly bad.
Arising from this, can I not call a javascript function declared in the
page through the <scriptStep> element? For example, <scriptStep>
doSomeThing();</scriptStep> should work if doSomeThing() is a function
defined in my page. But I get a message saying doSomeThing() is not
defined. I have tried to explicitly enable javascript through
<enableJavaScript> element also but to no avail. I would appreciate it
greatly if someone can throw a little more light on the working of
<scriptStep> element.
=20
Best Regards,
Kishore.=20
------_=_NextPart_001_01C5C9BD.F35A354D
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 11">
<meta name=3DOriginator content=3D"Microsoft Word 11">
<link rel=3DFile-List href=3D"cid:filelist.xml@01C5C9EC.46D2EBA0">
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:DoNotRelyOnCSS/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:DisplayBackgroundShape/>
<w:SpellingState>Clean</w:SpellingState>
<w:GrammarState>Clean</w:GrammarState>
<w:DocumentKind>DocumentEmail</w:DocumentKind>
<w:EnvelopeVis/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState=3D"false" LatentStyleCount=3D"156">
</w:LatentStyles>
</xml><![endif]-->
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;
text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;
text-underline:single;}
span.EmailStyle17
{mso-style-type:personal-compose;
mso-style-noshow:yes;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;
font-family:Arial;
mso-ascii-font-family:Arial;
mso-hansi-font-family:Arial;
mso-bidi-font-family:Arial;
color:windowtext;}
span.SpellE
{mso-style-name:"";
mso-spl-e:yes;}
span.GramE
{mso-style-name:"";
mso-gram-e:yes;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */=20
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";
mso-ansi-language:#0400;
mso-fareast-language:#0400;
mso-bidi-language:#0400;}
</style>
<![endif]-->
</head>
<body lang=3DEN-US link=3Dblue vlink=3Dpurple =
style=3D'tab-interval:.5in'>
<div class=3DSection1>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Hi All,<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I am having a problem with select elements in html =
that fire
<span class=3DSpellE>javascript</span> functions on <span =
class=3DSpellE>onchange</span>
events. When I use <<span class=3DSpellE>setSelectField</span>> =
element, <span
class=3DSpellE>Canoo</span> never seems to fire the <span =
class=3DSpellE>onChange</span>
event or run the associated <span class=3DSpellE>javascript</span> =
function. For
example, on change of one select box, the contents of another select box =
are
filtered in my page. But the <<span =
class=3DSpellE>setSelectField</span>>
element for the second select box doesn’t work since the <span
class=3DSpellE>onChange</span> event for the first select box =
hasn’t fired
to filter contents of second select box. I’d like to know if <span
class=3DSpellE>Canoo</span> does not support such events or if my <span
class=3DSpellE>javascript</span> is particularly =
bad.<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Arising from this, can I not call a <span =
class=3DSpellE>javascript</span>
function declared in the page through the <<span =
class=3DSpellE>scriptStep</span>>
element? For example, <i style=3D'mso-bidi-font-style:normal'><span
style=3D'font-style:italic;mso-bidi-font-style:normal'><<span =
class=3DSpellE>scriptStep</span>>
<span class=3DSpellE><span class=3DGramE>doSomeThing</span></span><span
class=3DGramE>(</span>);</<span =
class=3DSpellE>scriptStep</span>></span></i>
should work if <span class=3DSpellE>doSomeThing</span>() is a function =
defined in
my page. But I get a message saying <span class=3DSpellE><span =
class=3DGramE>doSomeThing</span></span><span
class=3DGramE>(</span>) is not defined. I have tried to explicitly =
enable <span
class=3DSpellE>javascript</span> through <<span =
class=3DSpellE>enableJavaScript</span>>
element also but to no avail. I would appreciate it greatly if someone =
can throw
a little more light on the working of <<span =
class=3DSpellE>scriptStep</span>>
element.<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Best Regards,<o:p></o:p></span></font></p>
<p class=3DMsoNormal><span class=3DGramE><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>Kishore.</span></font></span=
><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'> =
<o:p></o:p></span></font></p>
</div>
</body>
</html>
------_=_NextPart_001_01C5C9BD.F35A354D--