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 7600487
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:55:19+00:00 2026-05-30T22:55:19+00:00

I want to fall in love with jQuery UI’s positioning feature but everytime I

  • 0

I want to fall in love with jQuery UI’s positioning feature but everytime I run the attached code I get the following errors in javascript’s console:

firefox: (b[this] || "").split is not a function
chromium: Uncaught TypeError: Object [object Object] has no method ‘split’

I’ve downloaded the full jquery-UI package and included the css, jQuery-min and jQuery-UI-min.

Not sure if I’m just using it wrong and missing a simple thing to kick of the magic. I tried to mimic the example from the project webpage :C At least I hope the current version is not broken :C

<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>

    <link rel="styleSheet" type="text/css" href="jquery-ui-1.8.18.custom.css" />

    <script type="text/javascript" src="jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="jquery-ui-1.8.18.custom.min.js"></script>

    <script type="text/javascript">
         $( function() {

        function position( using ) {

             $("#main").position({
              of: $( "#head" ),
              my: $( "right top"),
              at: $( "right bottom")
            });
        }

        position();
    });
  </script>
  </head>

  <body>
    <div id="head" style="background-color: #F21; height: 7%">
      Menu
    </div>

    <div id="main" style="background-color: #1A9; width: 50%; height: 50%; position: absolute">
      <h1>Jules Verne</h1>
    </div>
  </body>
</html>
  • 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-05-30T22:55:20+00:00Added an answer on May 30, 2026 at 10:55 pm

    You’re passing the wrong parameters to “my” and “at”. You just need to pass a string, not a jQuery object. Do it like this instead:

    $("#main").position({
        of: $("#head"),
        my: "right top",
        at: "right bottom"
    });
    

    jsFiddle example.

    (updated code and jsfiddle to match question edit)

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

Sidebar

Related Questions

I want to make the following shape using divs and border radius, with fall
I'm beginning to fall in love with Extension Methods, but I just don't know
I want to redefine a __metaclass__ but I want to fall back to the
Want to run javascript function from parent window in child window Example I have
Want the function to sort the table by HP but if duplicate HPs then
Want to code a key pad for an calculator. What I want to make
want to ask user to input something but not want to wait forever. There
I want a font to 'fall back' to a certain font on google web
I want to run an import of a large file into MySQL. However, I
I want to design a new distributed application, but I have a few queries

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.