Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Click of Graphic button don't work

Maxim_K_
Beginner
972 Views

Click event of graphic button control doesn't work on iPhone and iPad devices only, but work well on Android device and on Emulate tab of XDK. Any suggestions? Thank you.

0 Kudos
9 Replies
Rakshith_K_Intel
Employee
972 Views

can u post example code that is having issue ?

0 Kudos
Maxim_K_
Beginner
972 Views

Good morning Rakshith,

Any kind of code, even the simple one:

$(document).on("click", ".uib_w_39", function(evt)
{
activate_subpage("#page_67_15");

});

0 Kudos
Rakshith_K_Intel
Employee
972 Views

I will need complete code to check.

I tried new project, dragged a button, added custom script for button to alert("hello"), tested on iphone, worked. Can u check it this is working for you?

0 Kudos
Anusha_M_Intel1
Employee
972 Views

@Maxim,

Are all your button clicks causing issues or only the ones that redirect to another page?

0 Kudos
Maxim_K_
Beginner
972 Views

Dear Rakshith,
I've created the new blank html5+cardova project on jQuery mobile framework with only one graphic button and one page and the simple code:
$(document).on("click", ".uib_w_1", function(evt)

{

 alert("Hello");

});

Then I've shifted to the "test" tab and I've synchronized the project. After that I've checked from iPhone by Intel App Preview software and the same broblem.

 

Dear Anusha,
All of buttons work fine, the problem only with the GRAPHIC buttons. Yes, all of graphic buttons have the same issue.

0 Kudos
Rakshith_K_Intel
Employee
972 Views

@maxim I have reproduced the issue with "Graphic" button on ios, I have reported to engineering team, will update you when I have status, Thank You

0 Kudos
Maxim_K_
Beginner
972 Views

There is one more problem with the same configuration (html5+cardova+jQuery). The layout of button grid is one column only for Android, but for iOS and emulator tab of xdk is correct.

0 Kudos
Chris_P_Intel
Employee
972 Views

For the graphic button, if you add   href="#" to the <a> tag that is the base button, it'll work on iOS.

 

0 Kudos
Maxim_K_
Beginner
972 Views

@CHRIS P

Thank you so much!

any updates with Android layout issue? or shall I create a new topic?

0 Kudos
Reply