Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8192219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T04:07:41+00:00 2026-06-07T04:07:41+00:00

I have this file: geoView.html.erb <meta name=viewport content=initial-scale=1.0, user-scalable=no /> <%= stylesheet_link_tag ‘application’ %>

  • 0

I have this file:
geoView.html.erb

<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<%= stylesheet_link_tag 'application' %>
<%= javascript_include_tag  'application'%>
<body onload="initialize()">

 <div id="top_vendors"></div>
<div id="left_control_panel">
 <input type="button" onclick="getlistings();" value="Add Markers">
 <input type="button" onclick="clearMarkers();" value="Remove Markers">
</div>

<div id="mid_wrapper">
  <div id="map_canvas"></div>
  <div id="right_control_panel">
   <input type="button" onclick="getlistings();" value="Add Markers">
   <input type="button" onclick="clearMarkers();" value="Remove Markers">
  </div>
  </div>
</div>

</body>
<script type="text/javascript"
src="http://maps.googleapis.com/maps/api/js?key=XXsensor=false"></script>

My question is Id like to add a horizontal scrollbar widget from the jQuery Cupertino themed library to the div “top_vendors” here.

I looked at this tutorial as a guideline however, I haevn’t been successful

So far I have these steps in place:
1) Copied the jQuery minified library into my Assets/javascripts folder
2) Copied the jqueryUI library there too
3) Copied the Cupertino themed images into Stylesheets/images
4) Copied the jquery-ui-..custom.css file to the stylsheets folder
5) here is the head tag of my application.js file

<!DOCTYPE html>
<html>
<head>
<title>App0521</title>
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"  type="text/javascript"></script>
<![endif]-->
<%= stylesheet_link_tag   'jquery-ui-1.8.21.custom.css', "application", :media =>  "all" %>
<%= javascript_include_tag 'jquery-1.4.2.min.js ', 'jquery-ui-1.8.2.custom.min.js',"application" %>
<%= csrf_meta_tags %>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>

Im still not seeing any scroll bar in my browser.

What am I missing?
Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T04:07:42+00:00Added an answer on June 7, 2026 at 4:07 am

    You don’t need to include all CSSs and JSs in your application.html.erb. You can configure Rails to include it for you..

    application.html.erb:

    <%= stylesheet_link_tag    "application", :media => :all %>
    <%= javascript_include_tag "application" %> 
    

    Save the js files in the assets/javascript folder and include them in the application.js

    application.js

    //= require jquery
    //= require jquery_ujs
    //= require jquery-ui      #here you are including the jQUERY-UI
    //= require_tree .
    

    Also in your application.js you need to create the functions in a unobtrusive way (I think it is missing for you).

    If you want to call the slide in your ID #top_vendors for example:

    $(function() {
        $( "#top_vendors" ).slider();
    });
    

    The same can be done for any other jQuery-UI pluging.

    I hope it helps…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this file: app/views/listings/list.html.erb in my rails project. Here are the contents of
I have this xml file which has text init. i.e Hi my name is
I have this html file where I want to overlay some text over another.
I have this test.txt file with the following content: @echo off wget -q http://subs.ro/get/21518
I have this YAML file: name: Firas dirs: [/bin/, /home/phiras/] I am using YAML::Syck
I have this file, data.txt, the content is: 100X00 20X0X0 3000XX 4X00XX I want
I have this file file.txt which I want to split into many smaller ones.
I have this file structure: folderIWantStuffIn/ - old_stuff Now I want to add some
I have this file which I need to read the first bytes to check
I have this class file call SMSHelper.cs First I just wanted to know is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.