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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T17:19:18+00:00 2026-05-10T17:19:18+00:00

Say I have 3 frames in a frameset arranged in 3 rows. Frames 1

  • 0

Say I have 3 frames in a frameset arranged in 3 rows. Frames 1 and 3 are from my site and frame 2 (the central one) is from an external website. Is there a cunning way to force the browser to centre align the data in frame 2?

I’ve found a small work-around which uses a frameset within a frameset which has 2 blank columns either side of the data but that means the scrollbars from frames 2 and 3 are out of alignment.

Any ideas?

Edit : The code I have currently is :

 <html xmlns='http://www.w3.org/1999/xhtml' > <head id='Head1' runat='server' /> <frameset rows='10%,65%,25%' border=0 frameborder='no'>     <frame name='nav' noresize scrolling='no' src='NavigationBar.aspx?NAVIGATION=<%=sDisplayNavigation %>'>     <frameset cols='1*,1010px,1*'>         <frame name='lspace' scrolling='no' src='border.htm'>         <frame name= 'main' scrolling='auto' src='<%=sMainTextURL%>#highlight'>         <frame name='rspace' scrolling='no' src='border.htm'>     </frameset>     <frame name='suggest' scrolling='yes' noresize src='<%=sSuggestURL%>'> </frameset> </html> 
  • 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. 2026-05-10T17:19:19+00:00Added an answer on May 10, 2026 at 5:19 pm

    I think what you are looking for is a way to inject some CSS into the other frame, even though it comes from another site.

    I think this will not be possible without a server side script to request the page and modify it.

    Javascript has ways to modify other frames using window.frames[] and using DOM traversal just like for elements in the local frame. This will be problematic for you because of the ‘same-origin policy’. This basically means that javascript in a frame loaded from example.com can not access the DOM in a frame loaded from foo.com. Even if you have similar domains, foo.example.com and bar.example.com, they are treated as separate domains in the browser so your javascript from one is not allowed to access the other.

    This affects ajax calls using XMLHttpRequest as well. There are ways of reducing the impact of this, but I think you need to be able to run javascript on both sides of the line.

    I recently tried something similar to what you are doing, where I wanted to embed one site in another, but the same-origin policy made it impractical.

    The other way to do this is server-side instead of client-side. Create a php script which requests content from the other server on behalf of the client, and then serves it as if it was on your server all along. Then your javascript, now on the same server, can do what it will with that frame. If the other site uses a lot of cookies or ajax, this could be tricky, but your php won’t have a same-origin policy to deal with.

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

Sidebar

Ask A Question

Stats

  • Questions 100k
  • Answers 100k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Boost.Serialization and libs11n can both do this. The libs11n manual… May 11, 2026 at 7:55 pm
  • Editorial Team
    Editorial Team added an answer Please format your xml so it's easier to read -… May 11, 2026 at 7:55 pm
  • Editorial Team
    Editorial Team added an answer That's most likely because you didn't get all the file… May 11, 2026 at 7:55 pm

Related Questions

Let's say I have a resource file which exports mc1 with 4 frames in
I am working on an idea wherein I have to identify lines in a
Okay, this is the code: [lblMessage setText: txtEnter.text]; [lblMessage sizeToFit]; scrollingTextView.contentSize = lblMessage.frame.size; float
Let's say I have 3 point clouds: first that has 3 points {x1,y1,z1}, {x2,y2,z2},

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.