vb.net - Clicking the button it select all my page (working on browser not on mobile) -
first of all, 2 days old using jquery mobile, work done trial , error , reading.
i have added aspx button , enhance jquery, looks fine except 2 behavior
1- when assign icon button, tried click in browser, code write in btn_search_click not fire, after many checking , and testing notice code fire if clicked icon "search image" itself.
2- when tried button on mobile "galaxy note" seem whole page write getting selected light orange in image below, later on discovered pressing button give effect, pressing "search icon on button" works well
is normal behavior?
https://plus.google.com/u/0/115817137660799291682/posts/7tn5kxdfobt
here html/jquery page (without table movies)
<%@ page language="vb" autoeventwireup="false" codefile="default2.aspx.vb" inherits="default2" %> <!doctype html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>jquery mobile demos</title> <link rel="stylesheet" href="css/themes/default/jquery.mobile-1.3.1.min.css"> <link rel="stylesheet" href="_assets/css/jqm-demos.css"> <link rel="shortcut icon" href="favicon.ico"> <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=open+sans:300,400,700"> <script src="js/jquery.js"></script> <script src="_assets/js/index.js"></script> <script src="js/jquery.mobile-1.3.1.min.js"></script> <style type="text/css"> .auto-style1 { width: 61px; } .auto-style2 { width: 540px; } .style1 { } </style> </head> <body> <form id="form1" runat="server"> <table style="width: 92%;"> <tr> <td class="auto-style1"> num: </td> <td class="auto-style2"> <asp:textbox id="txt_num" runat="server" type="search"></asp:textbox> <td class="style1"> <asp:button id="btn_search" runat="server" text="search" width="31%" data-inline="true" data-theme="b" data-icon="search" data-iconpos="left" /> </tr> <tr> <td class="auto-style1"> name: </td> <td class="auto-style2"> <asp:textbox id="txt_name" runat="server" type="text"></asp:textbox> </td> <td> <asp:button id="btn_balance" runat="server" text="get balance" width="31%" data-inline="true" data-theme="b" data-icon="grid" data-iconpos="left" /> </tr> <tr> <td class="auto-style1"> </td> <td class="auto-style2"> </td> <td> </tr> </table>
but code write in btn_search_click not fire
this happens because jquery mobile toolkit moves content outside asp.net form
, when click on button form not fires. there other case load ajax in dialog, can not work is.
i notice code fire if clicked icon "search image" itself.
the icons buttons handle post javascript, , why work, because call post - not send correct data if rest page have been change places.
here similar answer: button in dialog box won't post back
i have diagnose issue, did not have general solution give.
Comments
Post a Comment