JQuery-tokeninput does not work correctly on mobile devices

We used jquery-tokeninput so that users can search for their friends and friends on facein and facebook.

We face a number of challenges

  • An orange square highlights the text box when the user starts typing into the box. But this orange box does not completely enclose the text box, but only a portion of the text box around the text. We're not sure if this issue is due to some configuration inconsistencies with jQuery-tokeninput and our ruby ​​code.

  • Sometimes the pointer pointing to the current location of the input in the text box is not visible. This happens when the user clicks on the text field and does not see such a pointer (flickering line).

http://imgur.com/ii6df3L is one of the screenshots http://imgur.com/7HId3id , imgur.com/8KIXpa0 are other screenshot images.

Below is the code we used in the erb and rb files

<div data-role="content">

    <%= form_tag(compose_referral_message_facebook_page_path, {:method => "get", "data-ajax" => false})  do %>

      <%= hidden_field_tag :job_posting_id, params[:job_posting_id] %>
      <%= hidden_field_tag :facebook_friend_list %>

      <%= label_tag(:att_uid, "Employee ID*") %>
      <%= text_field_tag(:att_uid, params[:att_uid], :placeholder => "Enter your ATTUID*") %>

      <%= label_tag(:to, "Search Connections by Name") %>

      <div data-role="content">
      <input type="text" id="facebook_friend_search_box_id", placeholder="Search Connections by Name"/>
      </div>

      <div data-role="content">
      <fieldset class="ui-grid-a">
          <div class="ui-block-a">
            <button id="facebook_friend_submit_button_id" type="submit" data-theme="b">
              Continue
            </button>
          </div>
          <div class="ui-block-b">
            <%= link_to "Cancel", show_jobs_page_url(:job_posting_id => params[:job_posting_id]), {"data-role" => "button", "data-theme" => "c"} %>
          </div>
  </fieldset>
  </div>

<% end %>

      

with suggestions text field code

  <div data-role="content">
  <input type="text" id="facebook_friend_search_box_id", placeholder="Search Connections by Name"/>
  </div>

      

and a corresponding logic file containing

$(document).ready(function() {
  if ($("#facebook_friend_search_box_id").length !== 0) {
    return $("#facebook_friend_search_box_id").tokenInput("search_facebook_friend");
  }
});

      

+3
javascript jquery jquery-mobile jquery-tokeninput


source to share


No one has answered this question yet

Check out similar questions:

7649
How does JavaScript blocking work?
7428
How can I check if an element is hidden in jQuery?
4523
Thinking in AngularJS if I have a jQuery background?
4345
How to check if a checkbox is checked in jQuery?
3952
Setting "checked" for a checkbox with jQuery?
2644
Is there a function "exists" for jQuery?
2302
Add table row in jQuery
2101
jQuery scroll to element
1957
Disable / enable input with jQuery?
1547
What's the best way to detect a mobile device?



All Articles
Loading...
X
Show
Funny
Dev
Pics