#235 closed defect (fixed)
Dialog widget parse produces TypeError:Function expected in msie
Reported by: | Owned by: | david | |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | Widgets | Version: | 0.2 |
Keywords: | Cc: | [email protected]… | |
Blocked By: | Blocking: |
Description
I think some of the recent changes to Dialog are producing errors under certain conditions in MSIE. The error I'm getting is "[TypeError: Function expected]", but since the dojo.widget.Parse class is swallowing the error (ie not throwing it, which prevents the use of msie script debugger help) it's even harder to debug. I did actually re-build a dojo package last night and made it throw the error but it didn't really help me overly much. It was complaining about dojo.widget.byId not having any properties.
This could be completely unrelated to the Dialog, but for the sake of a sanity check I thought I'd double check. Perhaps the postCreate method changed enough that it's parsing some of my dialog content in a weird way? This is what my dialog html block looks like:
Note: Ignore the jwcid= stuff, that is replaced by valid html content when my web-framework parses the template. <div dojoType="dialog" bgColor="white" bgOpacity="0.5">
<form jwcid="sampleForm" class="dialog" > <fieldset> <legend>Login</legend> <p>Enter your username/password to login.</p>
<div class="fm-opt"> <span jwcid="@FieldLabel?" field="component:user"/> <input jwcid="[email protected]TextField?" value="ognl:username" displayName="Username"/>
</div>
<div class="fm-opt"> <span jwcid="@FieldLabel?" field="component:password"/> <input jwcid="[email protected]TextField?" value="ognl:userPassword"
hidden="true" displayName="Password" /> </div>
<div id="fm-hsubmit" class="dialog" >
<input jwcid="[email protected]"
onClick="javascript:dojo.widget.byId('DialogContent').hide();return false;" value="Cancel" />
</div> <div id="fm-hsubmit" class="dialog" >
<input jwcid="[email protected]"
value="OK" />
</div> </fieldset> </form>
</div>
Attachments (1)
Change History (5)
Changed 15 years ago by
comment:1 Changed 15 years ago by
Owner: | changed from anonymous to [email protected]… |
---|
comment:2 Changed 15 years ago by
Owner: | changed from [email protected]… to david |
---|---|
Status: | new → assigned |
comment:3 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
makes this work in MSIE 6.0