1

I am using jQuery Mobile script on my mobile website. I am not much familiar with JavaScript.

There are two website have same code & files.

I used this form to get value

<form class="dca-box" action="domain.php" method="post" name="form_domain_avail" id="homepageDomainSearch">
  <input type="hidden" value="check_availability" name="action"> 
  <input type="hidden" name="showrelated" value="true">
  <input data-role="none" type="text" maxlength="65" id="field_domains-input" class="domains-input optionalField" name="txtDomainName" value="Buy a Domain name..."  onkeydown="remove_error_msg();" /> 
  <button data-role="none" onclick="return check_domain_name();" id="search_for_domains_id" type="submit">Search</button>
</form>

On my desktop website this working well, but it's only loading page in mobile site.

Michael Kohne
  • 11,888
  • 3
  • 47
  • 79
  • 1
    add `data-ajax="false"` to form. – Omar Jan 02 '15 at 13:05
  • thanks Omar, its work & passing value but loading gif not showing ? why – Yash Mosara Jan 02 '15 at 13:34
  • because you've disabled Ajax. The result page will be loaded without jQM's Ajax navigation. Use `$.ajax()` methods to communicate with server if you want to keep jQM Ajax navigation enabled. – Omar Jan 02 '15 at 13:39
  • 1
    http://stackoverflow.com/questions/16519546/dont-hide-loader-till-the-page-loads-completely-in-jquery-mobile/16520313#16520313 – Gajotres Jan 02 '15 at 13:40

0 Answers0