HTML - Loading External Vars
Hey guys!!
I'm trying to understand how to start a dynamic website. I am an advanced actionscripter but have only just started PHP. I have spent the last week trying to understand how to use mysql but I just dont get it!! Im just wondering if I can use PHP to load and edit external variables, stored as txt files, and display them in HTML. Obviously im not looking for someone to tell me step by step!! I would just like a nudge in the right direction, maybe a good site or tutorial. Cheers guys!! Similar TutorialsHi there, I've got an example xml page that I'm trying to separate into tidier pices (eg separate files for stylesheets, xsl, xml etc). However I don't know how to separate the xml file? Normally in html it's just something like with stylesheets/javascript etc: <script>script here</script> turns into <script src="external.js"></script> But that doesn't work with xml it appears, so can anyone tell me how I can remove the bit in <xml> ... </xml> to an external file and get it loading from that external file...? I am wondering if there is a way to make a link on one page load a page into the frame or iframe on another page. For example I have pages A.html, B.html and C.html. B has an iframe in it, and I want to load C into that iframe, using a link on page A. Does anyone know if that is possible with html? Thanks, Marcus Hello all. I am stumped on finding an answer to this online and hope someone might have an answer. I have a string( a link with some variables added) that I want to use on a button. I can find examples of using a form with method="GET", but that is not how I need to do this, I don't want to have to see a populated form to inlclude the values into the GET string. I also have an example of using an image as the button that works, but I don't want to have to use an image. Can someone suggest a simple way to create an html button that will pass all the variables to the new file? Also, there is one case where I need to add some varaiables to the string by using a form with 3 text input areas. Is there a way to create the complete string, but allow the submit button to "add" the 3 text input values to the string? As it is now, I have to create a form with all of the values included in the form, not just the 3 that are user input fields. Here is an example of the string: Quote: <form action="http://webserver.com/file.php?SERVER=someserver.db.123456.someserver.com &A=1&B=2&C=3&D=4" method="GET"> <input type="submit" style="font-face: 'Comic Sans MS'; font-size:24px; color: teal; background-color: #FFFFC0; border: 3pt ridge lightgrey" value=" SUBMIT "> Thanks for any suggestions. Hi, I want to load a window with loading image on a button click. The new window is having an other content so before loading the actual content i want to disapear the loading image from the new window. I tried with html like <html> <img src=".." /> --------------------- Actual content " display:none " ----------------------- <script> actual contentid.display:block; img.display:none; </script> </html> But in this method am seing the image after some time lanching the window. i want to c the image right after launcing the window till my actual content loads. can anybody suggest something for this,..... http://www.heresmary.com I just finished uploading my site, and I noticed that when I click on a link the page loads then loads again a split second after. Does this happen to anyone else? If so can anyone give me any advice about it? Hi folks. I suspect this a total noob type question but I can't find anything in DW help or by searching so here goes. I have a page with frames. In one of the frames I want an external URL to be displayed rather than content from the mother site, if that makes any sense. I don't mean asa a link, I mean the actual content to be displayed. How do I do that? Something like... TopFrame = ./top.html LeftFrame = ./left.html BottomFrame = someother.domain/fred.html And they all get shown when the page is loaded. Ta muchly for your help! Simon. Here's a newbee question and you are probably gonna laught, but there it is: I have two pages saved in the same directory. One is index.html and the other trial.html. They are linked together. Both load the general.css file correctly when I double click on them from the directory they are saved. But when I go from one to another clicking on the link only the content loads and no css rules are applied. What am I doing wrong? How should I code for the css rules to load? Any help will be immensely appreciated Is it possible to log the amount of times an external link has been clicked on your site? I have managed to get an external style sheet to work on 7 of my 8 pages. I cannot figure out why it will not work on the 8th page. The code was copied and then modified to fit the new page so there should be no reason it shouldn't work. http://ironhillsclan.com the forum page (rules.html) is the only on that doesn't work. Any ideas? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Dagorhir | Iron Hills Clan: Forum Rules</title> <link rel="stylesheet" type="text/css" href="style.css"/> <meta name="keywords" content="iron,hills,dagorhir,larp,sword,fighting,clan,ragnarok,battle,forum,rules"/> <meta name="description" content="These are the rules for our fourm, please abide by them for the sake of all."/> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta http-equiv="Content-Language" content="EN-GB"> <script type="text/javascript"> function show_confirm() { var r=confirm("By choosing yes you agree that you have read, understand, and will abide by the terms of use."); if (r==true) { location.href = "phpBB3/index.php" } else { location.href = "index.html" } } </script> </head> <body> ... </body> </html> Could anyone please tell me the code to call an external html file? I need to refresh my memories! This is sort of both HTML and CSS, but I'll post it here for now. My question is: In CSS, I type the following: td.tablehead { background-image:---------; .........; .........; } Now, I will be using the "tablehead" class around 20 times on a webpage, so will the background image stated above have to load 20 TIMES, or just once, since the same image is being used? Please respond ASAP. Thanks Had an idea for a web page I've been working on, but not sure how to do it. The page is divided into three frame columns. Left, skinny frame shows a file with all my buttons. Clicking on any of those buttons loads a file into the large center frame, displaying a large picture. What I'd like to do is to make that button simultaneously load a second file into the frame on the right, showing text describing the image in the center. Unfortunately I don't know how to make my button do two things instead of just one. Can HTML do that, or do I need scripting for stuff like that? Hi there, i am very very new to this website building thing. I am starting a website for my new business, it was all going well until i uploaded the website, and when i went to look at it, at the very bottom of the page it said i need to update my flash. I did and it is still saying that. I have tried from 10 different computers and still have the same problem. Am i doing something wrong with the files or something? Please help. I am also using A4Desk Website builder. here is the web address: http://uniqueplanners.netne.net/ Thanks for your time. Im doing a website and have some videos up. I want to be able to have pictures of all the available videos and when the user clicks one of them I want that video to load right next to all the pictures. I remember Google videos had something like this, when you clicked the video you wanted it loaded the video in that page without getting rid of the pictures of all the videos, but they don't have that option anymore. This is the website im doing. http://eyeamchito.fileave.com/videos.html Thanks in advance if I got you confused let me know. Hey all, I'm working on a site and have reused some code that's worked for me in the past, but for some reason is not working now. The site is www.fluidholdings.com and the problem is that I have an iframe in the middle of the page for content, which should load when the domain is visited. For some odd reason, it will not load. It loads if you click the "home" or the logo at the top left, but will not load if you go to the root url. Any ideas? I've been beating my head against the wall for about an hour now and can't seem to figure it out. Thanks in advance! My index.html file is like this (www.omegaintertrade.ro) Quote: <html> <head> <title>Omega Intertrade Test Site</title> <link rel='stylesheet' rev='stylesheet' href='global.css'type='text/css' media='screen' charset='utf-8' /> </head> <body> <div id='wrapper'> <div id='wrapper2'> <div id='header'><img src="logo.jpg" height = 120 border="0" hspace="25" > </div> <div id='leftcolumn'> <ul> <li><a href="index.html">Home</a></li> <li><a href="mb.htm">About Me</a></li> <li><a href="mb.htm">Products </a></li> <li><a href="mb.htm">Contact</a></li> </ul> </div> <div id='rightcolumn'><div class= "bheader">This column is intentionally blank!</div> </div> <div id='bodytext'> <div class= "bheader">Home</div> Main text area <br> stay with omega to see the further developments</div> <div id='footer'>Footer</div> </div> </div> <body> </html> As you may see it is consist of header footer and 3 columns in the middle. While visitors navigate through menus only bodytext content will change. For example after registering the site, a small message will appear like 'thank you for registering' on bodytext. How should i place that message in the page(on "bodycontent")? Should i create another html document exact like index.html except changing the content of the "bodycontent" section. This idiot solution comes to my mind Is there another short and easy solution? Go to: http://jmillerteam.com/complete2.html So my client says that sometimes when he loads this page the pics on it aren't loading. He even sent me a screenshot. I have no clue why most of the time they load and sometimes they don't. I can't reproduce the problem. If anyone goes to the page do the pics not load (the first time) for you? I've noticed that on my site, k0shy.com, the Div holding all the main text loads way slower than the text itself. To see what I'm talking about, try going to my site and refreshing the page, the white box should expand to fit the text after the text loads (at least in my browser, Firefox 3.0b5). Is there anyway to fix this? I'm pretty new to all of this and need some help trying to load a swf file in a container. What I have is a thumbnail gallery where I have thumbnails on the right side of the page and when you click on the thumbnail it pops on the left side of the page in a container. So what I want to do is keep the same format so you can click on the thumbnail then the swf file appears instead of an exploded image. This is what I have. Also I appreciate any and all help, thank you. <style type="text/css"> img { border: 0px } #container { text-align: center; border: 0px; margin: 0 auto; padding: 0px } #leftcol img { } #rightcol img { } </style> <td width="80" height="421"> </td> <td width="673"><div align="center"><img src="images/AF.jpg" name="ImageOnly" align="absmiddle" /></div> </div></td> <td width="71"> </td> <td width="318" valign="middle"><div id="leftcol"> <div class="root" id="root0"> <div class="scrollContainer" id="scroll0Container"> <div class="scrollContent" id="scroll0Content"> <p> <a href="#" onclick="ImageOnly.src='images/Asylum_5.jpg'"><img src="images/Asylum_5_thumbnail.jpg" /></a> <a href="#" onclick="ImageOnly.src='images/Asylum_1.jpg'"><img src="images/Asylum_1_thumbnail.jpg" /></a> <a href="#" onclick="ImageOnly.src='images/Asylum_2.jpg'"> <img src="images/Asylum_2_thumbnail.jpg" /></a> <a href="#" onclick="ImageOnly.src='images/Asylum_3.jpg'"><img src="images/Asylum_3_thumbnail.jpg" /></a> </p> <p> </p> <p> <a href="#" onclick="ImageOnly.src='images/kerryn_5.jpg'"><img src="images/kerryn_5_thumbnail.jpg" /></a> <a href="#" onclick="ImageOnly.src='images/kerryn_6.jpg'"><img src="images/kerryn_6_thumbnail.jpg" /></a> <a href="#" onclick="ImageOnly.src='images/kerryn_7.jpg'"> <img src="images/kerryn_7_thumbnail.jpg" /></a> <a href="#" onclick="ImageOnly.src='images/kerryn_8.jpg'"><img src="images/kerryn_8_thumbnail.jpg" /></a> <a href="#" onclick="ImageOnly.src='images/kerryn_9.jpg'"><img src="images/kerryn_9_thumbnail.jpg" /></a> <a href="#" onclick="ImageOnly.src='images/kerryn_9.jpg'"><img src="images/kerryn_movie_thumbnail_2.jpg" /></a> (this is where I want to add it) </p> <p> </p> <p> <a href="#" onclick="ImageOnly.src='images/f_h_5.jpg'"><img src="images/f_h_5_thumbnail.jpg" /></a> <a href="#" onclick="ImageOnly.src='images/f_h_6.jpg'"><img src="images/f_h_6_thumbnail.jpg" /></a> <a href="#" onclick="ImageOnly.src='images/f_h_7.jpg'"><img src="images/f_h_7_thumbnail.jpg" /></a> <a href="#" onclick="ImageOnly.src='images/f_h_8.jpg'"><img src="images/f_h_8_thumbnail.jpg" /></a> </p> <p> </p> <p> <a href="#" onclick="ImageOnly.src='images/football_1.jpeg'"><img src="images/football_1_thumbnail.jpg" /></a> <a href="#" onclick="ImageOnly.src='images/football_2.jpeg'"><img src="images/football_2_thumbnail.jpg" /></a> <a href="#" onclick="ImageOnly.src='images/football_3.jpeg'"><img src="images/football_3_thumbnail.jpg" /></a> <a href="#" onclick="ImageOnly.src='images/football_4.jpeg'"><img src="images/football_4_thumbnail.jpg" /></a> </p> <p> </p> </div> </div> </div> </div> I hope I'm posting in the right section. Again thank you for any help. Okay, so here's my site, a Duke3D map review site: http://msdn.planetduke.gamespy.com/indexmain.shtml As you can see, it has frames (ooh, the horror!). The problem I have (or have had for a long time but have been too lazy to do anything about it) is that at times I'd like to post links to specific map reviews but linking to separate shtml files means that you won't get the top and left frames. So, is there some code I can write in, for example, this page so that whenever you access that subpage, it loads the frames around it as well? |