I've tried everything.  Every combination of the helpers raw, html_safe to_json including some attempts with ::JSON.encode and CGI.unescape.  The issue is that regardless of what I  do, I can't print well-formed JSON in a view.  It's alwa...
I have a model Locations with two columns latitude and longitude. I want to find a way where I can get the list of locations and pass them to google maps using Ajax and javascript. So far my code is as follows:  map.js:  function initialize()  {...
i have developed website by using ruby on rails and angularjs(with JS and Jquery).I just want to know that Is it possible to have different meta tags for each page in angularjs?? According to me any crawler detects only the meta tags generated by ser...
I'm using ckeditor in my rails projec and I have a problem with image uploading. I don't want everything that ckeditor have, that I wrote some simple config.js for it:  CKEDITOR.editorConfig = (config) ->   config.language = 'pl'...
I want to know the content type of a given url input by the user inside my Javascript code. Actually, I have a drop-down list (html,csv,xls etc.) and I want to make it so when the user inputs an url, I want to detect the type of the content of the ur...
I am using the jquery ui slider and when the slider is slid, a form is submitted. The code is as follows:  <script type="text/javascript">     $(function() {         $( "#slider" ).slider({                         min: 2000,...
I am using bootstrap2 and set up tabs    <ul class= "nav nav-tabs">    <li class="active"><a href="#menu1" data-toggle="tab">?????</a></li>    <li class=""><a href="#m...
I'm using Rails 3.2.9. When I add CoffeeScript code to a .js.coffee file in the /app/assets/javascripts directory, I get the resulting JavaScript in all of my webpages. The problem is all the JavaScript is wrapped in:  (function() {   // my code...
Is there any fallback mechanisms in Ruby on Rails 3.2 and 4.0 when someone has JavaScript disabled?  How would an application react, specifically when using ajax request. Would it fallback to normal requests?  I ask this because I need a website whic...
This is weird...  This line of code in the head section of my layout:  <%= javascript_include_tag :application %>   Results in this html:  <script src="/assets/jquery.js?body=1" type="text/javascript"></script> <s...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.