• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Nefarious IE / javascript / D2W problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
Email: email@hidden or email@hidden  Twitter: @mwardle
Telephone: 02920745274 (secretary) or facsimile: 02920744166





 _______________________________________________
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

  • Prev by Date: Re: WebObjects officially declared dead by Apple
  • Next by Date: Qualifier to match on content of two to-many relationships
  • Previous by thread: Re: Can't Add WO Frameworks
  • Next by thread: Qualifier to match on content of two to-many relationships
  • Index(es):
    • Date
    • Thread