Nefarious IE / javascript / D2W problem
Nefarious IE / javascript / D2W problem
- Subject: Nefarious IE / javascript / D2W problem
- From: Mark Wardle <email@hidden>
- Date: Mon, 09 May 2016 07:37:00 +0100
Dear all,
There are probably not many who might encounter this as a problem as the combination of D2W and IE and _javascript_ is less likely. However, I can see it might appear if you use ERModernLook’s ERMODTabInspectPage as it looks as if it would be subject to the same problem.
Essentially, I was struggling with Internet Explorer ignoring AjaxObserveField and AjaxUpdateContainers. I finally tracked it down to a syntax error in prototype.js
function evalScripts() { return this.extractScripts().map(function(script) { return eval(script); }); }
It turns out that some of the generated _javascript_ on the page was throwing a syntax error on IE - namely some of my D2W page templates that use the following to give focus to the first textfield of the D2W page:
Script: WOJavaScript { scriptString = tabScriptString; hideInComment = true; }
The problem is fixed simply by changing hideInComment to false. No more Internet Explorer issues.
Unless you are using D2W, then you won’t see this issue but I suggest that ERMODTabInspectPage is modified as above to prevent others having the same issue.
Best wishes,
Mark
-- Dr. Mark Wardle Consultant Neurologist, University Hospital Wales, Cardiff, UK
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden