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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:52:35+00:00 2026-06-04T21:52:35+00:00

I want to pop-up a modal window based on a jquery script at http://communitychessclub.com/js/jquery.popupWindow.js

  • 0

I want to pop-up a modal window based on a jquery script at http://communitychessclub.com/js/jquery.popupWindow.js

My test page is at http://communitychessclub.com/games_new.php

I am using php to generate a table and I have data-href to trigger the entire table row (tuple) to be clickable to load the game. I have the latest jquery loaded and:

<script src="js/jquery.popupWindow.js"></script>
<script>$('.example').popupWindow({centerScreen:1});</script>

But the pop-up window is blank, based on this:

<tr class="example" data-href="games/game1302.php">

How can I fix this line:

<script>$('.example').popupWindow({centerScreen:1});</script>

so that it picks up the url specified as data-href of the <tr> ?
  • 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-04T21:52:38+00:00Added an answer on June 4, 2026 at 9:52 pm
    $('.example').each(function(){
       $(this).popupWindow({centerScreen:1, windowURL: $(this).data("href")});
    });
    

    EDIT. Put it in a loop, so $(this) is valid. Also, I’ve noticed you’ve included the full URL in your data-href, so no need to include the window.location.hostname now.

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

Sidebar

Related Questions

I want to show a modal dialog/pop-up window when the user has not filled
What i want to do: at page load to automatically pop up a jquery
I want to show a pop up on page load and had a checkbox
I have a modal pop up function on my website, but i don't want
My aspx page:- <script src=js/jquery-1.4.2.js type=text/javascript></script> <script src=js/jquery-ui-1.8.2.custom.js type=text/javascript></script> <script type=text/javascript> $(document).ready(function () {
Trying to figure out how to make a modal pop up on browser window
I want a user to open a pop up window from a bookmarklet, but
I want to pop a modal view and the previous view at the same
Can I show a modal pop-up instead of showing a progress indicator? I want
I would like to pop a modal dialog using jquery ui where the overlay

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.