HTML - New Window Doesn't Load Automatically
I have a php program that sets the OnLoad="" of a page to run a javascript function to open another php program in a new window.
function displayPDF(filename) { window.open("http://localhost/displaypdf.php?filename="+filename,"_blank"); return false; } <body Onload="displayPDF('pdfile.pdf');"> when the page loads, a new window is opened, but the pdf is not displayed. If I click on the refresh button, everything displays fine. the pop-up blocker is off, so it's not being blocked. I'm using a php program to display the pdf because the pdf file is not in the tree structure of the website. Any way to get that new window to load automatically?? I'm using IE 9 Similar TutorialsI'm a complete noob on coding so can anyone help me? I want a site to open in a new window as soon as someone visits without them needing to click on a link. Any help is very appreciated because im a total noob besides the basic commands I have a very strange intermittent problem that I can not figure out. Sometimes, one image on my page does not load. When it does not load the image in the <div> next to it is in its place, and next to that image there is a blank spot the size of the image that did not load. The part that really confuses me is that when I view that pages source the <img> tag is there with the name of the image. The name of the image is rather long, about 25 characters long. The first thing I am wondering is if a long file name might prevent the image from loading. I doubt it... but, I don't know what else to consider. Here is what that section of code looks like: <div class="noBorder"> <a href = "http://www.luckygamez.com/"><img src="img/Lucky_Top_312_90_Bubble.jpg"width="312" height="90" vspace="0px"/></a> </div> Thanks, Matt In mininova.org, when we scroll down the page, ad on the right side is automatically adjusted. How to do achieve this using html? I want to implement the same in my site? Hey guys I'm new here, as I found this forum on google. I've run across a little problem or big problem so to speak. I have coded my website and it will load in FF, but not Safari or IE. It had an php function wrong the other day, but I have since fixed that and now I just a white page. Here's a link to the site(don't mind the simple, crappy layout) http://s2roots.com/random/done/ Please any help would be great, this is a project due by Wed. 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 Here is the case. I have an HTML page that opens a pop-up. Within the popup I need upon click to open a new window. The code is as it should be according to all references: <a href="some url" target="_blank">text</a> Everything is ok with IE6 and IE7 - a new window is being opened. What happens in Firefox is very strange - tabs are shown and the currently opened popup becomes one of the tabs and the new window opens in a new tab of the pop-up window instead in a new normal window. Did anybody encounter the same problem? Any solutions? Hi all, I have two html file (first.html and second.html) i called the first.html from batch Command file, then the batch file calls the second.html file. what i want is that while loading the second.html it will close the first.html using script. If its a parent then i can use top.close() or parent.close() but its not a parent window. Here no parent file. please help me to do this. Thanks Jay I know this is something simple, but I can't remember how its done. But how can I have a form go to the bottom of a page? I'm making a chat, and everything works fine. Except whenever you submit something it goes back to the top of the page. So how do I force it to the bottom? How can I automatically add the same top and bottom to all my pages ? Should I use an authoring tall such as Dreamweaver (using templates) ? thanks <a href="javascript: history.go(-1)">Back</a> this does - on click go back to previous page right.. can you tell me equivalen code to go back automatically.. i.e. with a possible time delay thank you I was wondering if it was possible to have photos on a page, automatically change to a different photo, say every 5 seconds, to add a bit of variety to a page... but I have no idea where to start. Can anyone help? After a user uploads a file he is automatically logged-out and re-directed to "destination" web page. Then the user can only select the Home link and re-directs himself to the home page. What code can I add to the "destination" web page (code below) that will automatically (in the background) move the user automatically from the "destination" page to the Home Page? (if you suggest I re-direct straight from the upload to Home Page, I'd rather go to destination page and then to home page) Thank you. Also, I tried this at the end of the page, but it didn't work: Code: header("Location: http://www.somewebsite.com/home/index.php"); exit; </table></html> Here's the full page code: Code: <html> <head> <title></title> </head> <link href="custom.css" rel="stylesheet" type="text/css"> </head> <body> <table width="770" border="0" cellpadding="0" cellspacing="0" id="maintable" align="center"> <td><img src="images/greyline.gif" alt="" width="174" height="0"></td> <td><img src="images/white.gif" alt="" width="596" height="0"></td> <link href="../style.css" rel="stylesheet" type="text/css" /><style type="text/css"></style> <tr> <td width="174" align="left" valign="top" bgcolor="#A30100"> <form method="POST" action="index.php"> <input class='field' type='hidden' name='command' value='account'> <input class='field' type='hidden' name='param' value='login'> <br> <img src="images/bullet.gif" alt="" width="10" height="10"><a href="/home/index.php"><font color="#DDCEA2"><font face="Arial" size="2">Home</a></font><br> <td width="420" valign="top" bgcolor:"#000000"> [main_content]</td> </table> <td width="174" valign="top" bgcolor="#FFFFFF" align="right"> </tr></table> </table> </html> Im not sure if this an html, php, or javascript question but here goes. I am trying to set up a place at my sight where I can have a content page from a certain link update automatically. For example, I want to create a 30 day journal link where each day a new journal page would come up. To my understanding I know I would have create a folder that would have 30 separate html pages. But my question is how can I set up the site that each page would automatically update according to day and time. Let's say that at 12:00am midnight a new html page with new content would be available for the reader. I don't have a lot of time to manually update the link with new content, so I want the site to do it on its own each day. Am I making any sense? I just need to know how I can have content automatically update each day without my needed to go and do it manually every day. Any help would be appreciated....thx so much. When I put in my code, it works just fine on my Mac in Safari or Firefox. However, when I test it on a PC in Explorer 7 or 8 it starts playing automatically. This is what my code looks like: Code: <audio controls="controls"> <source src="/media/GOAL.wav" type="audio/wav" autostart="false"/> <embed height="100px" width="200px" src="/media/GOAL.wav" /> </audio> The "autostart" code I put in apparently is wrong. Is there a way to fix this so it does not autostart in Explorer and any other browers? Thx. Hello, I have about 25-30 pages on my site. It has a link navigation menu and a sidebar on the left with newsletter opt in, products for sale, etc... I was wondering if there was a way to change/ edit the contents of the sidebar on EVERY PAGE without having to manually go in and change the updated HTML code on every single page. Is there a script that i can use to make this happen that I can just edit the sidebar and it will "update" the sidebar on all 30 pages accordingly?? Rather than manually doing this 30 times for every page my website is http://www.optimumtennis.net thanks in advance Evening all, I'm looking for some simply coding to tell an image to resize to fit into a frame that is defined in the CSS layout. The image size needs to be reduced to 630x402, the original size is much greater. <SCRIPT LANGUAGE="JavaScript"> var theImages = new Array() theImages[0] = 'images/main_img.jpg' theImages[1] = 'images/main_img2.jpg' theImages[2] = 'images/main_img3.jpg' theImages[2] = 'images/main_img4.jpg' var j = 0 var p = theImages.length; var preBuffer = new Array() for (i = 0; i < p; i++){ preBuffer[i] = new Image() preBuffer[i].src = theImages[i] } var whichImage = Math.round(Math.random()*(p-1)); function showImage(){ document.write('<img src="'+theImages[whichImage]+'">'); } </script> <div id="main_img"><SCRIPT LANGUAGE="JavaScript">showImage();</script></div> I need someway of implementing the size change into the coding somewhere. Thank you for any help in advance! I have an HTML form in .asp page. whenever I save the .asp page the closing tag ie. </form> is automatically added after the opening tag ie. <form> as give below. HTML Code: <form name="ApplicationForm" class="appnitro" id="form_98697" method="post" action="CandInsertFormProcess.asp" onsubmit="return Validate()"> </form> <div class="form_description"> <p><img border="0" src="images/logo2.gif"></p> </div> <ul > I have used this form for over one year but the problem came up just after I formatted my PC and reinstalled Vista Service Pack 2. I wonder is there any problem with OS or something else. Please guide me any guy... Thanks in advance Riaz Hi, I'm building a website for a Rock Band. They have a FORTHCOMING GIGS page, and a GIG HISTORY page. Can anyone tell me how, when the date changes, the information is deleted from the FORTHCOMING GIGS page, and then appears on the GIG HISTORY page. I know that this can be done automatically, I just don't know how. I think it might be a php script. Thanks I have a site where people are uploading pictures to an "uploads" directory. I have a page where I would like to display the photographs that people upload without me having to code in each individual photo as it is uploaded. So, is there a way to get my page to automatically display all the photos that are in the uploads directory? Hello all, I have recently set up a website for my gaming servers. http://www.accurategameserver.110mb.com As you can see on my site, it has all the recent game changes etc. I find it really anoying and time consuming to have to keep flicking back and forth to change each section data and its usually only like one small change. Any way that I can change it so that it automatically updates to a set image/text on a seperate page? Last question is, how do ou make a registration form on your website without mysql and send out automatic emails. Thanks all in advance. Cheers Don't forget to register to my website for gaming goodness |