HTML - Refreshing Frame A With Script Running In Frame B
Similar TutorialsWell, here's the gig. I'm using a select tag such as (I've dimmed it down so it is easier to follow): <select id="gameNumber" name="gameNum" onchange="update()"> <option value="1">Number 1</option> <option value="2">Number 1</option> </select> As you can see it is using the function "update()" when someone selects an option from the drop down list. The update function looks like this: <script type="text/javascript"> function update() { window.loction.reload; } </script> Now I want it to refresh another frame with the id "datascreen", not the current frame that it is in. I'm using vertical frames, the follow is the code: <frameset cols="25%, 75%" <frame noresize="noresize" src="admin.php" name="main"> <frame noresize="noresize" src="showdata.php" name="data" id="datascreen"> </frameset> Now, the select drop down menu is in the admin.php, and I want this action to refresh/reload showdata.php. Hopefully someone can help me with this. Thanks Chad. Hello, I'm a moderator for an game site. We have a page on the site that reported posts dump in to for review. At home, I have a nifty greasemonkey script installed in Firefox that alerts me when a new report is there. At work, however, I'm forced to use IE. So, I figured I'd whip up a little something that would allow me to see new reported posts while browsing the rest of the site all in one browser window. I've tinkered, looked around the web, and just can't seem to get this to work. An extra set of eyes would be helpful. Here goes: ------------- index.htm ------------- <HTML><HEAD><TITLE>Keep focus</TITLE></HEAD> <FRAMESET ROWS="33%,67%" framespacing=0 border=0 frameborder="no"> <FRAME NAME="up" SRC=report.htm> <FRAME NAME="down" SRC=main.htm> </FRAMESET></HTML> ------------- report.htm ------------- <html> <head> <META HTTP-EQUIV="REFRESH" CONTENT="5; URL=http://goallineblitz.com/game/forum_reported_posts.pl"> </head> </body> </html> ------------- main.htm ------------- <html> <head> </head> <body> <a href="http://goallineblitz.com/game/home.pl">GLB</a> </body> -------------- I have a link in main.htm because it was trying to make me login in both frames. I'm a bit out of practice, so hoprfully I'm just missing something small and not looking totally foolish here. Any help appreciated. I have semi-protected my website (nothing important) by having a frameset, and a login page for the first visible page. However, if I'm somewhere in the website and I refresh the page, the browser refreshes the entire frameset and I'm back to the original login page (which is flash). Is there any way to redirect the refresh, so that once I'm in the website, only the frame with content refreshes? The frameset is *,100%, so I only want the 100% to refresh, see... Also, I'm working with XHTML for the first time, and I don't know much about it. Can anyone validate/verify this source code? Thanks! This is the entire frameset code: Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/xhtml1-frameset.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <!-- InstanceBegin template="/Templates/template2.dwt" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content= "text/html; charset=us-ascii" /> <title>xxx</title> </head> <frameset rows="*,100%"> <frame name="hidden" src="xxx.html" scrolling="no" frameborder="0" /> <frame name="visible" src="password.html" scrolling="auto" frameborder="0" /> <noframes><body /></noframes> </frameset> </html> I have two frames that I am dealing with. Its a typical navigation and main content scenario. The frames point to the files nav.php and home.php. When you hit F5 or the refresh button the site reverts to its base state of nav and home. If you use the nav panel and visit another section eg contact.php it loads the new document into the main window, but when you hit refresh or F5 it reverts itself back to its base state using home.php. I do not wish to change the actual site too much, what I was hoping for is some variable that will only reload the current document in the main content frame rather than the entire site. Thus keeping contact.php in view. Is this possible? I have searched google and this forum but the only thing I can locate is people asking for target="url", but not my issue. Any input is appreciated. Cheers LiamMac Hey. I have a frame and inside it there is a link. I want it to target an anchor called Code: <a name="anchor"></a> that is INSIDE it's own frame. I tried Code: <a href="#anchor"> but it tries to reload the entire page, and doesn't just "jump" to the anchor like it normally would. How do I do this? Thanks Hi there, I was wondering if anyone knows how to centre an image link in another frame (yes I know frames are bad but its an old website I am updating) i have <a href="picturelink" target="mainframe"> <img src="thumbnail" border="0"></a> I have tried everything from class="center" to editing the original frameset and the original page loaded into the window but I can't get the jpeg file to load up centred and so I was hoping someone might be able to help as I don't want to link all the pictures to seperate html documents with only a centred image in... Thanks for any help. Hi! I am using Dreamweaver 8 to develope my site. I have broken the page in three pieces(frames) So that the top frame shows the title, the left frame is for links that I want to show as flash movies in the right frame. I have studied the help file and I have looked on the web and I can't find an explanation that I can understand on how to do this. I believe the clickable link should be an href but I don't know how to code it. Can someone explain this to me? Thanks in Advance! Paul I wanted to put some kind of a big frame ( not with frames ) around the web content so that the sides would be clear without any content on it. I tried alot of stuff but nothing helps like: BG(nothing) l bla bla l BG(nothing) BG(nothing) l bla bla l BG(nothing) BG(nothing) l bla bla l BG(nothing) hmm I asked for help in getting a big frame over the site content and I got here help .(by the way thanks)(I dont mean frames... What I meant was to put the content in some kind of a big frame likse div...) Code: <html> <head> <style type="text/css"> html, body { background: blue; } * { margin: 0; padding: 0; border: 1; } #container { width: 885px; margin: 0px auto; /*centers #container*/ padding: 5px; background: black; } </style> </head> <body> <div id="container"> </div> </body> </html> it helped but then I found another problem : I used this code for puting a frame the i can scroll over something but now it doesn't work Code: <b style="overflow:auto; height: 640px; width=292px;" class="sotableup" align="left"> </b style> And now it doesn't work. Any ideas? i am using iframe concept in my website ,But it is not working Here is the code: <iframe name="downlineframe" height="400" width="100%" frameborder="0" src="http://nyoil1.ning.com" ></iframe> if i give http://nyoil1.com,it is working well,if i give http://nyoil1.ning.com na its not working.... hey guys, im looking for a way of cutting down the amount the visitor to my site has to download, as well and speed of loading betweens pages, ive attached an image of how to site looks so far, i have rows of links on eith side, on the top, and a row going down the center i wish to display in. If the user clicks on a link from anyside i would like only the center text to change and leave the links and header, saveing on size of the web pages on the server and the amount the user has to download i looked around and found frames would be an answer but there god dam confusing and it seems they come attached with a scroll bar where as i would like the page to simply feed downwards is there any way of keeping the outer part like a template and like i said just have the links replace the text with what ever the topic? Hey Guys - I need to make a real basic page with a frameset-like element. I need the top part of the page to remain stationary, and the bottom scroll underneath it - so that the top part of the page stays on stop of whatever the user is looking at. Should I do this with frames, or is there another method that I am unaware of? Thanks! I have welcome page which code is like this, This page will display after login page. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-Frameset.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:t="http://myfaces.apache.org/tomahawk" > <frameset rows="26%,*" border="0" frameborder="0"> <frame name="f1" src="heading.jsf" scrolling="no" noresize="noresize" /> <frameset cols="25%,*"> <frame name="f2" src="menuTree.jsf" scrolling="no" noresize="noresize" /> <frame name="f3" src="body.jsf" scrolling="auto" noresize="noresize" /> </frameset> </frameset> </html> I have one command button in body.xhtml page, after clicking that button, i want to dipaly login page again without any frame, ie. i want to display that page entire screen, but in my case its displaying only in body page. How to solve this problem, Regards, Vinutha. Ok call me slow but I am starting to move to a non-frame web site structure now and I am going to be getting away from tables except to display tabular data. Most of my sites have a header image and a menu that I want to stay constant from page-to-page. Also, I assume I want to lay-out my pages using styles and divs. Can someone point me to a resource that discusses these things. Thanks a ton in advance~ Have a look at my website: http://www.jlsindia.org/nayapath This website is of a magazine, and based on 'frames'. Now this website is divided into three frames: 1. Top-frame, is for header 2. Left-frame, is for links of articles 3. Right-frame, is body, where the text of clicked link displayed. Now I want to put a 'print button' at the top of my page (in top-frame), and with this i want to 'print the content of right frame'. Is this possible??? Hello, could someone point me to where I can read about making a table work as a frame? I have 4 images, which are pages, I would like to have them displayed in a table below without refreshing the page when I click on them. Please see the attachment! The buttons are in flash, if that is helpful. Thanks! how to solve the problem? I find the in-line frame to be a bit of a pain. What is the advantage of having two scroll bars--it seems to be confusing some people? What I like is that the in-line frame give me a neat smaller page, not using the whole screen (left to right) but when I make the in-line frame's height longer, it looks silly like on the home page and then on some of the links the scroll bar comes back. but I like when a link is clicked it goes to the in-line frame section. can this be done with using table (I know I can get the tables that size, but can I get the links to appear in the same spot if I eliminate the in-frame0? TIA Hello , I am using 2 frames in my page of html [ main page : index.php , frames : menu.php and detail.php] When I Click on menu i need to pass its value to detail.php frame.But currently it is not passing any value. In menu.php i have used form with name [addblock] Following Code (Java Script) Code: function resubmit() document.addblock.action="index.php"; document.addblock.submit(); I am little confuse how to get value from one frame to other, Is their ant problem in javascript code Thankyou Lets say I have an HTML frameset with 3 rows. When the the browser window size is adjusted and decreased, the bottom two frames begin to shrink and overlap the top frame. How can I make it so the "space" is taken from the bottom frames first? R |