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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:25:18+00:00 2026-05-26T09:25:18+00:00

I have a feeling this is easy but, I’ve been working on it for

  • 0

I have a feeling this is easy but, I’ve been working on it for some hours with little success.

I’m using iframe version of LightFace modal windows:

http://davidwalsh.name/facebook-lightbox

I’m trying to find a good way to make a form submit when they press a submit button that I add to the panel. The best I found so far is:

light = new LightFace.IFrame({ height:440, width:550, url: 'http://samplePage.html',
title: 'Sample' }).addButton('Submit', function() { 
window.frames[window.frames.length-1].formName.submit();},'blue')
.addButton('Close', function() {light.close(); },true).open();

I’m not very confident with this code but I think for the submit it gets to the iframe I’m looking for by just assuming it’s the second to last one. This works on a webpage. Unfortunately I’m building this for a facebook app that loads within a Facebook iframe itself. When loading in the facebook page the code doesn’t do anything.

Does anyone have a better way of putting a submit button onto 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-26T09:25:19+00:00Added an answer on May 26, 2026 at 9:25 am

    There shouldn’t be much trouble with putting an iframe inside an iframe, however:

    window.frames[window.frames.length-1].formName.submit();
    

    …could very well cause trouble. You are kind of tracking down your form, while I would try to target the form element directly, i.e. assign it an id:

    <form id="myForm"><!--- some form stuff --></form>
    

    and use the dollar sign to get to it:

    $('myForm').submit();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a feeling that the answer to this is easy but I can't
I have a feeling this is not an easy task but I need to
I have a feeling that this query is pretty easy to construct, I just
I have a feeling this is a repost but I can't seem to find
I have a feeling this is a stupid question but I can't find the
I have the feeling the answer to this question is no but I figured
I have a feeling I am completely borking this MySQL query but I'll ask
I have a feeling that I already know the answer to this one, but
I have a feeling I may already know the answer to this question, but
I have a feeling that this is stupid question, but I'll ask anyway... I

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.