HTML - Making Sure Browser Loads New Version Of Your Site
Hi
I have an html page that contains a .swf (index.html). I'd like to make sure that browsers always load the site, and not get it from their cache. I've heard of a thing called cache busting, but there is little info on it when dealing with anything other than a Wordpress site. Does anyone know about it or have info on any other way to make sure the site automatically loads directly? I don't want to have to rely on users manually clearing their cache. Cheers Shaun Similar TutorialsHi Not sure why, but IE hangs when loading my site. Could someone please take a look at the code - I'm using SWFObject to embed Flash, and am trying to build alternate HTML content: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Backlash - Rock n Roll Duo NSW AUSTRALIA</title> <meta name="Description" content="Backlash are the NSW premier Rock n Roll duo, for corporate and private functions"> <meta name="Keywords" content="Backlash, rock n roll, rock n' roll, wedding, dance, band, duo, Tom, Vanessa, CD, live, music, reception, corporate, song, songs, party, rcok, 60's, 70's, entertainment, Australia, backlash.com, backlash.net, www.backlash.com, www.backlash.net, www.backlash.com.au, www.backlash.net.au, singer, sing, vocalist, pop, drums, guitar, keyboards, bass, private functions, show, professional party band, professional party bands, party bands, corporate party bands, corporate party band, cover band, cover bands, Mick Jagger, Ron Woods, Keith Richards, rolling stones mp3, Brookwood Lounge, Pop Beat Blues, Dance, Elvis"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <script type="text/javascript" src="swfobject.js"></script> <script type="text/javascript" src="swfaddress.js"></script> <script type="text/javascript"> var flashvars = {}; var params = {}; params.quality = "best"; params.scale = "noscale"; params.allowfullscreen = "false"; var attributes = {}; attributes.id = "backlash"; swfobject.embedSWF("backlash.swf", "myAlternativeContent", "989", "590", "10.0.0", "expressInstall.swf", flashvars, params, attributes); </script> <link href="style.css" rel="stylesheet" type="text/css"/> </head> <body> <div id="flashvertical"> <div id="flashhoz"> <div id="myAlternativeContent"> <div id="background"> <div id="menu"> <?php include ("menu.php"); ?></div> <div id="content"> <div id="about"> <?php $content = file_get_contents($_SERVER['DOCUMENT_ROOT']."/about.txt"); echo htmlspecialchars($content); ?> </div> </div> </div> </div> </div> </div> </body> </html> /////////////////////// and here's the CSS: html{height:100%} html,body {margin:0;padding:0;} body{ background:#000000; text-align:center; min-width:650px; } h1 { font: 1px Verdana, Arial, Helvetica, sans-serif; text-align:left; color: #fff; } .maintext { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color:#fff; } #flashvertical{ position:absolute; top:50%; margin-top:-295px;/* half flash height*/ left:0; width:100%; } #flashhoz { width:989px;/* flash width*/ margin-left:auto; margin-right:auto; height:590px;/* flash height*/ background:#000; } h1 {color:#fff;margin:0;padding:0} #FlashDiv { width:989px; height:590px; //position:absolute; //left:50%; //top:50%; //margin-top:-295px; //margin-left:-494px; } #background { position:absolute; width:989px; height:590px; background-image:url(images/background_html.jpg); background-position:center; background-repeat:no-repeat; } #menu { height:375px; width:110px; margin-left:92px; margin-top:289px; float:left; } #content { height:260px; width:690px; margin-right:70px; margin-top:289px; background-color:#00FF00; float:right; } #about { height:100px; width:600px; margin-left: auto; margin-right:auto; margin-top:10px; background-color:#fff; } //////////////////////// Cheers Shaun I'm having an issue regarding how my site looks locally as opposed to the uploaded version. Here is how it should look: http://www.cincitucky.com/available_worldwide.jpg Here is how it looks: http://www.cincitucky.com/ It looks fine on my local machine, online it looks busted. It seems like it would be a simple issue but I'm on day two of trying to figure this out. Any insight into this situation would be great. Hello team, I had some great help here last time so this is my first stop to ask another question What i'm trying to do is make: www.mysite.com/whatever (where 'whatever' is the string i give someone i.e 12345 or bobsmith) ...redirect to: http://www.redirectsite.com/print_de...p?pid=whatever so i can tell people to go to, for example, www.mysite.com/bicycle and it will go to http://www.redirectsite.com/print_de...sp?pid=bicycle note that i have no control over 'redirectsite' other than being able to upload my products. is this possible? i'm thinking that somehow i could make a /redirect directory with some sort of graber file where anything that queries /redirect as in www.mysite.com/redirect/bicycle automatically gets forwarded to the new site with the added string on the end of "id=". how tough it that!? tell me it's not impossible please!! thanks for you help in advance!! http://img91.imageshack.us/img91/335...idealolza9.jpg Hey anyone out there willing to help, i'd like my site to look like this but have no idea of how to do it LOL. That would be the main page, the images would be different of course, and then i would hyperlink the 'about us,' 'contact,' and 'news' to another page, but i'll worry about those later. So for now, any idea of how to do it? Hi, i just need some help finding the html to make a proxy browser. I want to make 1 like the following: w**.browser9.com w**.netunlocker.com Type in an address in the field and you can anonymously browse webpages, i would be greatfull if someone could help me achieve this. Another example is this: h**p://images.google.com/imgres?imgurl=http://files.myopera.com/Idonotlikebroccoli/albums/3758/thumbs/noob.jpg_thumb.jpg&imgrefurl=http://forums.xbox.com/2/5985406/ShowPost.aspx&h=240&w=320&sz=18&hl=en&start=1&tbnid=OC6cVqwzswW4TM:&tbnh=89&tbnw=118&prev=/images%3Fq%3Dnoob%26svnum%3D10%26hl%3Den%26sa%3DN Google has a sort of browser at the top of the page so on any log files it would look like you visited google but your actually visitin another page through google. Will be very greatfull for some help. Regards, Sami. Hi guys, I know how to make a mobile site. I know how to make a desktop site. However, how do i setup a desktop site to automatically redirect to a sub folder if viewed on a mobile. This is a great example but looking at the source code i just cant work it out: http://bluebells-restaurant.co.uk/ and http://bluebells-restaurant.co.uk/m Thank in advance guys. Hello, Making a site and i would like to know how to make a search engine on my site... the thing is i don't know where to start.. thanks ____________ conservatories Fruit Machines Is it possible to have some error text appear if a user is browsing your website with a certain browser using html/css or maybe java? An example being: If - The website is being browsed using Safari Then - SHOW error text = "This link won't work with the Safari browser." Else - DO NOT SHOW error text is that sort of thing viable or just a pipe dream at current? Thanks in advance. Regards, Stoney Hi there, I have put a youtube video source in dreamweaver, and was wondering if anyone could tell me how i make it so the browser window the video is in clings to the video, i.e the frame is the exact size of the video. Also, however this is done, would it be the same code with images? Thanks in advance, Rob Here is the code <body> <td><a href="<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/NIktYSst2mw"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/NIktYSst2mw" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object> </body> </html> I have a horizontal bar image that has been sliced so it is an iframe. The iframe's source is links.htm (as the horizontal bar is a link bar) so that I can change my site's main links if I have to. Anyways, the problem is this, my link bar looks perfect in firefox but as soon as I view the site in explorer the text doesn't fit in the iframe and there are arrows as if you have to scroll down to view the text. Here is an image of what I mean: Let me know if I should add information. Hello everyone, there is a problem with this site I've been designing, If i resize the browser in FF or IE it causes all the tables and images to mess up. The site is http://www.shortdoggkennels.com/. The site isn't finished yet, btw. I have googled this and came up with a few things, I'm pretty sure it has something to do with the minwidth command, but I couldn't find any good tutorials. It would be greatly appreciated if any of you could help in any way. Thanks alot! This site: http://gmjones.org/ Displays well, apart from the black background!, in Opera and FireFox browsers but not in Microsoft's browser. The code for the search box is <li><form action="http://www.google.com/search" name="searchbox" method="get" style="padding-top: 1px;"> <input name="hl" value="en" type="hidden"> <input name="sitesearch" value="gmjones.org" type="hidden"> <input maxlength="205" size="38" name="q" value=""> <input value="SEARCH THIS SITE" name="" style="font-size: 80%; margin-left:19px;" type="submit"> </form></li> How do I get the search box to appear within the rest of the red strip, and in red? Thanks. EDIT: DON'T KNOW WHAT I DID BUT IT'S OK NOW! I've made a site (http://sketch.uk.com) that hides and displays divs according to the browser size. However, ideally I'd like to prevent the hidden divs loading their content until they are visible. A good example is the index page of the above link. There is an iframe for the flash animation that changes to a static picture when you resize to a smaller window. If you were to open the site on the smaller window (such as a tablet or mobile for example) it would be better that the iframe were never loaded at all. Any suggestions? Hi there, my pages are loading wide and then jumpimg down to the size the table is set to be. Does anyone know how i can specify the width of content either through css or the div tag? Thanks in advance! I'm trying to set up an affiliate popup for my buddies and each time someone clicks a certain link, there will be a popup, but each time you click the link the content on the popup is different. I was wondering if this is possible. Hello! I hope that someone in this forum can help me solve the mystery that has been giving me a headache for two days now. I have a page that has a couple of iframes in it. when I view the page in firefox they show perfectly fine, however when viewed with IE one loads but the second one only shows a blank white page. They reside in a table, and are in a single row of that table. the code looks like this: <tr><td width="535" height="285" colspan="6" bgcolor="#FFFFFF"> <iframe frameborder="0" scrolling="auto" width="535" height="285" src="/members/updates.html"></iframe></td> <td width="5" height="285" bgcolor="#FFFFFF"> <img src="/members/graphics/spacer.gif" width="5" height="285" border="0"></td> <td colspan="2" background="/members/graphics/newsbg.jpg" width="240" height="285" alt="" border="0"><iframe frameborder="0" scrolling="auto" width="240" height="285" src="/members/news.html"></iframe></td> </tr> Is there some reaso that the second one isn't showing? I have two different pages that are designed like this. They look fine in firefox 1.5. IE gives me nothing. Hi, How in HTML can you force a webpage to scroll down to a certain point of the page when the page loads up. Is this possible in HTML. Once it does scroll down to the certain point, I still want to be able to scroll up and down AFTER it has loaded up...is this possible. Can someone please urgently help. Thanks hey guys...i've seen the page of sourceforge where, when the page loads...the download of the file generates automatically.... i want the help related to implement that.... can anyone tell me how to do that.... thanks in advance... I don't know if this belongs here, because I'm not sure what I would do to do this, but here's my question: Is there any way I can make one webpage load if the IP the user is browsing from is in a certain range, and an alternate page if the user's IP is not part of that range? If so, how do I do this (this method is for a false block page that only appears from certain IPs to discourage folks from further attempting finding what is blocked. Sorta like a puzzleish thing instead of a traditional password - not to be secure, just for the fun of it.) Thank you in advance! Need help determining why the below code will load on firefox but not internet explorer. fixed |