HTML - Use Xml To Generate New Pages
Is there any way to use an xml file and create a link to a new page that has information based on a block of data in the xml file?
Similar TutorialsThis will be hard for me to explain so I will add an image: http://img75.imageshack.us/my.php?image=examplexu6.gif How do I go about loading a page within a page. For example, in the pic, if you clicked Cost it would load a page within the loading area without taking off to another location. I seen it on a site before, i remember the links were something like "/?p=cost" or something like that. And the page appeared to not navigate elsewhere, the cost page was just loaded within the page i was on. hope that makes sense, if so any examples on this? is it hard to do? messy? safe with most browsers? thanks hi there, my first post here. ok i haven't done development for awhile, and recently i'd designed a layout with adobe photoshop. was wondering what's the quickest way to create the code in html? which software is best and effecient? i usually hand code everything but i'm trying to save time. thanks a bunch!!! Is it possible to generate a form within a loop. As I want a page that will have 200 form fields so was going to use a javascript loop to generate all 200 but I can not get it to work. Is this possible? Code: <form action="rename_sensors.htm" method="post"> <table align="center" cellpadding="2"> <tr> <td><b>Sensor address</b></td><td><b>Current Name of Sensor</b></td><td><b>New Name for Sensor</b></td> </tr> <script type="text/javascript"> for(i=0;i<200;i++) { document.write("<tr>"); document.write("gfg"); document.write("<td>~address(0)~ </td>"); document.write("<td>~name(0)~</td>"); document.write("<td><input type="text" name="name[0]" maxlength="16" value="~name(0)~" size="20"></td>"); document.write("</tr>"); } </script> <tr> <td><input type="submit" value="Save"></td> </tr> </table> </form> the fields within ~and~ are got from a webserver dynamically. Many Thanks Hello. I'm a newbie here. I've been asked to design a web site for a club I'm involved with. Unfortunately they have purchased a cheap hosting package, so I have no Java/JSP, no PHP and no MySql. Pure static pages only. Sigh. I've found a nice looking template I can use - has nice drop down menus for navigation etc. It doesnt use frames. Now, since I want to navigate between half a dozen content pages, it seems that each of my pages has to contain all the common stuff - the menu, sidebars, etc. I'd kill for an <import src="..."/> tag :-) So, are there any design patterns that will allow me to achieve templating of all the menus and common code? Alternatively, are there any code-time coding tools that will generate run-time static pages based on templates? Any advice welcome. Thanks. imo. First of all, sorry, i didn't post it in english because i searched for a forum in my language . Second : I am trying to create a script, that will use the script you can see under this text and auto click a link that is generating itself randomly and changes position, color, letter order every time you want to click it again (the "fight again" link has to be clicked on order to get points by beating up the enemy. This link "fight again" is hard coded.. it even has a brother fake link that carries the same name but get's you elsewhere if you accidentally click it. green. bots2. net is the site... if anyone can help me out by enlightening me up a little, to tell me where I can start to be able to do a script that finds this link and click it repeatedly. Don't point to mouse auto-clickers since these are useless, like I said .. the link is changing color, position and link number: e.g good link : http://green.bots2.net/fight.php?ch_...r&pageid=36079 bad link : http://green.bots2.net/fight.php?ch_...r&pageid=36080 next fight: good link : http://green.bots2.net/fight.php?ch_...r&pageid=25191 bad link : http://green.bots2.net/fight.php?ch_...r&pageid=25190 Here is the site's frame source ======================================== <HTML><HEAD> <link rel="stylesheet" href="bots2.css"> </HEAD> <BODY BGCOLOR="#000000" TEXT="#00cc00" LINK="#99cc00" VLINK="#33cc00"> <CENTER> <H4>B.O.T.S. - The Battle</H4> <h4>Deus Ex Machina vs Petertjuh4</h4> </CENTER> <script> parent.header.fillInfo('Deus Ex Machina','#99aaaa',150,36494,7415,216,2109294,33568093468); </script> <HR size="1" noshade> <script> ah = new Array(); aattempts = 0; dattempts = 0; amaxhit = 0; dmaxhit = 0; amiss = 0; dmiss = 0; ablock = 0; dblock = 0; function fl(hitter, hit, hitweapon) { return parent.FightLine(hitter, hit, hitweapon); } function ShowHit(i,chid,opps,fid,nid,chlvl) { if (!ah) return; line = ah[i]; if (i<ah.length-1) { document.all('arena').innerHTML += line; document.all('endpage').scrollIntoView(true); i++; nexthit = 'ShowHit('+i+','+chid+',\''+opps+'\',\''+fid+'\',\''+nid+'\','+chlvl+')'; setTimeout(nexthit, 800); } else { if (ddamage>dmaxhp) { winner = a; } else { winner = d; } document.all('arena').innerHTML += line; if (aattempts+dattempts>0) { document.all('arena').innerHTML += parent.Report(); } document.all('arena').innerHTML += report; geel = '#' + (parseInt(Math.random()*150)+100).toString(16) + (parseInt(Math.random()*150)+100).toString(16) + (parseInt(Math.random()*150)+100).toString(16); if (parseInt(Math.random()*2)) { toright = '<font color="'+geel+'">></font>'; toleft = '<'; } else { toright = '<font color="'+geel+'">»</font>'; toleft = '«'; } fakeagain1 = '<p><font color="black">----</font><a href="fight.php?ch_id='+chid+'&opps='+opps+'&pageid='+fid+'"><span id="a1">Fight this bot again</span></a></p>'; fakeagain2 = '<p><font color="black">-</font><a href="fight.php?ch_id='+chid+'&opps='+opps+'&pageid='+fid+'"><span id="a2">Fight this ot again</span></a></p>'; fightagain1 = '<p><font color="black">---</font><a href="fight.php?ch_id='+chid+'&opps='+opps+'&pageid='+nid+'"><span id="a1">Fight this bot again</span></a>'; fightagain2 = '<p><font color="black"></font><a href="fight.php?ch_id='+chid+'&opps='+opps+'&pageid='+nid+'"><span id="a2">Fight this bot again</span></a>'; grijs = '#' + '0' + (parseInt(Math.random()*16)).toString(16) + '0' + (parseInt(Math.random()*16)).toString(16) + '0' + (parseInt(Math.random()*16)).toString(16); //geel = '#' + (parseInt(Math.random()*16)+188).toString(16) + (parseInt(Math.random()*16)+240).toString(16) + (parseInt(Math.random()*16)+86).toString(16); //groen = '#' + '0' + (parseInt(Math.random()*16)).toString(16) + (parseInt(Math.random()*16)+240).toString(16) + (parseInt(Math.random()*16)+86).toString(16); groen = geel; backlink = '<p><font color="black">-----</font><a href="fight_index.php?page='+chlvl+'&opps='+opps+'"><font color="'+groen+'"><span id="bl">Back to the fight list</span></font></a></p>'; if (parseInt(Math.random()*2)) { if (torape) { torape--; fightagain2 += ' ('+torape.toString()+' to rape limit)'; } fightagain2 += '</p>'; if (parseInt(Math.random()*2)) { fightagain = fakeagain1 + fightagain2 + backlink; } else { fightagain = fakeagain1 + backlink + fightagain2; } document.all('arena').innerHTML += fightagain; a1.style.color=grijs;a2.style.color=geel; } else { if (torape) { torape--; fightagain1 += ' ('+torape.toString()+' to rape limit)'; } fightagain1 += '</p>'; if (parseInt(Math.random()*2)) { fightagain = fightagain1 + backlink + fakeagain2; } else { fightagain = backlink + fightagain1 + fakeagain2; } document.all('arena').innerHTML += fightagain; a2.style.color=grijs;a1.style.color=geel; } a1.style.textDecoration='none';a2.style.textDecoration='none'; bl.style.textDecoration='none'; //document.all('arena').innerHTML += backlink; document.all('endpage').scrollIntoView(true); } } adamage = 0; ddamage = 0; amaxhp = 0; dmaxhp = 0; a='<font color="#99aaaa">Deus Ex Machina</font>';d='<font color="#aa11ff">Petertjuh4</font>';awr='doom maul';awl='doom maul';dwr='thunder hammer';dwl='thunder hammer';amaxhp=1250;dmaxhp=600;ah[0] = fl(d,92,dwr);ah[1] = fl(a,795,awr);ah[2] = fl(a,754,awl);torape=0;report = '<p>The battle is over. Petertjuh4 is destroyed.</p><p>The B.O.T.S. Union takes 1 kudos from Petertjuh4 and gives it to the winner, Deus Ex Machina.<br>You now have 2,109,295 kudos.</p><p>Your bot gains 11,617 experience points + 5,808 diplomacy bonus (2,202,699,269 xp to next level).</p><p>Auto-repair : No repair costs have been deducted. </p>';</script> <span id="arena" class="p"></span> <span id="endpage"></span> <script> ShowHit(0,188832,'war','94400','94399',150); //parent.ShowHit(0,188832,'war','94400','94399',150); </script> <p><font color="#cc4444"> </font></p> </BODY> </HTML> ========================================= Page info TYPE : text/html Render Mode : Quirks mode Encoding : ISO-8859-1 =========================================== THANK YOU FOR YOUR TIME! Hello, I am a newbie to HTML. I am trying to generate HTML code as a basis to an email. I wish to have a image at the top of the page (page wide 780 pixels) two lines in the sides (based on colored line image) and an image at the button. My problem is: how can I add an image to the left side and the left side of the body part and add text/tables/images etc. between them so it's length will dynamically shorten/lengthen according to the body number of lines ? Thank you for your help Hey Guys, Firstly I'm very new to using HTML and "programming" general, so I'm sorry if I come across as dumb New to the forum also and signed up as I couldn't fine help elsewhere on this problem. I'm attempting to write a simple HTML form that will eventually print to a .txt file. The basics of it is d: <input type="text" name="hnmr_shift1" /> H's: <input type="text" name="h_s1" /> Multiplicity: <input type="text" name="multiplicity1" /> J coupling:<input type="text" name="j_coupling1" /> <br /> which is repeated and repeated over and over (about 25 times) I was wondering if there's a to have the user select how many of these they would like (in a drop down box or something along those lines) and it will pop up with x amount of rows of the above boxes. i.e if the user selects 3 you would see something like d : (box) H's : (box) Multiplicity : (box) J coupling : (box) d : (box) H's : (box) Multiplicity : (box) J coupling : (box) d : (box) H's : (box) Multiplicity : (box) J coupling : (box) I've seen similar things on forms were it asks you something like "how many people...." and when you select a number it will pop up with separate boxes for each persons name and details (first name, second name phone number etc.). was thinking of using javascript or something along those lines hope this makes sense. cheers Aaron ps. I want to avoid php as this form will be running on school computers and I cbf setting up a server etc. for it to run. the idea of the form is that it can be booted easily from a USBDrive without any problems or permission issues. How do I make variable pages? EG: ../showgame?id=10 So multiple pages can begenerated from one document. If this is in the wrong section sorry, i have been thinking of adding a new page to my site and added sky sports, but how do i set up a page that opens another web page right away? I'm currently making a new layout for my site and before it will go online, I want to set all my pages on a BRB page/status (customized with my own brb logo+text etc.. Anyway I can do this? Hello everyone! This is my first thread, and I need some help. I just started developing my site hosted by godaddy.com and I am doing all my html and through dreamweaver and uploading new content through dreamweaver also via FTP. The problem I am having is i am tryingto add new pages that link off my HOME PAGE. For example: CONTACT US, ABOUT US, PICS, and so on. I have made this types of pages but I'm not sure why they are not linking right? What address should I be point the CONTACT BUTTON to? My site is www.adiktedapparel.com Any help would be great!!! THANKS! Bill C. I have a website which is now closed. I have forwarded the domain (www.chineseteaforyou.com) to a page on my other hosted website (www.e-stores-online.com/chineseteaforyou.html) to explain it is now closed. If people type in the domain name of the closed site it works as I expect, and they land on the correct page. If they type in the address of another page on the old site, they get the "Not Found" message. For example: http://www.chineseteaforyou.com/site...30/page/543219 will be forwarded to the following page which does not exist: http://www.e-stores-online.com/chine...30/page/543219 I would like to redirect any forwarded pages with www.e-stores-online.com/chineseteaforyou.html/ as the first part of the URL to www.e-stores-online.com/chineseteaforyou.html I tried to do it with a .htaccess file but get errors. Can anyone help me do this? Thanks. I test all of my pages on all of the most popular browsers. I believe that you can only have one version of IE installed per user account. I have IE6 running on one PC, and IE7 on another PC. Once IE8 becomes popular, I will test my pages on that too. Q. Can I have multiple versions of IE available on a single Windows XP PC? Do I need three PCs to run IE6-7-8? Q. How are you guys addressing this problem? Hi, I have just started to get my feet wet in web development so please don't be annoyed if this is a little basic. I have a 12 page intranet site with links on each page. As these links are the same on all pages i would like to know if there is a way to update one file and include that on all pages. At the momment i am updating the links individually. Thanks for your help. I am looking to have an area beside my nav bar that is titled "Whats New". This would be a small square beside the nav bar with a few links under it that would link to new additions of the site or current events. I want this section to be included on all 9 pages of my website, but when I change these items I dont want to have to change the links and text on all 9 pages. How can I make it so I alter just one page and it will change on all 9 to save me time? Could I use CSS to do this? If so how? Also I thought of using an iFrame. Not sure if that would work either. Please let me know of a way to do this Thanks, PizzaStick Ok. I know that there are codes for fading between pages, I used to use them ALL THE TIME when I used Piczo (blech!). My question is, do all or at least most browsers support that sort of code, and can I use it in a valid XHTML page? Or is it done with JavaScript? The only reason I'm asking is because I'm making a new site for my drum videos, and the welcome page has a really nice picture of a drum set (in black and white with a slight glow) with a white background, and if I faded to a blank page, then the homepage, I think it would look really nice. So again, is it valid XHTML, and do most browsers support it? I have a simple question here. I have about 30 pages for my website. All of them use the same default layout that I created (sidebar links, bottom links, background etc). How can I call the layout in each webpage without having to copy and paste the entire layout? The problem is that if I make a small change to the layout, I don't want to have to change it in each individual page but just the master layout page. Thanks. Hello all, First off I am an extreme novice in HTML. Actually I have a web page I promote on line that is involved with network marketing. I am not here to promote my site but I have a serious problem with accomplishing one specific HTML task that I am hoping one of you can help me out with. Here it is: 1. I want a down-line members page (His/Her link) to link to mine. 2. In there page and mine, I need to know how the code (href) can be set to automatically change the sign up link on my page (temporarily), so that the end result will be that a new prospect clicks on the sign up link on my page it will automatically take it to my down line members sign up page or their affiliate sign up page, so they will credit for the sign up of the new prospect. I know this is a simple task but I can not find an explanation anywhere on line to include on line tutors in HTML. I know it can be done because my mentor or up line has done it before and it worked. Unfortunately the man disappeared an I am unable to track him down for advise. So here I am asking the EXPERTS in the field to help me out if possible. So please folks if you can please email me if you can point me in the right direction or show me how its done. Best Regards, Bobby Morris hi guys i have 5 identical pages all same as the index except one div box in each that contains all the different content of each page. my question is how do i make a change to the index and the others update the same way?? i was thinking of somehing like frames? |