My image onload is not working for URL a=er , however the it works fine on the same form in view mode i.e a=dr, please help.

  • 0
  • 1
  • Question
  • Updated 3 years ago
  • Answered
"<img qbu=\"module\" src=\"/i/clear2x2.gif\" " &
"onload=\"javascript:if(typeof QBU=='undefined'){QBU={};$.getScript('" &
URLRoot() &
"db/" &
Dbid() &
"?a=dbpage&pagename=button.js&rand='+Math.random())}\">"



also if someone can explain qbu=module and QBU={}, is this required? and how does it help. thank you in advance for your help
Photo of Tribs

Tribs

  • 20 Points

Posted 4 years ago

  • 0
  • 1
Photo of Tribs

Tribs

  • 20 Points
never mind.

I found the issue. in edit mode some of the "tdf_#", fields are not available and probably was causing an error. after removing the tdf_# fields from the code it worked fine.
Photo of sandeep

sandeep

  • 0 Points
Could you share your javascript code
Photo of sandeep

sandeep

  • 0 Points
Could you share your javascript code
Photo of Tribs

Tribs

  • 20 Points
Hi Sandeep, my issue is resolved. are you having issues and need the code for reference?
Photo of Geetha

Geetha

  • 0 Points
..
Photo of sandeep

sandeep

  • 0 Points
I would appreciate if you can share the share as I still have the same issue