HTML - Page Scroling To Top After Child Window Opens
Hi,
I have a table in which some entries open a new window with the required information. when a new window is opened, my parent page scrolls to the top, and again I have to search for the row where I had been previously, What property should I set as to avoid this? Please reply.. Similar TutorialsHi, I have a java script function like this to open one child window form main window. Its working properly. function billingMain() { top.consoleRef=window.open('#{facesContext.externa lContext.requestContextPath}/main/billing/billingMain.jsf','window1', 'width=950,height=400' +',menubar=0' +',toolbar=0' +',status=0' +',scrollbars=1' +',resizable=0' +',location=0') top.consoleRef.document.close() } But when my child window opened, i want to open another child window from previous child window. and here is the script follows for this, function UB92Main() { top.consoleRef=window.open('#{facesContext.externa lContext.requestContextPath}/main/billing/claimInformation.jsf','UB92', 'width=450,height=250' +',menubar=0' +',toolbar=0' +',status=0' +',scrollbars=1' +',resizable=0' +',location=0') top.consoleRef.document.close() } here the second child window is not opening. How to resolve this. Thanks, Vinutha. I'm struggling to figure this one out! My index.php opens about half way down the page in Safari on macs (both 3.1 and tested in v2). It appears at the proper top position in Firefox, Opera and IE5 (all on mac - don't have access to Windows until tomorrow). The site is www.betterfootball.co.uk I only noticed it after google analytics had been implemented but it might have been this way for a little while before (I use IE5 and Firefox 3 whilst building site). It's almost like a rogue anchor point has been inserted. Please, any ideas? I have main window and child window opened by child = window.open(adr, name, "height=200, width=600,resizable=1"); Both pages have <title>title</title> But whereas main widow has in title bar "title - Microsoft Internet Explorer" ,the child window has "http://<ip address> - title - Microsoft Internet Explorer" Why that difference? I want the ip address in child window to disappear, but don't know how. It does the same in IE6 and Mozilla. Thanks. I'm trying to set up html links in a parent window that update content in the same child window(rather than opening successive new windows with each click). Having the same target name in the anchor tag looks to be the easiest way to do this but it's not working in conjunction with a servlet mapping. This works: Code: <a href="test.html" TARGET="targetWindow">Click Here</a><BR> This doesn't work. This link will open a new window every time it's clicked Code: <a href="someURLmapping" TARGET="targetWindow">Click Here</a><BR> What is it about the servlet URL mapping that causes the links to not return to the child window? Is there another way to solve this issue? Thanks! Shawn hiii all, i am making 2 html pages. one is parent window and another is child window but i want, when i click on a link of child window , parent page will load but with diff frame on parent page i am able to reload the parent pag but the same form will appear so how can i load diff form when parent page is reload?? please mention code for both child and parent page and i am using html e\with java script please reply thanks Hello all. This is my first post with you guys and i hope that someone can help me. i have created a website at www.beresfordmandley.co.uk and i am having a problem with only one page that scrolls down when using IE7. This does not happen with Safari or Firefox. On the race calendar page there is unexpected movement on the left menu buttons and on the right tables and it does not look right. is there a snippet of code that would stop this happening. (I can post the HTML code. Just ask) Many thanks Marcus There is a table in the code of the picture. How do I get it? Hi all, I am wondering if anyone know how to have a link, once clicked, open a popup window WHILE also changing the page in the existing window. I know how to code them separately, but I do not know how to combine the two actions. HTML Code: <A HREF="javascript:popUp('popup.html')">link name</A> My site currently uses the above code to open popup windows. Any help would be much appreciated, David Hello everyone, I have my first pancake here Link. I tried it on various browsers and versions. When I open it from different computers for the first time it opens wrongly, the white center thing doesn't fit in the screen. After few times pressing refresh or browsing in the site and coming back I have normal look I should have. When I open the my web page from the same computer again ( lets say other day ) it opens ok. Just the first time it opens wrongly.. any clues why? I've experienced that with IE 6.something (6.2 I guess) I have <iframe src="example.html"></iframe> and I have some links in that page. I want to open them in a new tab or in the main windows that has <iframe></iframe>. how can I do that hi everyone.. i created a page that contains frames.. the problem is that the navigation frame has hyperlinks and when i click on them, the page opens inside the navigation frame!! i need it to open inside the home page.. how can i do it? Hi I was wondering if there was any way to do an html form that doesn't open up security windows once the submit button has entered? Hello; I am a graphic designer that codes pages quick and dirty entirely with tables. The one I am currently working on needs to be centered in all browser windows at all sizes. I understand that this shouldn't be hard, however everything that I have tried so far hasn't worked. My thoughts are that since it is built entirely in tables (with a java search tool) that I need to make a centered container and place the entire page inside of it. I have tried a few codes I've pulled from other forums with no luck temporary url (and I know the code is dirty) www.showcasepublishing.com/myoutandabout Thanks in advance Hello, I want to open a html page in a same browser window with fullscreen mode. I tried following code: window.open("hello.html","_self","fullscreen,scrollbars") However if I use _self, I did not get page in fullscreen mode. Any help is really appreciated. Regards, John I have a simple window.showModalDialog code to bring up a dialog box. It works find until I close the dialog box and the initiating page moves to the top. Any ideas how to stop this: The code is below: <script language="javascript"> function popUp() {var url = "ipcc.php"; window.showModalDialog( url, "Intergovernmental Panel on Climate Change", "resizable:yes; scroll:yes; status:no; dialogLeft:100px; dialogTop:100px; dialogHeight:470px; dialogWidth:640px;");} Thanks. Hello I'm new to HTML Now straight to the point : I have a web page that looks too big when screen resolution is 1024x786 , but on the other pc (screen resolution 1280x1024 ) the same page looks too small and I have white spaces around it. I want my whole page with it's elements adapt to the browser window size and fit exactly to it ( I don't want to see that scrolling thing on the right or bottom ). You could just give me the link of the function/code I have to use. Here is my code if that helps. Code: <html> <title>AiiT</title> <body background="b.png" style="background-repeat:no-repeat; background-position:center center; width: 1024px;height:768px;"> <div style="background-image: url('1.png'); width:764px; height:557px; position: absolute; top: 12%; left: 50%; margin-left: -382px; text-align:center; "><div style="background-image: url('Tr.png'); background-repeat:no-repeat; position: relative; left:30px; top:30px;"><img src="Her.png" border="0" style="margin-top:10px;"><br><br> <a href="en/"><img src="an.png" border="0"></a> <a href="lt/"><img src="li.png" border="0"></a><br><br><img src="Logo.png" border=0"></div></div> </body> </html> Help appreciated. Hi im aware how to fit the width of a page so it fills the browser window but im curious on how to set the height of the page? the width works perfectly and just the height im stuck with I have a terrible problem how to make this page resize whatever the resolution of the browser. I've already did liquid layout via percent but the height doesn't do it. They want the content to be scalable in whatever browser dimensions they want. Kindly help me. Thanks. Here is the html: Code: <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Porter House New York</title> <link rel="shortcut icon" href="images/favicon.ico" /> <link rel="stylesheet" href="css/main.css" /> <script src="js/jquery.js"></script> <script src="js/drop-down-menu.js"></script> <!--[if IE]> <script src="js/CreateHTML5Elements.js"></script> <![endif]--> <!--[if IE 6]> <script src="js/unitpngfix.js"></script> <![endif]--> </head> <body> <header> <a href="index.html"><img src="images/logo_porter_house_new_york.png" alt="Porter House New York" class="logo" title="Porter House New York" /></a> </header> <!-- end header --> <nav> <ul> <li><a href="#" class="about" title="about">about</a> <ul> <li><a href="#" title="The Restaurant">The Restaurant</a></li> <li><a href="#" title="The Chef">The Chef</a></li> <li><a href="#" title="The Owners">The Owners</a></li> </ul> </li> <li><a href="#" class="menus" title="menus">menus</a></li> <li><a href="#" class="press" title="press">press</a></li> <li><a href="#" class="photos" title="photos">photos</a></li> <li><a href="#" class="private" title="private dining">private dining</a></li> <li><a href="#" class="gift" title="gift certificates">gift certificates</a></li> <li><a href="#" class="contact" title="contact">contact</a></li> <li><a href="#" class="watch" title="contact">contact</a></li> <li><a href="#" class="reserve" title="contact">contact</a></li> </ul> </nav> <!-- end nav --> <div id="content"> <div id="contentTop"> </div> <!-- end contentTop --> <div id="side"></div> <!-- end side --> <div id="main"> </div> <!-- end main --> <div id="contentBottom"> </div> <!-- end contentBottom --> </div> <!-- end content --> <footer> <p>© Copyright 2007. Porter House New York. Powered by 2B-Unique.com</p> </footer> <!-- end footer --> </body> </html> Here is the CSS: Code: /* ---------------------------------------- */ /* CSS RESETS */ /* ---------------------------------------- */ @import url('reset.css'); body { background: #fff url(../images/bg.jpg) repeat-x center 0; background-size: 100% 100%; -o-background-size: 100% 100%; -webkit-background-size: 100% 100%; -khtml-background-size: 100% 100%; -moz-background-size: 100% 100%; } /* ---------------------------------------- */ /* HEADER */ /* ---------------------------------------- */ header { position: relative; margin: 1% auto 0; height: 20%; width: 98%; background: url(../images/header.png) no-repeat 0 0; *background: url(../images/header_ie.gif) no-repeat 0 0; background-size: 100% 100%; -o-background-size: 100% 100%; -webkit-background-size: 100% 100%; -khtml-background-size: 100% 100%; -moz-background-size: 100% 100%; } header img.logo { margin: 3% 0 2% 3%; height: 50%; width: 25%; } /* ---------------------------------------- */ /* NAV */ /* ---------------------------------------- */ nav { position: relative; margin: 0 auto; height: 28px; width: 98%; background: url(../images/nav.png) no-repeat 0 0; *background: url(../images/nav_ie.gif) no-repeat 0 0; background-size: 100% 100%; -o-background-size: 100% 100%; -webkit-background-size: 100% 100%; -khtml-background-size: 100% 100%; -moz-background-size: 100% 100%; } nav ul { margin-left: 1.1%; position: relative; } nav li { position: relative; float: left; } nav a { display: block; text-indent: -9999px; height: 25px; background: url(../images/nav_sprites.png) no-repeat 0 0; } nav a.about { background-position: 0 0; width: 73px; } nav a.about:hover { background-position: 0 -25px; } nav a.menus { background-position: -73px 0; width: 85px; } nav a.menus:hover { background-position: -73px -25px; } nav a.press { background-position: -158px 0; width: 83px; } nav a.press:hover { background-position: -158px -25px; } nav a.photos { background-position: -241px 0; width: 98px; } nav a.photos:hover { background-position: -241px -25px; } nav a.private { background-position: -339px 0; width: 145px; } nav a.private:hover { background-position: -339px -25px; } nav a.gift { background-position: -484px 0; width: 166px; } nav a.gift:hover { background-position: -484px -25px; } nav a.contact { background-position: -650px 0; width: 84px; } nav a.contact:hover { background-position: -650px -25px; } nav a.watch { background-position: -741px 0; width: 252px; } nav a.watch:hover { background-position: -741px -25px; } nav a.reserve { background-position: -993px 0; width: 121px; } nav a.reserve:hover { background-position: -993px -25px; } nav ul ul { position: absolute; left: -10px; top: 25px; z-index: 900; padding: 3px 0; background-color: #ffffeb; } nav ul ul li { float: none; width: 143px; } nav ul ul a { margin: 0 3px; padding-left: 10px; height: 16px; width: 127px; background: none; color: #71462d; font: normal 12px Tahoma; text-indent: 0; text-decoration: none; text-transform: uppercase; } nav ul ul a:hover { background: url(../images/submenu_hover.jpg) no-repeat 0 0; color: #fff; } /* ---------------------------------------- */ /* CONTENT */ /* ---------------------------------------- */ #content { position: relative; margin: 0 auto; overflow: hidden; height: 304px; width: 98%; background: url(../images/content.png) repeat-y 0 0; *background: url(../images/content_ie.gif) repeat-y 0 0; background-size: 100% 100%; -o-background-size: 100% 100%; -webkit-background-size: 100% 100%; -khtml-background-size: 100% 100%; -moz-background-size: 100% 100%; } #contentTop { position: absolute; top: 0; left: 1.05%; z-index: 100; background: url(../images/content_top.png) repeat-x 0 0; *background: none; height: 2%; width: 97.85%; } #contentBottom { position: absolute; bottom: 0; left: 1.05%; z-index: 100; background: url(../images/content_bottom.png) repeat-x 0 0; *background: none; height: 2%; width: 97.75%; } #side { position: relative; float: left; display: inline; margin-left: 1.1%; height: 304px; width: 19.62%; } #main { position: relative; float: right; display: inline; margin-right: 1.1%; min-height: 276px; width: 76.07%; padding: 28px 0 0 12px; } /* ---------------------------------------- */ /* FOOTER */ /* ---------------------------------------- */ footer { position: relative; margin: 0 auto; width: 98%; background: url(../images/footer.png) no-repeat 0 0; *background: url(../images/footer_ie.gif) no-repeat 0 0; background-size: 100% 100%; -o-background-size: 100% 100%; -webkit-background-size: 100% 100%; -khtml-background-size: 100% 100%; -moz-background-size: 100% 100%; } footer p { margin: 20px 0 0 11px; display: inline-block; text-indent: -9999px; height: 50%; width: 40%; background: url(../images/copyright.png) no-repeat 0 0; background-size: 100% 100%; -o-background-size: 100% 100%; -webkit-background-size: 100% 100%; -khtml-background-size: 100% 100%; -moz-background-size: 100% 100%; } hai, could anyone plz tell me, how to open window popup in current html page ( that means not in different window) without statusbar,locationbar,titlebar and menubar and scrollbar. Thanks®ards kelvin hello, I'm an HTML novice who designed/maintains my own site without any expertise at all. One problem I can't seem to figure out: When the browser window is sized more narrowly than the content on the page, the table sections get shoved down underneath one another. Most sites I see don't do that -- when the browser window narrows, the site content stays in place. Any insight about what my error is? You can check out the problem at www.adamgwon.com. Thanks much. |