1. pscarnegie
  2. Bug Report
  3. Wednesday, February 12 2020, 04:13 PM
Form won't display properly when in Chrome - get's displayed only in a 200px high scrolling box. Webtools shows the following errors:

registration:219 Uncaught TypeError: Cannot read property 'body' of null
at iFrameHeight160 (registration:219)
at HTMLIFrameElement.onload (registration:213)
iFrameHeight160 @ registration:219
onload @ registration:213
antiphishing.js:1 Sending APH request...
22registration:219 Uncaught TypeError: Cannot read property 'body' of null
at iFrameHeight160 (registration:219)
at registration:217
pscarnegie Accepted Answer
Your function:

function iFrameHeight160(iframe){var doc="contentDocument"in iframe?iframe.contentDocument:iframe.contentWindow.document;var height=parseInt(doc.body.scrollHeight);if(!document.all){iframe.style.height=parseInt(height)+60+"px"}else if(document.all&&iframe.id){document.all[iframe.id].style.height=parseInt(height)+20+"px"}}

is displaying the following error in Chrome's Web Tools:

registration:219 Uncaught TypeError: Cannot read property 'body' of null
at iFrameHeight160 (registration:219)
at registration:217
iFrameHeight160 @ registration:219
(anonymous) @ registration:217
References
  1. https://www.globaltraumaquality.org/registration
  1. more than a month ago
  2. Bug Report
  3. # 1
admin Accepted Answer
Admin
Hi,
there is something of strange, unfortunately the iframe uses a different domain (uses same domain but without www). So for example if you the link https://xxx.org/registration instead https://www.xxx.org/registration then you will see that there is not errors (the error comes from a browser security rule, the javascript from different domain is blocked)

The module uses a Joomla function called "JURI::base()" so it is correct, anyway you can have this behavior with different reason, for example the cache configuration. Have you enabled cache?
  1. more than a month ago
  2. Bug Report
  3. # 2
pscarnegie Accepted Answer
Content Protected
  1. more than a month ago
  2. Bug Report
  3. # 3
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.