HTML - Meta Refresh Doesn't Work After Clicking Link
Hello,
I was able to get the "force repeated refresh" Meta code to work, which is awesome because that's what I needed , however, I am running into a snag. I tried using both JavaScript and just a typical <a href> link, but when you click on either one the Meta Refresh ceases to process. Code is below. I tried plugging the meta http-equiv line into the Body section at various places just for fun, but that doesn't fix the issue. To be honest, the easiest fix here would be to simply load the URL in question immediately when opening Index.html (it's local, stored on my HDD) instead of having a link. Is this possible? I have Googled to find the Html code required to immediately load a URL upon opening an Html file, but can't seem to locate such a command/code. ------------------------------------------------------------------------------------------------------ <html> <head> <meta http-equiv="Refresh" content="1";url=https://mylogins.edc.cingular.net/assignedQueue.cfm?cAsnNext> <script type="text/javascript"> function open_win() { window.location.href = "https://mylogins.edc.cingular.net/assignedQueue.cfm?cAsnNext"; } </script> </head> <body> <a href="https://mylogins.edc.cingular.net/assignedQueue.cfm?cAsnNext" target="_top">https://mylogins.edc.cingular.net/assignedQueue.cfm?cAsnNext</a> <input type=button value="Open Window" onclick="open_win()" /> </body> </html> ------------------------------------------------------------------------------------------------------ Similar TutorialsHi Everyone, I am new to this forum and an internet newbie. I need help from someone familiar with both html and clickbank. Those of you familiar with Clickbank no that this is an affiliate marketplace for marketers who place their products and have affiliates market their products. I have signed up as an affiliate at Clickbank and obtained my hoplink for a particular product. Here is what I am trying to accomplish. As an affiliate I am going to be marketing various products at clickbank and instead of just referring my customers directly to the merchants sales page, I want to first capture their information with my own squeeze page, after I capture their names and email addresses and they click the submit button I have that link going to a thank you page, on this thank you page I am trying to redirect them directly to the sales page after collecting their info. It is here I am having the problems. I can redirect them ok but I am not able to redirect them and put in my hoplink so that I am the one that gets paid from my customers should they order from the sales page. Here is the html code I am using: <Meta http-equiv="REFRESH" content="10; url=http://www.mydomainname.com/"> then in order to get paid my hoplink needs to be in there somewhere so I just addes it to the end of the redirect code above as follows: <meta http-equiv=REFRESH" content="10;url = http://www.mydomainname.com/">http://myclickbankID.freegoogle.hop.clickbank.net/> I tried two way just reversing the order which I type the hop link first and the redirect first. Putting the redirect first makes the redirect work but I can't get my hoplink to work with the redirect code. I need help. Anything you can do would be greatly appreciated. I probably did not explain it very well so if you need clarification just email and I will do my best. Thank You I have an XML document yourboyvic.com/albumart/now_playing.xml in this XML doc there is an element <time> the objective use this <time> element in http meta refresh code <meta http-equiv="refresh" content="30"> so that <time>+1 injected into content so that instead of content="30" content="whatever number is <time>+1 on yourboyvic.com/albumart/now_playing.xml" in short, a code substitution the end goal, instead of my page refreshing every thirty seconds, my page refresh countdown will be equivalent to when the current song ends plus one second so that the albumart showing is always the current song playing preferably in php+html kinda like this… <?php> $file = file_get_contents("albumart/now_playing.xml"); $time = ""; preg_match("/<time><!\[CDATA\[([^\]]+)\]\]><\/time>/sim", $file, $time_matches); if (isset($time_matches[1])) { $title = $time_matches[1]; } <html> <meta http-equiv="refresh" content="" . $time . ""> </html> ?> Hi: I have a link that I want to send out to my users on a Page, (this link is about 240 characters long: http://xxxxxxxxxxxxxxxxx, etc, etc) I wish my page to automatically bring up the link on the User's screen. How do I do this please ?? (btw, now I just show a 'clickable' link on the page and the user must 'click' it to activate the link. But, I wish to automate this action please) Thanks ! -Mel Smith Hey guys, Just a quick and hopefully simple question. I'm trying to check the accuracy of my hits and visits system on my website, so I wanted to get a bot which clicks on a link from the same IP every few days, hours, minutes or seconds. Basically I want a bot that clicks on a link at every specified interval, just like a real person would click on a link. However, I obviously don't want the resulting window to come up, I just want the server to think I've clicked. Are there programs that already do this? hmm is there a way to do this so i have a text link <input type=button onClick="show()" value="hide"> when the user clicks on the button it calls some javascript which shows a div (not relevant!!). is there a way so that you click on the same button again it calls some different javascript e.g. hide() ?? I know about onFocus, onBlur etc but this is not what i need. Hello, I was wondering if there was away to remove a DIV that I have when a link is clicked? Also I have a drop down list and I would also like the div to go away when one of those are selected. Thank you so much in advance, I really appreciate it! Hi all, I am a little lost here.. I am programming a page where many images load. It happens that the next time you visit the page, updated images with the same filename should load, but the older version of the image loads instead. I am guessing that it finds the image in the cache, with the same filename, and loads that one, thinking it's the image it's looking for. That being said, I have looked through so many forums to find a solution that would make it re-download fresh content of the page directly from the server, rather than from the cache. here is the code that seems fairly unanimous: <META HTTP-EQUIV="Expires" CONTENT="-1" /> <META HTTP-EQUIV="Pragma" CONTENT="no-cache" /> <META HTTP-EQUIV="Cache-Control" content="no-store" /> <META HTTP-EQUIV="Cache-control" CONTENT="no-cache" /> <META HTTP-EQUIV="Cache" CONTENT="no-cache" /> <META HTTP-EQUIV="Expires" CONTENT="thu, 01 Jan 1998 12:00:00 GMT" /> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> But still with this code in the head tag, the updated images don't get loaded from the server... Any ideas?? Thanks so much, Steph This is wierd the main content of the page doesn't shows in IE7 until i refresh the page. Can some point me as to what is reason for that. To see it first hand and look at the page source, go to: http://www.ecommerce-website-demo.co...ewTheme=Skin15 I need an way to upload a file by clicking a link instead of button(<input type="file" name="somename"/>). This feature has been newly added to GMail, to attached a file we need to click a link. Any ideas or code of how this can be done are needed. Thanks hiiii alll........ I am creating 2 html pages. when i open first page i want to display a particular form. clicking on link in form 1 we will go to 2nd html page where a image link will appear. when we click on this image link i want to dispaly 1st html page with 2nd form. how to do this please give the html code for this..... Hey everyone, I'm having trouble with this and I have no clue whatsoever how to solve it. My splash page has a css-centered background image which I would like to make it 'look' like a link, v.g. if you click anywhere on the page, the main page loads. I've seen this behavior in some lyrics pages, with a new page opening in a popup when you click anywhere in the screen, but what I need is to make the whole page behave like a giant "A HREF" tag, to load a new page in the same window. Is there anyone out there who can help me with this? Thanks in advance! Using below script after clicking the button it will reload the page and starting the application I want people go to anchor link location after clicking the submit button, for example go to the bottom of the page because the program is in the bottom of the page how to do that guys please help Code: echo '<form action="" id="frm_chat" method="post"><fieldset id="fieldset_chat"><legend>Chat</legend><div>'; echo $err_msg; echo "<label>Nick: </label>".$txt_nick->getHtml()."<br />"; echo "<label>Server: </label>".$ddl_server->getHtml()." or ".$txt_server->getHtml()."<br />"; echo "<label>Channel: </label>".$ddl_channel->getHtml()." or ".$txt_channel->getHtml()."<br />"; echo ' <input type="submit" class="btn" name="btn_chat" value="Chat Now"/></div></fieldset></form>'; http://www.colletts.co.uk/winter_dolomites.htm I have the above page that redirects users to my Winter Website - the HTML below isn't valid W3C does anyone know of a better and valid way to get this done? Cheers, Mas HTML Code: <META HTTP-EQUIV="Refresh" CONTENT="2.5;URL=http://www.colletts.co.uk/winter/winter_dolomites.html" /> Good morning... I have a bunch of links that open pdf files publish on a server. These files are overwritten with the latest data every 30 minutes... the challenges i have is to open the latest and greatest when i click on the link..... I do have a meta refresh code in the head of my page, it look like this: <head> <meta http-equiv="Cache-Control" content="no-cache"> each one of my links look like this: <a href="http://myweb.com/report/reportinpdf.pdf"; >Report name herer</a> Any ideas on making sure that i open the latest and greatest instead of whatever is in the cookies....???? (i am assuming that is why the files is not updating...) Thanks in advance... Seabass Hi, I need help I tried to check the code of my website it works perfectly well in google chrome and firefox but not in Internet explorer. i tried your suggestions but still it doesn't work. After the "marital status" and "sex" are selected, I want to assign a default value to the "Title" field. I think I am calling the function DefaultTitle incorrectly because I am not even seeing the initial alert box. Any suggestions? function DefaultTitle(strng,x) { alert("Checking Title."); var Sex=documet.PatientEntry.personal_sex.value; var MaritalStatus=strng; if (Sex=="Female" && MaritalStatus=="Married") {document.PatientEntry.personal_Title.value="Mrs."; HighlightWhite(x); Return; } if (Sex=="Male") {docment.PatientEntry.personal_Title.value="Mr."; HighlightWhite(x); Return; } if (Sex=="Female" && MaritalStatus=="Single") {document.PatientEntry.personal_Title.value="Miss"; HighlightWhite(x); Return; } if (Sex=="Female") {document.PatientEntry.personal_Title.value="Ms."; HighlightWhite(x); Return; } } Sex: <SELECT name="personal_sex" id="personal_sex" tabindex=7> <OPTION>Male</OPTION> <OPTION>Female</OPTION> </SELECT> Marital status: <SELECT name="personal_MaritalStatus" id="personal_MaritalStatus" onmouseout="DefaultTitle(this.value,this.id)" tabindex=8> <OPTION>Married</OPTION> <OPTION>Single</OPTION> <OPTION>Separated</OPTION> <OPTION>Divorced</OPTION> <OPTION>Widow(er)</OPTION> </SELECT> Title: <SELECT name=personal_Title tabindex=9> <OPTION>Mr.</OPTION> <OPTION>Mrs.</OPTION> <OPTION>Ms.</OPTION> <OPTION>Miss</OPTION> <OPTION>Dr.</OPTION> </SELECT><BR> Just out of curiosity, if a server returns a page with code 3xx and a "Location: url_1" header, but also includes a <meta http-equiv="refresh" content="0;url=url_2"/> tag, then would the browser be expected to redirect to url_1 or url_2? I have this code in my website: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>PinkuHaruKoneko</title> </head> <body text="#ffffff"> <font face="arial"> <style> <!-- A{height:1px;behavior:url(linkhilight.htc);filter:progid:dximagetransform.microsoft.gradientwipe duration=1)} A:link { text-decoration: none; color:#ffffff;} A:visited { text-decoration: none; color:#ffffff; } A:hover { text-decoration:line-through; cursor: crosshair; color:#ffffff;} body { scrollbar-arrow-color: #CEE0F6; scrollbar-darkshadow-color: #090E3C; scrollbar-track-color:#090E3C; scrollbar-face-color: #275674; scrollbar-shadow-color:#CEE0F6; scrollbar-highlight-color:#CEE0F6; scrollbar-3dlight-color: #090E3C; text-align:justify} h1 { border: 1px solid #000000; background-color:#0000ff; font-size:14px; text-align:center; } --> </style> With that code, text align justify -elements doesn't work and h1 doesn't work at IE. If I take away that thing before <html>, it works but in IE bg isn't transparent anymore. Is there anything what I can replace that doctype-thing and get that code work in Mozilla and IE? Okay I have tested the following code in all browsers and IE is the only one that it doesn't work for for .html pages. It does work for .asp pages though. I do not want to use iframes. Any suggestions? <object type="text/html" height="100%" width="100%" data="http://www.websitename.com"> </object> Okay, I received some pictures from a fashion designer to use for her Web site. I first tested the code by using a different image that I found on Google and it worked. However, when I used her image it was broken. The next option I tried was I used my photobucket account and make an HTML reference to the image. Even when I upload it to photobucket it gives me an error. So...I don't know if it's still my problem or possibly she gave me the wrong product. The images were .jpg. Here's the image code I tried: <img src="/pictures/ct1.jpg"/> If it's not the code, then what can I do to make sure she gives me pictures that work? |