Skip to main content

All Questions

0 votes
1 answer
74 views

jquerymobile breaks rails application

I would like to create a mobile version of my rails 5.0.0.1 application using jquery mobile. As a starter I found useful instruction written in a web page by Scott W. Bradley and in a railscasts ...
Asarluhi's user avatar
  • 1,290
1 vote
2 answers
3k views

how to use rails path in href for jquerymobile button

I am working in rails using jquery.mobile button.(/view/sessions/new.html.erb) I have a hard code path which I tried to change to rails routes path. Here original hard code: <a href="/...
PKul's user avatar
  • 1,701
1 vote
0 answers
105 views

JQM: JavaScript doesn't run on page load following DELETE request

When using jQuery Mobile, (how) can I force JavaScript to run following a DELETE request and subsequent page load? I'm using Devise along with JQM and Rails. When a user signs out (a delete request), ...
Leo Folsom's user avatar
0 votes
0 answers
55 views

JQuery mobile not working with rails devise

I am using rails 5 with gem 'jquery_mobile_rails', '1.4.5' and gem 'jquery-turbolinks' which seem to work when I remove the turbolinks gem. my set up is as follows in application.js: //= require ...
Mohammed's user avatar
  • 565
0 votes
1 answer
404 views

How do I add jquery-mobile to a rails 4 app

My goal is moving between previous and next photos in mobile browser with a finger swipe: https://api.jquerymobile.com/swipeleft/ https://api.jquerymobile.com/swiperight/ Since I am only going to ...
Timmy Von Heiss 's user avatar
2 votes
1 answer
152 views

Turbolinks wipes out jQuery Mobile classes

When I load a page in my rails app using Turbolinks, the DOM lacks the styles that are normally applied by jQuery Mobile. All of my JavaScript files run; the only problem is that I lose some of the ...
Leo Folsom's user avatar
1 vote
1 answer
56 views

jQuery Mobile with Rails UJS to honor data-ajax="false" on links that are using data-method="delete"

Currently i am using jquery mobile in my website. when i try to logout than data-ajax=false not working. in all other links data-ajax= false working and request dont send in ajax. but the problem ...
Vishal's user avatar
  • 7,281
0 votes
0 answers
27 views

Rails app can't upload files that use gem jquery_mobile_rails

GemFile: gem 'jquery-rails' gem 'jquery_mobile_rails' application.js: //= require jquery.mobile html: <form accept-charset="UTF-8" action="/home/test" enctype="multipart/form-data" method="...
Hanks's user avatar
  • 21
0 votes
1 answer
158 views

JQuery Mobile with Ruby on Rails Layout destroyed, only fixed by reload

I made a website with jQuery and Ruby on Rails. When I load the first page it looks fine, but when I click on a link, the layout gets destroyed on the second page. If Ajax deactivated: The layout of ...
Jimmy Jon's user avatar
1 vote
1 answer
103 views

RangeSliders disappears after .submit()

I have a dropdown and a rangeslider using jQuery mobile for a Rails form: <%= form_tag(profile_path, remote: true, id: 'search_forms') do %> <%= select_tag 'q[activity]', ...
Jose Torres's user avatar
  • 1,045
0 votes
1 answer
283 views

Jquery mobile doesn't work in rails 4 app

I've taken an example of jquery mobile data roles that renders in the browser fine outside of my app, but when I put the code into my Rails app none of the buttons render and jquery mobile seems to ...
Danny Rosenfeld's user avatar
1 vote
2 answers
368 views

write different HTML for ipad in index.html file only

I have a rails site running done using the bootstrap. There's a mobile and tablet site for the same. Mobile and tablet site have completely same feature apart from having a slightly different index ...
Suraj's user avatar
  • 2,503
0 votes
1 answer
62 views

rails mobile view color conflict between jquery-mobile and global css theme

I'm searching since this morning without finding a full working solution. I have a rails apps with a full responsive theme. I also have a form duplicated for the mobile (only one view to interact ...
julien h.'s user avatar
1 vote
0 answers
82 views

Rails 3.2 assets pipeline compiles different versions of jquery in production vs development

I have a Rails 3.2 app, in development environment all is ok, while in production (passenger/apache2) I have strange problems with javascript. My gemfile is: source 'https://rubygems.org' gem '...
kranz's user avatar
  • 611
1 vote
1 answer
207 views

How to authenticate and display the json data using jQuery mobile/Ajax?

I have created a simple API for my Ruby on Rails app. This is what I get when I use curl. I think this is how it's done. Returns Json data of all users successfully. $ curl --basic -u [email protected]:...
LovingRails's user avatar
  • 1,575

15 30 50 per page
1
2 3 4 5
11