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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:06:59+00:00 2026-05-16T23:06:59+00:00

I have a list of pages that are dynamically generated with a echo statment.

  • 0

I have a list of pages that are dynamically generated with a echo statment.
example:

<a href="<?php echo $action['href']; ?>"><span onclick="jQuery('#category_edit_dialog').dialog('open'); return false"><?php echo $action['text']; ?></a>

this is the code for making the jquery ui dialog window:

$.ui.dialog.defaults.bgiframe = true;
$(function() {
    $("#category_edit_dialog").dialog({
        width: 960,
        hide: 'slide',
        autoOpen: false,
    });

    $('#open_category_edit_dialog').click(function() {
        $('#category_edit_dialog').dialog('open');
        return false;
    });

});

what i want to achive is in the moment that links are clicked a jquery ui dialog will load the content. So the question is more likely how to load external links that are generated with php.

  • 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-16T23:06:59+00:00Added an answer on May 16, 2026 at 11:06 pm

    You have the HREF int he anchor, so all you have to do is use the jQuery load function to get the linked to HTML and put it on your page.

    Assuming the following HTML for your links (that odd unclosed span in the anchor didn’t make sense to me):

    <a href="<?php echo $action['href']; ?>" class="dialogLink"><?php echo $action['text']; ?></a>
    

    You could modify your javascript to make it work as follows:

    $.ui.dialog.defaults.bgiframe = true;
    $(function() {
        $("#category_edit_dialog").dialog({
            width: 960,
            hide: 'slide',
            autoOpen: false
        });
    
        $('a.dialogLink').click(function() {
            var url = $(this).attr('href');
            $('#category_edit_dialog').load(url, function() {
                $('#category_edit_dialog').dialog('open');
            });
            return false;
        });
    });
    

    They key is the click event getting bound to the links with the class of dialogLink. It will get the URL it points to when clicked, load the content found at that URL into the dialog content div you already had on the page, and once it has the HTML it will open the dialog.

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

Sidebar

Related Questions

I have a page that contains dynamically generated Dropdown List controls and I want
I have a ListView on a page that displays a list of widgets. When
I have a page in my application that refreshes some content (a list of
I have a list of bean objects passed into my JSP page, and one
I have a simple accordion type page containing a list of H3 headers and
I have a asp.net page where i query a list of url and the
I have a software diagnostic page on which I would like to list the
I have a dropdownlist in a page. The values of all the list items
If I have List<String> text how can I create a sub-list of all continious
I have a list of integers, List<Integer> and I'd like to convert all the

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.