Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Enterprise. Mobile platform > Using HTML in 1C

Forum

Search UsersRules
Using HTML in 1C
#1
Active user
Points:: 0
Joined:: Aug 28, 2015

Hello everyone!
Need some help with my mobile application.
On the managed form there is a html field. On event OnOpen I load my html page with javascript functions.
AttachIdleHandler calls procedure  wich  connects to the webservice and sends received parameter to javascript function. It works fine on my computer but when I launch the application on a smartphone some errors come out. I send the parameters to javascript function using the following code

Code
Items.HTMLPage.Document.parentWindow.eval("Increase ('" + Message+"')");

Is there any other way to send the parameter to javascript function from 1C?

Profile
#2
Guest
Points::
Joined::

Hello, Samir Muqimov!

Try to do following:
In JavaScript:

Code
function setTextsFunction(...){
    ...
}
document.SetTexts = setTextsFunction;

In 1C Script:
Code
Items.Editor.Document.SetTexts(...);

Profile
#3
Active user
Points:: 0
Joined:: Aug 28, 2015

Hello Timofey! Thanks for your quick reply.But the problem is still actual.
The same error appears on a smartphone:

Object field not found (Document)

I guess it appears because html document is a comobject and as far as I know mobile platform has some problems with these kind of objects. Any ideas about this error?

Profile
#4
Guest
Points::
Joined::

Hello, Samir Muqimov.

As for now, this feature is not supported. I have added your case to the feature request.

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.