You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by GitBox <gi...@apache.org> on 2020/01/24 22:48:58 UTC

[GitHub] [incubator-weex-cli] donwilly2010 opened a new issue #613: Load External JavaScript into Weex on Android

donwilly2010 opened a new issue #613: Load External JavaScript into Weex on Android
URL: https://github.com/apache/incubator-weex-cli/issues/613
 
 
   Makes sure these boxes are checked befor submitting your issue - thank you!
   
   - [Yes] If you encounter any problems using the tool, please check if there has a new version to update(Run `weex update [pluginname]@latest`).
   - [Yes] Check the [FAQ](https://github.com/weexteam/weex-toolkit#faq), make sure there have not the same issue.
   
   Weex is a fantastic Framework for Mobile development. But I need help while trying to load an external javascript page. this page will also need some parameters from props/data.
   This is required for payment integration such as loading a paypal card payment page into weex.
   
   I tried using the following but it didnt work on Weex on Android:
   
   var document=weex.document;
   
   method: {
   loadPaymentPanel(){
                       var body = document.createElement('div', {
                           classStyle: { alignItems: 'center' }
                       })
   
                       var  script = document.createElement('script', {
                           attr: { src: 'url of payment gateway' },
                           classStyle: { alignItems: 'center'}
                       })
   
     body.appendChild(script)
                       document.documentElement.appendChild(body)
   var window = document.getElementById(script).contentWindow
   
   window.
   }
   
   }
   
   //I got error the createElement is not a function.
   
   Please how else can I achieve what I want
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-weex-cli] cnryb closed issue #613: Load External JavaScript into Weex on Android

Posted by GitBox <gi...@apache.org>.
cnryb closed issue #613: Load External JavaScript into Weex on Android
URL: https://github.com/apache/incubator-weex-cli/issues/613
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-weex-cli] cnryb commented on issue #613: Load External JavaScript into Weex on Android

Posted by GitBox <gi...@apache.org>.
cnryb commented on issue #613: Load External JavaScript into Weex on Android
URL: https://github.com/apache/incubator-weex-cli/issues/613#issuecomment-578742766
 
 
   Duplicate of https://github.com/apache/incubator-weex/issues/3125

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services