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

  • Home
  • SEARCH
  • 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 8929735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:44:21+00:00 2026-06-15T08:44:21+00:00

i was reading those few lines of code from a javascript(Jquery) file and I

  • 0

i was reading those few lines of code from a javascript(Jquery) file and I was wondering where those arguments “x” and “y” are coming from.Is the scroll event that is taking care peraphs?

$(window).scroll(function(x,y) {

        dosomething(withThis);
    });

thanks
Luca

P.S. here is the jquery excerpt that made me ask this question Is this an elegant way to make elements fade in while scrolling?

  • 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-15T08:44:22+00:00Added an answer on June 15, 2026 at 8:44 am

    Well, open Firebug console (or web dev. tools) and paste there this code:

     $(window).scroll(function(x,y,z) {
        console.log(x,y,z)
     });
    

    After execution and scrolling you’ll see the result (works on sites with jQuery).

    As expected, first argument – event object, 2nd and 3rd – undefined;

    But, you can trigger events manually, and pass any arguments.

    More info here: http://api.jquery.com/trigger/

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

Sidebar

Related Questions

So I have these few lines of code: string[] newData = File.ReadAllLines(fileName) int length
I've been using J for a few months now, and I find that reading
I have a byte array that I am reading in from a NetworkStream. The
While learning c#, I have picked up the implication from reading other people's code
I've been reading a lot in the last few days, and I'm sure that
For those of you who haven't been reading my Qt questoins, I am learning
I'm not sure why these have to be unique, but from reading the MySQL
I'm reading some tutorials now about jQuery.. function creating,plugin creation etc. but these tutorials
Reading the docs, I'd expect $(#wrap2).remove(.error) to remove all .error elements from #wrap2 .
I have a BAT file, which creates a number of csv files by reading

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.