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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T01:30:16+00:00 2026-05-31T01:30:16+00:00

Basically, Im trying to setup a page so that when a link is clicked

  • 0

Basically, Im trying to setup a page so that when a link is clicked it will open in the iframe but the url of the parent page will update with the hash but the url of the iframe will be the original clicked url (without the hash). I got to the point where the initial click event functions. but the change event (if the user links directly to the page) does not work. Here is a snippet of my code:

$j('.products-grid .item a, .post a').click(function(){
   $details.fadeIn().addClass('active');
   $j.address.value($j(this).attr('href').substr(2));
   $details.animate({left:detailGap}, { duration: 500, easing: 'easeInOutExpo'});
});

    }).change(function(event) {
       $iframe.attr('src', event.value);
       $details.fadeIn().addClass('active');
       $details.animate({left:detailGap}, { duration: 500, easing: 'easeInOutExpo'});
       var loadurl = location.origin + location.pathname +location.hash.substr(1);
       alert(loadurl);
       $iframe.attr('src', loadurl);
    });

ie: for the url, http://www.url.com/product-1 (iframe url)
I want it to show up as http://www.url.com/#/product-1 (page url)
this is in magento.

thanks, Robert

  • 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-31T01:30:17+00:00Added an answer on May 31, 2026 at 1:30 am

    figured it out

        $j('.products-grid .item li a').click(function(){
                $j('html, body').animate({scrollTop: '0px'}, 100);
                $j.address.value($j(this).attr('href'));
                $details.fadeIn().addClass('active');
                $j('body').addClass('open');
                $iframe.attr('src', 'about:blank');
                $details.animate({'left':detailGap - navGap}, { duration: 500, easing: 'easeInOutExpo'});
    });
    

    opens the slide out panel i created which housed the iframe.

    I set the target to the iframe so the url opens within that. but still allows for deep linking.

    you can see the final solution here:

    http://www.echodesign.com/

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

Sidebar

Related Questions

I'm not too familiar with networking in JAVA but what i'm basically trying to
Basically I am trying to restart a service from a php web page. Here
Basically I'm trying to accomplish the same thing that mailto:bgates@microsoft.com does in Internet Explorer
I'm trying to figure out the best practice to setup hierarchy data that i
Ok, I am trying to print a page from a windows service that I
I'm trying to setup a registration form for some workshops that last a week.
I'm trying to get up and running with my NServiceBus setup. I'm basically trying
I am trying to achieve a custom URL structure with Wordpress. Basically, my site
I'm trying to open a file that includes some data in a web directory
I'm basically trying to figure out the simplest way to perform your basic insert

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.