Software Archive
Read-only legacy content
17060 Discusiones

InAppBrowser Back Button Not Running in Ios

Marcos_N_
Principiante
4.764 Vistas

When i tip the URL direct in InAppBrowser script code, the "done Button"and toolbar appear inside InAppBrowser view.

But if script receives the URL by an expression (variable) the InApp don't shows the buttons and bars...

Someone had this kind of problem before?

0 kudos
4 Respuestas
Marcos_N_
Principiante
4.764 Vistas

Something like this

Nicolas_O_Intel
Empleados
4.764 Vistas

Hi Marcos N.

I think the problem is in the code. From the image you posted, I see that you have an additional "+" sign before "_blank".

cordova.InAppBrowser.open(valor, + '_blank', 'location=yes');

can you try removing that additional "+" sign and try again? 

Marcos_N_
Principiante
4.764 Vistas

TO begin.... Really thanks for answer so quickly. And then... i`m so shame.. its run!! It was so simple and i don't saw... THANKY you NICO.

 

Nicolas_O_Intel
Empleados
4.764 Vistas

No Problem Marcos N.! 

This kind of errors are really common on Javascript code. There are several tools (jshint, eslint) that helps you with this Checkings. The XDK support xlint and jshint in the Editor.

You can see here how to configure it https://software.intel.com/en-us/xdk/docs/using-the-editor-in-the-develop-tab (Section "Configure JSHint") 

Responder