Jump to content
Stef's Coding Community


  • Content Count

  • Joined

  • Last visited

Everything posted by Woody

  1. Hello again Team! I would like to know how to properly use the JS "reloadPage" function. I want to force a visitors browser to refresh when they enter my site so any changes I've made since their last visit will be what loads. I think this is the right function: function reloadPage(){window.location.reload()} What I need to know is...how do I call this function so that it only refreshes ONCE. I tried <body onload="reloadPage"> but that makes it refresh continuously. Or do I have to tweak the function itself? I'm not that versed in JS yet, as you can tell. Thanks for any help forthcoming.
  2. Thanks again virtual! I'll adjust accordingly. Just as soon as I bring in some more firewood!
  3. Thanks virtual! That last one did it! the width:560px; worked...now could you tell me why? The paragraphs center perfectly in DW CS4...even without the added width attribute.
  4. Where are the paragraphs positioned top:0;left:0;? The position:absolute; applies to the div bSRotaBox, but that positions the DIV, not it's contents, right? And it is positioned at top:510;left:82; I haven't had this problem before. The text-align:center; has always centered the text in the div. What am I missing here? Sorry to be so dense, but I AM just learning. And I AM enrolled in KillerSites Univ. Does the jQuery Cycle Plugin affect the placement?
  5. Thanks Ya'll! Actually I remember that I can't use a number as the first character in the classname...but now I remember it MORE! Now the paragraphs are properly formatted, but not positioned as the CSS calls for. They won't center in the div. I'll try a few more things...but if anyone has a suggestion...?? Thanks again.
  6. Hello again oh Wizards of the Web! I'm trying to use the jQuery Cycle Plugin on a new page of my website (view at www.todaystruth.com/NewBSPage.html). I haven't yet linked the rest of the site to this page. The plugin functions as advertised. My problem is that the paragraphs I am cycling are not picking up the CSS I assigned to their respective classes. Am I missing something here? I admit I am a bit new to jQuery. Thanks for any help/advice.
  7. Thanks, newseed, but what about all the other visitors? Is there no way for MY website to initiate a "refresh"?
  8. Hello again folks. Is it possible to force a "refresh" when a visitor opens a page on my website which has been updated since their last visit? Every time I update a page, my son has to be told to refresh the page in order to see the changes. Thanks in advance! -Woody
  9. Thanks again, Kyle. Looks like I need to completely "re-think" my website construction.
  10. Thanks Ben, Kyle, and Wickham, for your informative responses. I will endeavor to make use of this new knowledge as I continue my Web-related pursuits.
  11. Thanks again Ben. Any suggestions as to where I could learn how to do this?
  12. Hi there...Can anyone tell me why someone would turn javascript OFF on their browser (assuming that's where it is done)? I'm learning jQuery, etc., on Killersites U. and I'd like to know before I load up my site with JavaScript. Thanks in advance.
  13. Thanks Ben...Just asking the questions made me see that the trailing "/" on the url was indeed making the browser look for a directory rather than a file. I didn't realize that was what it was doing. I just always saw the trailing slash on other urls and thought it was how you did things. I'm that much of a "Newbie" you see. Anyway, thanks again...and thanks for your tutorials on the PHP section of KSU.
  14. Ben...maybe what I did (see last post) didn't actually fix anything. I just discovered that if I trail my url with a "/" (, the js doesn't work on either browser, but if I omit the trailing "/", then it works on both. Any thoughts?
  15. The page just "blinked" and nothing else happened...but now it works. I opened the htdocs folder in Firefox and went to Tools > Folder Options > View, and the "Hide extensions for known file types" was already UNchecked...but under the "Manage pairs of web pages and folders" option the "Show and manage the pair as a single file" button was selected, so I changed it to "Show both parts and manage them individually". Now the page works in Firefox also. Could you possibly explain just what that did? I haven't a clue what it is talking about, but it fixed that particular problem, or seemed to.
  16. Ben...I just tried "view page source" on both browsers, and clicking on the jquery.js link in the line <script type="text/javascript" src="jquery.js"></script>. In Chrome, it opens the file...in Firefox it doesn't. Is there a way you know of that I can find out why this is? Thanks for your help. I'll just stop using firefox if I can't figure this out.
  17. Hey Ben! I just discovered that it is a browser problem. I opened it with GoogleChrome this a.m. and it worked, so I tried it with Firefox, which I was using last night, and it does NOT work. Can you tell me why this would be so?
  18. OK, Ben...I hate these weird things...thanks for your attention to my problem. When I opened my localhost this a.m. and opened index.php, it is now working as it should, with no changes made since last night! Have you any experience with this sort of behavior? It is very frustrating. I spent HOURS trying to figure out what I was doing wrong! Any light on the subject would be appreciated greatly!
  19. Hey, Ben...I used the same jquery.js file as I used on the index page of todaystruth.com. I just copied it and renamed it. Could there be a problem with the .js file because of that?
  20. Yeah Ben...the jquery.js file is in place...same folder as index.php.
  21. Hi there Ben, Could you please tell me why my code isn't working? (I'm using xampp on my WindowsXP machine.) I have each page loaded in xampp\htdocs. The getforum page works great, but the jQuery function on the index page doesn't want to load the getforum.php. It just displays the heading, not the div. Any help in learning what I'm doing wrong would be greatly appreciated! Thanks. Here is my index.php page: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Killersites</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> $(document).ready(function(){ $('#recentTopics').load("getforum.php"); }); </script> </head> <body> <h1>Recent Forum Topics:</h1> <div id="recentTopics"></div> </body> </html> And here's my getforum.php page: <?php ini_set("display_errors",0); $limit = 5; $file = "http://www.killersites.com/community/index.php?/rss/forums/1-recent-community-activity/"; if ($xml = simplexml_load_file($file)) { echo "<ul>"; foreach($xml->channel->item as $item) { echo "<li><a href='$item->link'>$item->title</a></li>"; $limit--; if($limit==0){break;}; } echo "<li><a href='http://www.killersites.com/community/index.php?app=core&module=search&do=active'>View All Topics</li></ul>"; } else { echo "<strong>Oops! The most recent forum topics cannot be displayed at this time.</strong>"; } ?>
  22. Woody

    mail function failure

    Thanks falkencreative! I was playing around in the php.ini file and seem to have hit the right combination. The [mail()] function now returns a "true" response. Guess I'd better figure out what I did, huh? (actually I just uncommented a coupla lines, so I'll just comment-out those lines one at a time and see which one made the diff...unless you think that might not be the best thing to do?) Anyway, Thanks again for your suggestions! Woody
  23. Woody

    mail function failure

    Hey Stef, I'm using your Tuts on PHP and when I got to the part where the mail(); function was supposed to tell me whether of not it worked...it didn't. It gave me THIS: Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\xampp\htdocs\KillerPHP-3.php on line 26 My page is identical to yours on the video as to the coding. So I guess you know what my question is, huh? Wassup? Thanks, Wayne
  24. Woody

    media=print in IE

    Hi falkencreative, Please accept my profound apologies for mis-posting my complaint. I just discovered that my problem was a "printer malfunction" rather than an IE problem. It would seem that IE treats the request as it should. But thanks for the timely response! Woody
  25. Woody

    media=print in IE

    Hello Gang...I'm new enough to CSS to not have encountered this problem 'till now. The code I've attached works fine on all my browsers except (of course) IE. What is needed to make the following work in IE, specifically IE6? <link href="../CSS/codePrint.css" rel="stylesheet" type="text/css" media="print" /> Thanks in advance for any and all help! Woody
  • Create New...