Kryllster Posted September 28, 2007 Share Posted September 28, 2007 I have recently been working with smarty and learning some new stuff like switch and _GET. The problem is when I go to validate my pages I get this error: Deprecated method document.getSelection() called. Please use window.getSelection() instead. Is this a concern to anyone or is it just a bunch of bunk and if not how do I fix it? I cant find anything on google about the second one. Except that people are reporting it but no solution? Thoughts, solutions?? Thanks in advance, Quote Link to comment Share on other sites More sharing options...
chronister Posted September 28, 2007 Share Posted September 28, 2007 Well, that looks like javascript to me. I may be wrong, but that does not look like a PHP issue at all. Why use smarty? I am not trying to belittle it, I just don't see the purpose of using it as it makes shit too complicated. Quote Link to comment Share on other sites More sharing options...
darkfreaks Posted September 28, 2007 Share Posted September 28, 2007 this is a javascript issue it can easily be fixed just google it there are answers. Quote Link to comment Share on other sites More sharing options...
Kryllster Posted September 28, 2007 Author Share Posted September 28, 2007 <?php //Include page header include('includes/header.php'); include('includes/navigate.php'); //Get the page variable $page = $_GET['dune']; //Our switch statement to get the right content switch($page) { case "home": //For each page of content just add a case block $content = "includes/home.php"; //The file with the page contents. DO not include the header and footer HTML in these files it is already added. break; //Stop the case block, if you do not have this you will get an error. case "home": $content = "includes/home.php"; break; case "about": $content = "includes/about.php"; break; case "quotes": $content = "includes/quotes.php"; break; case "graphics": $content = "includes/graphics.php"; break; case "protocol": $content = "includes/protocol.php"; break; default: //If the variable didn't match any of the above cases do this. $content = "includes/home.php"; break; } //Include the selected content. include($content); //Include page footer include('includes/footer.php'); ?> Is this javascript?? Just wondering?? This is the code im using Quote Link to comment Share on other sites More sharing options...
Kryllster Posted September 28, 2007 Author Share Posted September 28, 2007 You were right it was used as part of a .php script i was including from another page. I elimiated the script and now I no longer get the error. Thank's I imagine that comes from bad code but will check on it more I think after I read that book!! Quote Link to comment Share on other sites More sharing options...
darkfreaks Posted September 28, 2007 Share Posted September 28, 2007 actually if it is solved plz hit topic solved otherwise post your new problem so we can help Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.