How to move to the page from a frameset? - html

in my website, I have a page which have 3 frames, lets say left_frame, top_frame and bottom_frame.
In top_frame, i have a link Click. Currently, this some_page.php is loaded inside the top_frame but i want to completely load a new page. Is there any way out?

This should do the trick.
Click

Related

Regarding frames in HTML

I am making GUI for making configurations.
The problem I am facing is, that I have divided it into frame sets, but there are places where on the click action of the button the window that is to be opened overlaps other frame which I am not able to do.
If I use HTML5, how is it possible that way too? Please Explain.
I have used framesets like this:
Home
I have a image inside the node info frame, and on onclick event we want to ovarlap the node info frame over admin_node_menu frame so that it gives a zoom effect.
something like this:
enter image description here

Stop refreshing a specific div when browsing

I'm working on my website where I have a music player. The annoying part is that when I browse to another page the player stops and starts from begining...
What I want is to have a persistent music player. So how can I make the div that contains the music player to be static when browsing to another page?
The website: demo(dot)zdringhi-art(dot)com
Thanks!
WEB is stateless.
So if you move to another page there is no way for a div to remain the same.
Although what you can do is that... Hmm as follows.
Have a single page and have your div in there.
Then the other part of the page is loaded via ajax.
also when a link is clicked only parts of pages will be loaded.
Seems too much of coding , but is the only feasible option.
For eg take facebook
Gurav shah is correct, the web is stateless so if you are changing pages you only have a few options for this.
Frames, yes before anyone shouts this is what they were designed for. You could have the music player in one HTML frame and the rest of the page in another so when you move around you are only updating the main content frame.
Or do as gurav suggests and make your whole site one page and update the content with Ajax, so the music Div does not change.
Pass the current position of the player to the next page when you click a link.
to another page
Where getseconds() returns the current position of the music player and passes it to the next page then when that page is loaded you read in the variable from the URL and start the player from there.
Using frames is one solution but since you are using JQuery on your site you should check out .load (http://api.jquery.com/load/). It allows you to load the content of another page and put it somewhere in the current page. Something like this:
$(function () {
$("a").click(function (e) {
e.preventDefault(); // don't follow the link
$("#ja-container").load($(this).attr("href") + " #ja-container");
/* Load the new page using ajax request, take the content in #ja-container from that new page and put it in the current page's #ja-container */
});
});
This is not a complete solution: when someone clicks Concerts -> Agenda you should keep Agenda visible.
Personally, instead of forced background music I'd rather like to see a page with Youtube videos of the people playing the music.
Well, yes HTTP is stateless. what you can do is create a cookie, and update it with current location/time value of the player, constantly. This way, when you go to any other page you can read time/location from cookie.
otherwise, in a cookie less approach, sending AJAXed location/time data back-forth server-client will be too much network.
If I was doing this, I would have gone cookie way.

Loading a framed page with specific pages in each frame

I'm trying to create a link to a page with frames. The page has 2 frames - left side for menu and right side for content.
Linking to the URL brings up the index, but I want a specific sub-page on the site.
Is there any way to link to the sub-page while still keeping the format of the frames?
thanks
Set your link HREF value to the specific "sub-page" URL and set the TARGET property to the specific frame you want it to display within.

Prevent open in new tab/window

I have a website that has a music player in one of the corners. Because I didn't want the music to stop everytime the user changes part of the website, I used an iFrame for the content. So when someone clicks the menu buttons, all that changes is the source of the iFrame.
Now the only problem is if someone tries to open one of the sub-pages in a new tab/window. All they get is black text on a white background, with the content that was supposed to be in the iFrame.
Is there any way to prevent this?
Oh, and the page this is about is www.sinjabe.com if that helps.
Thanks
The most logical solution (to me...) would be to detach the music player from the page; have the music player open in a different window / tab. You can have the music player in a pop-up window when the visitor of your site requests it / clicks on it.
Other solutions like detecting if the content has a parent frame, will lead to multiple music players if someone opens a page in a new tab / window.
You can alter your sub-pages to detect if they are loaded in an iframe like this:
(window.location != window.parent.location) ? true : false;
and then load or redirect to the full template as needed.
Put this on your sub pages:
<script type="text/javascript">
if (window.location == window.parent.location)
this.window.location = 'main_site.html';
</script>
-- Give credit for this one #George Cummins for writting such a short conditional statment :)
This will redirect any direct incomming trafic on your subpages to your main page. I must warn you though, that iframes for displaying such content are highly SEO unefficient, and URL useless in terms of history mapping (back button will not work) and link sharing, because the main URL doesn't change while you click on menu buttons.

Effects in ActionScript?

i want to put some effect to my screen, when it navigates to other page.
When i click a button in the first page it should navigate to second page.
i want some effect when navigate to second page, can anyone tell me how to do this?
check out the fl.transitions package in the ActionScript documentation. there are some ready-made transitions you can use (Fade, Fly, Wipe, etc.) or you can create your own with the Tween class.