Software Archive
Read-only legacy content
Comunicados
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.
17060 Discussões

Click of Graphic button don't work

Maxim_K_
Principiante
974 Visualizações

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 Respostas
Rakshith_K_Intel
Funcionário
974 Visualizações

can u post example code that is having issue ?

Maxim_K_
Principiante
974 Visualizações

Good morning Rakshith,

Any kind of code, even the simple one:

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

});

Rakshith_K_Intel
Funcionário
974 Visualizações

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?

Anusha_M_Intel1
Funcionário
974 Visualizações

@Maxim,

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

Maxim_K_
Principiante
974 Visualizações

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.

Rakshith_K_Intel
Funcionário
974 Visualizações

@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

Maxim_K_
Principiante
974 Visualizações

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.

Chris_P_Intel
Funcionário
974 Visualizações

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

 

Maxim_K_
Principiante
974 Visualizações

@CHRIS P

Thank you so much!

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

Responder