Opened 15 years ago

Closed 15 years ago

Last modified 13 years ago

#235 closed defect (fixed)

Dialog widget parse produces TypeError:Function expected in msie

Reported by: [email protected] 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)

patch.txt (479 bytes) - added by [email protected] 15 years ago.
makes this work in MSIE 6.0

Download all attachments as: .zip

Change History (5)

Changed 15 years ago by [email protected]

Attachment: patch.txt added

makes this work in MSIE 6.0

comment:1 Changed 15 years ago by anonymous

Owner: changed from anonymous to [email protected]

comment:2 Changed 15 years ago by david

Owner: changed from [email protected] to david
Status: newassigned

comment:3 Changed 15 years ago by david

Resolution: fixed
Status: assignedclosed

(In [2377]) fixes #235

comment:4 Changed 13 years ago by (none)

Milestone: 0.2release

Milestone 0.2release deleted

Note: See TracTickets for help on using tickets.