954,587 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

reload the iframe src

Hello,
I am wondering to implement this logic. Any suggestion or help

I have two iframes
1)iframe 1 is Navigation menu(loaded with flash menu).

2)iframe 2 is load the web page.

When I click the navigation menu the corresponding web page loaded.

In one part, when I clicked the navigation “menu” the login_reg.php page open in page_load.

The login_reg page has two parts of form,
1) In one registration process is done

2) In another login is done.

When I submit the login page, it check the login and password exists and if it success.

The following should handled,

My logic:
1)The new page loaded in “page_load” iframe and also it reload the “menu” iframe by using the src attribute. I implemented by using the jquery. But It not work,

eswar.aspire
Newbie Poster
13 posts since Nov 2009
Reputation Points: 10
Solved Threads: 0
 

eswar.aspire,
First off, you need to post your questions in the correct forum. This is purely Javascript not PHP, because your asking a question that has no PHP in it.
Secondly, what you need to have in your parent page is a function that will control the iframe sources.

function load_left(url) {
    document.getElementById("menu").src = url;
}


In the "login_reg" page that gets loaded in the "page_load" iframe, you need to impliment this with the jquery, so when you click submit it calles the function on the parent frame and loades the "menu" iframe with the desired page.

$("#login_form").submit(function() {
    parent.load_left('../pub@lic_profile/@_profile/all_@_all/horizontal_menu/flashmo_114_horizontal_03.swf');
});
fobos
Posting Whiz in Training
297 posts since Feb 2009
Reputation Points: 29
Solved Threads: 52
 

hello fobos,
Sorry for posting in wrong forum.But I got answer from you.Thanks a lot.

With regards,

Eswaran Saravanan,
University west,
Sweden.

eswar.aspire
Newbie Poster
13 posts since Nov 2009
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: