Jump to content


  • Posts

  • Joined

  • Last visited

robox45's Achievements


Newbie (1/7)



  1. Everything is working perfectly! Thank you!
  2. Hello, this might be the most stupid thing a man can ask here, but i haven't used javascript and xml for couple of years and i have forgotten everything. for example, Lets say i have a XML document called "phones.xml" in this document, i have this information: <phones> <galaxy_s4> <galaxy_s4_price>300 Eur</galaxy_s4_price> <galaxy_s4_price_per_month>12 Eur</galaxy_s4_price_per_month> </galaxy_s4> <lg_g2> <lg_g2_price>300 Eur</lg_g2_price> <lg_g2_price_per_month>12 Eur</lg_g2_price_per_month> </lg_g2> <htc_one> <htc_one_price>300 Eur</htc_one_price> <htc_one_price_per_month>12 Eur</htc_one_price_per_month> </htc_one> <meizu_mx4> <meizu_mx4_price>300 Eur</meizu_mx4_price> <meizu_mx4_price_per_month>12 Eur</meizu_mx4_price_per_month> </meizu_mx4></phones> now, i want to display the price and price_per_month in my text just for the galaxy s4, but i don't want to put this information as a table, that shows all prices. i want just to print out for galaxy s4. I want to use this information in my text. now, i tried to make an HTML document, that would show the XML information, but it doesnt work. <head></head><body><script>if (window.XMLHttpRequest){ xmlhttp=new XMLHttpRequest(); }else{ xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }xmlhttp.open("GET","phones.xml",false); xmlhttp.send(); xmlDoc=xmlhttp.responseXML;var galaxy_s4 = xmlDoc.getElementsByTagName("galaxy_s4");var galaxy_s4_price = xmlDoc.getElementsByTagName("galaxy_s4_price")[0];var galaxy_s4_ppm = xmlDoc.getElementsByTagName("galaxy_s4_price_per_month")[0];document.write('for our latest, offer, the galaxy s4 costs only ');document.write(galaxy_s4_price);document.write(' and the price per month is ');document.write(galaxy_s4_ppm);</script></body> when i try to run this code, instead of showing the price, it just prints out "undefined". how can i make the code to run and show my my information?
  3. hey guys. i want to put 2 or more divs next to each other, and that to be in one big container div. but i have a problem. as you can see by the code, the container div doesn't go around the floating divs. what am i missing? <!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><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Untitled Document</title><style type="text/css">.container { width:940px; height:auto; padding:20px; background-color:#CCC; }.floating_div_1 { float:left; width:300px; height:200px; background-color:#0F0; }.floating_div_2 { float:left; width:300px; height:300px; background-color:#CC6; margin:0px 20px; }.floating_div_3 { float:left; width:300px; height:250px; background-color:#FC3; }.below_div { width:980px; height:50px; margin-top: 10px; background-color:#999; clear:both; }</style></head><body><div class="container"> <div class="floating_div_1"></div> <div class="floating_div_2"></div> <div class="floating_div_3"></div></div><div class="below_div"></div></body></html>
  4. oh, i did some digging in the TabbedPanels and i found a way how to fix this with the Z-INDEX. Thanks, this helped whit 2 my erros!
  5. i tried it, but still my menu goes under the spry tabbed panels
  6. hi guys i have a problem. i made a Drop down menu with HTML and CSS. it works good, but i have a problem. if i put something like dreamweaver's spry Tabbed Panels or other smart elements like that, my drop down menu goes UNDER that element. that means, that my drop down menu can't be seen. i made a sample of my drop down menu, so you could see the code. i would be thankfull if someone could help to my problem. <!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><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Untitled Document</title><style type="text/css">.ddm { width: 300px; overflow: visible; ;} ul { list-style:none; font-size:11px;font-style:normal; font-family: Arial;font-weight: bold; background-color:white;} ul li { float: left; position: relative; } ul a { display: table-cell; vertical-align: middle; width: auto; height: 12px; text-align: center; text-decoration: none; color:#000000; padding:0px 10px;} a:hover { color:blue; } li > ul { display: none; position: absolute; left: -1px; top: 100%; border-left: 1px solid #D0CFCB; border-bottom: 1px solid #D0CFCB; border-right: 1px solid #D0CFCB; border-top:5px solid white;} li:hover > ul { display: block; } li > ul a { height:30px; } li > ul li { padding: 0px 20px; width: 110px; height:30px; line-height:30px; } li > ul li > ul { left:100%; top:0%; }</style></head><body><nav class="ddm"> <ul> <li><a href="#">GALLERY</a> <ul> <li><a href="#">WINTER</a> <ul> <li><a href="#">FUN TIMES</a></li> <li><a href="#">MY HOLIDAY</a></li> </ul> </li> </ul> </li> </ul></nav></body></html>
  • Create New...