Opened 14 years ago

Closed 14 years ago

Last modified 12 years ago

#235 closed defect (fixed)

Dialog widget parse produces TypeError:Function expected in msie

Reported by: jkuhnert@… Owned by: david
Priority: low Milestone:
Component: Widgets Version: 0.2
Keywords: Cc: jkuhnert@…
Blocked By: Blocking:


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="user@TextField?" value="ognl:username" displayName="Username"/>


<div class="fm-opt"> <span jwcid="@FieldLabel?" field="component:password"/> <input jwcid="password@TextField?" value="ognl:userPassword"

hidden="true" displayName="Password" /> </div>

<div id="fm-hsubmit" class="dialog" >

<input jwcid="cancel@Submit"

onClick="javascript:dojo.widget.byId('DialogContent').hide();return false;" value="Cancel" />

</div> <div id="fm-hsubmit" class="dialog" >

<input jwcid="formSubmit@Submit"

value="OK" />

</div> </fieldset> </form>


Attachments (1)

patch.txt (479 bytes) - added by jkuhnert@… 14 years ago.
makes this work in MSIE 6.0

Download all attachments as: .zip

Change History (5)

Changed 14 years ago by jkuhnert@…

Attachment: patch.txt added

makes this work in MSIE 6.0

comment:1 Changed 14 years ago by anonymous

Owner: changed from anonymous to schontz@…

comment:2 Changed 14 years ago by david

Owner: changed from schontz@… to david
Status: newassigned

comment:3 Changed 14 years ago by david

Resolution: fixed
Status: assignedclosed

(In [2377]) fixes #235

comment:4 Changed 12 years ago by (none)

Milestone: 0.2release

Milestone 0.2release deleted

Note: See TracTickets for help on using tickets.