<div>The FormBuilder/Catalyst -generated HTML works just fine in Chrome and in Firefox, so debugging there isn't useful. It also works fine in older Internet Explorers. :( I was hoping someone has already run into this FormBuilder-snag-with-IE8 and found an elegant fix...<br>
<br></div><div>And the "<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">return validate_incident(this)" code is generated via FormBuilder, that's why I was asking the list, hoping someone else here has run into this and found a workaround.</span></div>
<meta charset="utf-8"><div><br></div><div>We do have other DHTML javascript on the page (e.g. click to dynamically add another upload-field) so Javascript and JQuery are working. IE8 has apparently been tweaked enough that it doesn't recognize the object in that context...?</div>
<div><br></div><div>Any ideas?</div><div><br></div><div><br><div class="gmail_quote">On Wed, Oct 6, 2010 at 1:13 AM, Toby Corkindale <span dir="ltr"><<a href="mailto:toby.corkindale@strategicdata.com.au">toby.corkindale@strategicdata.com.au</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On 06/10/10 14:00, will trillich wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Short version: Catalyst/Formbuilder uploads work fine in firefox and<br>
chrome, works fine in IE 6... but not IE 8, where it throws an "object<br>
expected" error.<br>
</blockquote>
<br></div>
Ugh, I hit this a little while ago, but have forgotten the details already.<br>
I think you are looking in the right direction with the "this" though; try validating it in your function to ensure it contains what you're expecting perhaps?<br>
<br>
Also, can you verify that jquery is actually getting loaded OK?<br>
<br>
ie. In your document, put something like:<br>
$(function() { alert("jquery has loaded!"); });<br>
<br>
and check to see that you get an alert box when you load the page. If not, fire up Chrome's developer tools, or Firefox's Firebug, and see they mention any warnings or errors.<br>
<br>
-Toby<br>
<br>
_______________________________________________<br>
List: <a href="mailto:Catalyst@lists.scsys.co.uk" target="_blank">Catalyst@lists.scsys.co.uk</a><br>
Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>
Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>
Dev site: <a href="http://dev.catalyst.perl.org/" target="_blank">http://dev.catalyst.perl.org/</a><br>
</blockquote></div><br></div>