Software Archive
Read-only legacy content

InAppBrowser Back Button Not Running in Ios

Marcos_N_
Beginner
847 Views

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 Replies
Marcos_N_
Beginner
847 Views

Something like this

0 Kudos
Nicolas_O_Intel
Employee
847 Views

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? 

0 Kudos
Marcos_N_
Beginner
847 Views

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.

 

0 Kudos
Nicolas_O_Intel
Employee
847 Views

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") 

0 Kudos
Reply