html href not working

  • 1
  • Problem
  • Updated 6 years ago
  • In Progress
hello
i am using the phonegap command-line interface my problem is that html href not working on latest Android versions device like galaxy note 3 , and this is sample from my app code:



plz help me
Photo of Test-for Work

Test-for Work

  • 16 Posts
  • 0 Reply Likes

Posted 6 years ago

  • 1
Photo of Zahir

Zahir

  • 3500 Posts
  • 40 Reply Likes
Hi there,

Could you provide us your Build App ID?
We can try to reproduce your issue and advise further.

Thanks
Photo of Eddy Verbruggen

Eddy Verbruggen, Champion

  • 375 Posts
  • 86 Reply Likes
Add some <code><code> tags around your code plz. It looks like you added http:// to link.. if it's a local file don't include the protocol.
Photo of Test-for Work

Test-for Work

  • 16 Posts
  • 0 Reply Likes
hello

thanks for help , i don't use phongape build , i build apps through command line
like : phonegap build android

so i think there isn't any Build App ID

my problem is that html href not working on latest Android versions device like galaxy note 3 or latest Android versions like v4.4.2 (KitKat), but its works on some Android versions device

here is screen shoot of my login.html page (Sign Up ) ,Forget your password, and skip herf doesn't work :

Photo of Test-for Work

Test-for Work

  • 16 Posts
  • 0 Reply Likes
hello Eddy

as you can see in the screen shoot it's a local file, could you give example to my case

thx
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
What happens if you close your input-tag just above the hyperlinks with "/>" ?
Photo of Test-for Work

Test-for Work

  • 16 Posts
  • 0 Reply Likes
hello petra

/> is valid with HTML 5 and XHTML doctypes and invalid with HTML 4.01 doctypes.

do you think this is the solution??
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Well, you have a whole bunch of "/>" in your code already, and device browsers nowadays all understand the closing bracket.
Have you tried it?
Photo of Test-for Work

Test-for Work

  • 16 Posts
  • 0 Reply Likes
but the problem is in the href not in the input
Photo of Test-for Work

Test-for Work

  • 16 Posts
  • 0 Reply Likes
i use iScroll.js some developers says that it's buggy in the latest version and constantly listens for an ontouch, which meant it was overriding any links.
Photo of ismael jimoh

ismael jimoh

  • 4116 Posts
  • 192 Reply Likes
Hi Test-for work,

Recommend testing this without iScroll.js.

From my test, href works just fine with PhoneGap Build hence suspect there is something wrong with your own code.

Thanks.
Photo of Test-for Work

Test-for Work

  • 16 Posts
  • 0 Reply Likes
did u see my code? is there any problem ? why the html links does not work :(

any help
Photo of Test-for Work

Test-for Work

  • 16 Posts
  • 0 Reply Likes
is there other way to write herf without making problem

what about that :

1- string name="twitter">Follow us at twitter.com/mytwitterprofile

2- url>
example://gizmos

3 - base href="." />
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Ismael wrote:
Recommend testing this without iScroll.js.

So, TfW, what was the result when you tested it without iScroll.js?

You wrote:
did u see my code? is there any problem ?

You will probably have had your code checked using the W3C validator, right? What was the result?
Photo of Zahir

Zahir

  • 3500 Posts
  • 40 Reply Likes
Hi OP,

Do you still need assistance on this matter, or we would close the topic?
Let us know.
Thanks.
Photo of Zahir

Zahir

  • 3500 Posts
  • 40 Reply Likes
Due to the thread inactivity, this issue is now closed.
Create a new issue if you have any other problem with PhoneGap Build.
Thanks

This conversation is no longer open for comments or replies.