Getting a Javascript Array to a Xojo Array.

Hi there.
Christian have a very wonderful plugin HTMLViewer.EvaluateJavaScript().
That is a work of art, cuz in comparison of Native ExceuteJavaScript it Returns a value and get back variables of Javascript.

I have a JS function, that get all Images on a SourceCode with name “BtnDescarga” and with Attribute “onclick”, then It replaces the text “Return AccionCfdi(’” at start and replace the text “Recuperacion” at the end of text.
Then All this items are collected in an Array:

[b]
Dim EnlacesXojo() As String
dim links as string = “GetLinks();” _
+“function GetLinks()” _
+"{ " _
+" var Enlace; " _
+" var images = document.getElementsByName(‘BtnDescarga’); " _
+" var srcList = [];" _
+" for(var i = 0; i < images.length; i++) {" _
+" Enlace = images[i].getAttribute(‘onclick’);" _
+" Enlace = Enlace.replace("“return AccionCfdi(’”",‘https://portalcfdi.facturaelectronica.sat.gob.mx/’);" _
+" srcList.push(Enlace.replace(""’,‘Recuperacion’);"",’’));" _
+" };" _
+" return srcList" _
+"}"

'MsgBox Visor.EvaluateJavaScriptMBS(links)
EnlacesXojo() = Visor.EvaluateJavaScriptMBS(links)[/b]

If I join the values of the array. I get it back successfully without problem.

But what about If I want to return the entire Javascript array “srcList” to a Xojo Array?
I done this but it doesn’t work

What Am I doing wrong, Is this possible?
Thanks

You’ll have to convert the JavaScript array to a Xojo one by one of many possible methods.

You should go shopping for a consultant.