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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:24:39+00:00 2026-05-27T18:24:39+00:00

Need someone to help me on the jQuery Dialog plugin by Eric Martin –

  • 0

Need someone to help me on the jQuery Dialog plugin by Eric Martin – Simple Model

I have a PHP page that contains the link that I want to pass a value to another page. Thus, I need help on how to pass the value to the jQuery script that contain the var for the page URL below?

Profile.php

<div id='basic-modal'>
       <a href='#' class='basic'>Jquery Dialog Demo</a>
</div>

Note: When I click on the link, it will call the jQuery basic-model div from Basic.js

Basic.js

jQuery(function ($) {

    // Load dialog on click
    $('#basic-modal .basic').click(function (e) {

    // Display an external page using an iframe
var src = "http://365.ericmmartin.com/";
$.modal('<iframe src="' + src + '" height="450" width="830" style="border:0">', {
    closeHTML:"",
    containerCss:{
        backgroundColor:"#fff",
        borderColor:"#fff",
        height:450,
        padding:0,
        width:830
    },
    overlayClose:true
});

        return false;
    });
});

Note: On the above, I want the var src contain variable value that I
should pass it from the Profile.php instead. How should I do this?

  • 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-27T18:24:39+00:00Added an answer on May 27, 2026 at 6:24 pm

    Change Profile.php slightly:

    <div id='basic-modal'>
           <a href='http://localhost/Poll.php?id=1&validate=yes' class='basic'>Jquery Dialog Demo</a>
    </div>
    

    Change Basic.js like so:

        jQuery(function ($) {
    
            // Load dialog on click
            $('#basic-modal .basic').click(function (e) {
            e.preventDefault();
    
            // Display an external page using an iframe
            var src = $(this).attr('href');
            $.modal('<iframe src="' + src + '" height="450" width="830" style="border:0">', {
                closeHTML:"",
                containerCss:{
                    backgroundColor:"#fff",
                    borderColor:"#fff",
                    height:450,
                    padding:0,
                    width:830
                },
                overlayClose:true
            });
    
    
                return false; // not sure why you're doing this
            }); // end of click handler
    
    
    
    
        });  // end of document.ready
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need some help with my jQuery script. I have a page that refreshes
Hi Guys i need some help with Jquery Validadion Plugin I have an input
hoping someone can help. I'm using jQuery's ticker plugin to display news headlines. I
Could someone please help with the following jQuery I need all jQuery UI buttons
I was wondering if someone could help me using the JQuery validation plugin. I
I want someone to help me, I have a case that seems very particular
I've got a HTML page containing elements that I need to access using JQuery.
can someone help with this? I need the following function to do this... $x
I need to do a non greedy match and hope someone can help me.
I am stuck and in need of a hand. Hope someone can help? Anyone

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.