Jump to content

Tech boy

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Tech boy's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I have created a web page that has been split into a left and right pane with a footer. This layout is fine for what I want to do. My problem is the left hand pane has the bbc news 24 embeded into. I have used div tags and specified their diemensions using %'s to try and handle different resoultions and screen sizes. The embed image doesnt say for sure what it's width and height values are in but I believe pixel's. Is it possible to change the embeded image size for different screen sizes/resolutions? thanks for any advice anyone can give. Tech boy
  2. Hi Sunfigther removed the mark up and included your change and it all works, thanks for the help!! Tech boy
  3. Hi just tried the different line of code, I encountered the same problem as before, only works on the first button click. The mark up is just left over from a previous road I was trying.
  4. Sorry I'll try again with the tags <html> <link rel="stylesheet" type="text/css" href="main.css" /> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <title>BBC Live Streams</title> <script type="text/javascript" src="http://www.bbc.co.uk/emp/swfobject.js"></script> <script type="text/javascript" src="http://www.bbc.co.uk/emp/embed.js"></script> <!-- please do not include any scripts below this line in public bbc.co.uk pages. --> <link type="text/css" rel="stylesheet" href="SyntaxHighlighter.css" /> <link href="style.css" rel="stylesheet" type="text/css" media="all" /> <script type="text/javascript" src="http://www.bbc.co.uk/cs/jst/mod/1/jst_core.v1.2.js"></script> <script type="text/javascript" src="http://www.bbc.co.uk/emp/simulcast/shCore.js"></script> <script type="text/javascript" src="http://www.bbc.co.uk/emp/simulcast/shBrushJScript.js"></script> <script type="text/javascript" src="http://www.bbc.co.uk/emp/simulcast/prototype.js"></script> <script type="text/javascript" src="http://www.bbc.co.uk/emp/simulcast/scriptaculous.js?load=effects"></script> <!--this is the AJAX Script --> <script type="text/javascript"> function loadXMLDoc() { var xmlhttp; if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 ) { document.getElementById("PHPVal").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","GetLineValue.php?q="+document.getElementById('PHPVal').value,true); xmlhttp.send(); } </script> </head> <div id="container"> <div id="leftPanel"> <div id="emp1" class="player" style="float:left"> <p>In order to see this content you need to have both <a href="http://www.bbc.co.uk/webwise/askbruce/articles/browse/java_1.shtml" title="BBC Webwise article about enabling javascript">Javascript</a> enabled and <a href="http://www.bbc.co.uk/webwise/askbruce/articles/download/howdoidownloadflashplayer_1.shtml" title="BBC Webwise article about downloading">Flash</a> installed. Visit <a href="http://www.bbc.co.uk/webwise/">BBC Webwise</a> for full instructions</p> </div> <script type="text/javascript"> dp.SyntaxHighlighter.HighlightAll('onceCode'); var width= 793; var height= 650; //var width= 640; //var height= 395; var playlist; var config; var revision; function reload(url) { var emp = new embeddedMedia.Player(); emp.setWidth(width); emp.setHeight(height); emp.setDomId("emp1"); emp.set("config_settings_autoPlay","true"); playlist = "http://www.bbc.co.uk/emp/simulcast/"+url+".xml"; emp.setPlaylist(playlist); config = "http://www.bbc.co.uk/emp/simulcast/config_"+url+".xml"; emp.setConfig(config); emp.write(); updateEmbed(); } function updateEmbed() { $('codeWrap').update('<pre name="code" class="js:nogutter" id="embedCode"></pre>'); $('embedCode').update("var emp = new embeddedMedia.Player();"+"\n"+ "emp.setWidth('"+width+"');"+"\n"+ "emp.setHeight('"+height+"');"+"\n"+ "emp.setPlaylist('"+playlist+"');"+"\n"+ "emp.setConfig('"+config+"');"+"\n"+ "emp.write();"); dp.SyntaxHighlighter.HighlightAll('code'); } reload("bbc_news24"); </script> </div> <div id="rightPanel"> <div id="PHPVal"></div> <b></b> <button type="button" onclick="loadXMLDoc()">Change Content</button> </div> </div> <div id="tickerTape"></div> </html> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title></title> </head> <body> <?php // Show all information, defaults to INFO_ALL //phpinfo(); //Connect to mysql and connect to the database test $q=$_GET["q"]; $q = $q + 1; echo $q; //function RetrieveCount($RealLine) //{ //$con = mysql_connect("localhost","root",""); //if (!$con) //{ //die('could not connect:'. mysql_error()); //} //mysql_select_db("test",$con); //$_line = $RealLine; //$result = mysql_query("SELECT count(`SCAN_ASSEMBLED`) as outstanding FROM `table 1` WHERE (`REAL_LINE` = '$_line' ) and (scan_assembled = 1) and (SCAN_ASSEMBLED_DATE = curdate())"); //while ($row = mysql_fetch_array($result)) //{ //unedit above and allow $row to equal database value //$row = 99; //return ($row); //close the database connection // mysql_close($con); //} ?> </body> </html>
  5. Hi here is the code index html first and then GetLineValue.php, is this format ok or should it be posted differently? thanks <html> <link rel="stylesheet" type="text/css" href="main.css" /> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <title>BBC Live Streams</title> <script type="text/javascript" src="http://www.bbc.co.uk/emp/swfobject.js"></script> <script type="text/javascript" src="http://www.bbc.co.uk/emp/embed.js"></script> <!-- please do not include any scripts below this line in public bbc.co.uk pages. --> <link type="text/css" rel="stylesheet" href="SyntaxHighlighter.css" /> <link href="style.css" rel="stylesheet" type="text/css" media="all" /> <script type="text/javascript" src="http://www.bbc.co.uk/cs/jst/mod/1/jst_core.v1.2.js"></script> <script type="text/javascript" src="http://www.bbc.co.uk/emp/simulcast/shCore.js"></script> <script type="text/javascript" src="http://www.bbc.co.uk/emp/simulcast/shBrushJScript.js"></script> <script type="text/javascript" src="http://www.bbc.co.uk/emp/simulcast/prototype.js"></script> <script type="text/javascript" src="http://www.bbc.co.uk/emp/simulcast/scriptaculous.js?load=effects"></script> <!--this is the AJAX Script --> <script type="text/javascript"> function loadXMLDoc() { var xmlhttp; if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 ) { document.getElementById("PHPVal").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","GetLineValue.php?q="+document.getElementById('PHPVal').value,true); xmlhttp.send(); } </script> </head> <div id="container"> <div id="leftPanel"> <div id="emp1" class="player" style="float:left"> <p>In order to see this content you need to have both <a href="http://www.bbc.co.uk/webwise/askbruce/articles/browse/java_1.shtml" title="BBC Webwise article about enabling javascript">Javascript</a> enabled and <a href="http://www.bbc.co.uk/webwise/askbruce/articles/download/howdoidownloadflashplayer_1.shtml" title="BBC Webwise article about downloading">Flash</a> installed. Visit <a href="http://www.bbc.co.uk/webwise/">BBC Webwise</a> for full instructions</p> </div> <script type="text/javascript"> dp.SyntaxHighlighter.HighlightAll('onceCode'); var width= 793; var height= 650; //var width= 640; //var height= 395; var playlist; var config; var revision; function reload(url) { var emp = new embeddedMedia.Player(); emp.setWidth(width); emp.setHeight(height); emp.setDomId("emp1"); emp.set("config_settings_autoPlay","true"); playlist = "http://www.bbc.co.uk/emp/simulcast/"+url+".xml"; emp.setPlaylist(playlist); config = "http://www.bbc.co.uk/emp/simulcast/config_"+url+".xml"; emp.setConfig(config); emp.write(); updateEmbed(); } function updateEmbed() { $('codeWrap').update('<pre name="code" class="js:nogutter" id="embedCode"></pre>'); $('embedCode').update("var emp = new embeddedMedia.Player();"+"\n"+ "emp.setWidth('"+width+"');"+"\n"+ "emp.setHeight('"+height+"');"+"\n"+ "emp.setPlaylist('"+playlist+"');"+"\n"+ "emp.setConfig('"+config+"');"+"\n"+ "emp.write();"); dp.SyntaxHighlighter.HighlightAll('code'); } reload("bbc_news24"); </script> </div> <div id="rightPanel"> <div id="PHPVal"></div> <b></b> <button type="button" onclick="loadXMLDoc()">Change Content</button> </div> </div> <div id="tickerTape"></div> </html> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title></title> </head> <body> <?php // Show all information, defaults to INFO_ALL //phpinfo(); //Connect to mysql and connect to the database test $q=$_GET["q"]; $q = $q + 1; echo $q; //function RetrieveCount($RealLine) //{ //$con = mysql_connect("localhost","root",""); //if (!$con) //{ //die('could not connect:'. mysql_error()); //} //mysql_select_db("test",$con); //$_line = $RealLine; //$result = mysql_query("SELECT count(`SCAN_ASSEMBLED`) as outstanding FROM `table 1` WHERE (`REAL_LINE` = '$_line' ) and (scan_assembled = 1) and (SCAN_ASSEMBLED_DATE = curdate())"); //while ($row = mysql_fetch_array($result)) //{ //unedit above and allow $row to equal database value //$row = 99; //return ($row); //close the database connection // mysql_close($con); //} ?> </body> </html>
  6. Hi I am writing my first AJAX page I am not using a library at the moment I just having a look at things and trying to learn. The page I am building is a dummy factory info board showing how many units have been built so far in the day. I have a button on my page at the moment this will be replaced by a timer event, the first time this button is pressed the everything works great and I get a value but when I press the button again the on click event doesn't fire. I am thinking I am missing something obvious or is their anything but AJAX programming that would stop the event happening? thanks Tech boy
  7. Hi Is it possible in PHP to reference a dll, I have seen a few things that suggest this is possible but nothing that shows a simple example. thanks
  8. When you say bad code in dreamweaver could you please expand how do I right code code for Jquery?? so a little meat on the bones. Use php to search for my jpegs, and add the full path to an array in PHP. when the user clicks either arrow a jquery runs that will move the forward or back through the array. How does the image itself get updated? I feel that I am missing a step. thanks
  9. I was starting to think that PHP itself wasn't the complete answer!!! I will have a look at Jquery never looked at. I am working in dreamweaver cs4, but I didn't notice anything in their regarding Jquery. Does a plugin exist ?? thanks
  10. Hi I am in the process of teaching myself web development, coming from a vb and mssql background. I am building a small page that will display my film library, I just want something quick and simple that gets things working. I have three img tags on my page that display the film posters. The current film and the one previous and next. What I would like is a left and a right arrow that just scroll through the library. I am thinking I need to read the sub folder of D:\movies and story the full path name into an array, and then when the user presses a arrow it moves forward or back. Everything is local and I am unsure about how to handle the event of the left/arrow being pressed. Does PHP handle that kind of event or would Jquery be more suitable or something else completely?? thanks for any pointers.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.