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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T00:50:33+00:00 2026-05-30T00:50:33+00:00

Here is my set up… I have two pages, index.html and cart.html. I have

  • 0

Here is my set up…

I have two pages, index.html and cart.html. I have a form on index.html that, when submitted loads cart.html in a pop-up iframe. That works fine.

When I load the cart.html into the iframe it loads the entire cart.html page, showing the header/menu/background that is the same as the index.html. But that’s a problem, I need to be able to load the cart.html into the iframe, but then target a div with an ID of ‘cart-content’. I need only that div to show and not the entire page.

A work around, would be to just stylize cart.html so it fits in the iframe without and of it’s headers/menus/backgrounds, but I need to be able to visit cart.html outside of the iframe.

here is my form:

<form id="product-form" method="post" action="/cart">
<!-- BIG CARTEL CONTENT, NOT IMPORTANT -->
</form>

I am using a jQuery plugin, FaceBox to open the iFrame. Here is it’s code:

jQuery('#product-form').submit(function() {
    jQuery.facebox('<iframe name="targetbox"></iframe>');
    return true;
}).prop('target','target box')

So in the form I need it’s action to be something like “/cart#cart-content” Make sense? Hope someone can help! Thanks

  • 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-30T00:50:34+00:00Added an answer on May 30, 2026 at 12:50 am

    Check this out: iframe to Only Show a Certain Part of the Page

    Basically, use the load function to load up the cart.html page, and select the div off that page you want to display – i.e.

    $('#popUpDiv').load('path-to-my-page/cart.html #divToDisplay')

    In this case, #divToDisplay is the ID of the piece of cart.html you want to load into the popup.

    Note The last sentance of Pointy’s answer –

    There may be other things you need to do, and a significant difference
    is that the content will become part of the main page instead of being
    segregated into a separate window.

    You might need to account for this if you’re submitting from the loaded div.

    HTH

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

Sidebar

Related Questions

I am developing w php web site. Here I have set a php cookie
Here is the problem from code chef : A set of N dignitaries have
Here's my problem: I'm trying to set up a simple mobile contact form with
I have pretty much the same question as stated here: Set listener for store
I am using form validation from http://docs.jquery.com/Plugins/Validation . Here you set the form validation
Assume i have a class: class foo { .... //some constructors here set val=34
When I have my vimrc here: set tabstop=2 set shiftwidth=2 set softtabstop=2 set expandtab
So I have a form two two inputs, Free and Price. Free is a
I have a problem with UITableView , particularly with scrollToRowAtIndexPath . Here we set
I have the following cycle: //condition will be set here to true or false

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.