Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by Howdy_McGee

  1. I agree and disagree, every programmer learns in different ways. I know a variety of languages but PHP is one that I am zoning in on as a speciality. I also feel that you'll never be able to know everything about a language and that you'll always have to look at external sources because by the time you've memorized a language; they've updated it and changed everything. But yeah trial and error is a great way to learn but after awhile you just hit a wall. It just seems like when I'm doing this I run into so many problems that I can't keep asking forums for help. Maybe I like tutorials better because everything I've been taught about programming has been school based.
  2. That may be true, but if I start putting all these pieces together and am not using the best practices or the best/fastest way - it's going to be tough to (1) find a job with those kind of practices and (2) if I keep repeating these bad practices i'll never be able to become the programmer I want/need to be. That's why I rely on tutorials to provide a windows to look though on what I'm supposed to be doing an why I'm doing it.
  3. I know the basics of PHP and MYSQL but I can't seem to get down putting it all together in order to make an admin panel / website backend. I was wondering if anyone knew of any specific tutorials that covered creating admin panels / website backends so I could get a feel of what I'm doing right and what I'm doing wrong.
  4. So then to print value of the array using JSON I would do the same as javascript? document.write(b[0])?
  5. So I can't for the life of me understand JSON. I've looked through numerous links but nothing. If I have a Database and all I want to pull is:title => fight clubtype = > moviegenre => actionhow do I print that out to an HTML document using JSON. I don't get it. I think it puts it in an array but how does it get there? Do I just print it out like I would a normal javascript array? If this isn't quite the right place to post this I apologize but there wasn't an AJAX section.
  6. nope just HTML and images
  7. Nice So I need Outlook in order to input my HTML into an email for further testing. I'll look into this and try it out. Thanks!!!
  8. So I have to develop an email newsletter. I am having the most trouble with this than anything I've ever learned. I understand it has to be coded all in tables and inline CSS and such but HOW do you actually place what you code into an email? I mean there are no "HTML" option on Yahoo mail or gmail. Has anyone developed any kind of email newsletter before? How did you place in your HTML?
  9. ah gotcha. Very cool thanks!
  10. So i'm going through a PHP tutorial online (which has been pretty good so far) but I ran across one thing I didn't quite understand and that is what exactly $_SERVER['PHP_SELF'] is. He was using it to reference back to a form on the same page to see if the form had been submitted or not. But I didn't quite understand. Can somebody explain what it is/what is does a little more or send me a few links please?
  11. I keep having a problem with this custom errors in my web config file when I try to load my page.I started out with a plain html/css website and then edited it into an ASP.NET website so I can run a contact form. I have my @Page header and all but still no luck. I tried to add the code to my web.config like the page says but it doesn't seem to help. Anyone else have this kind of problem? What can I do to solve it? Any suggestions?http://ns-llc.com/alexnodr/networkspecialists/contactUs.aspx
  12. Well I'm trying to cycle through text as the feature list cycles through categories. Since the feature list already cycles through images and links at the same time (in sync with one another) I just want to describe the category more. I tried calling 2 of the same function and just making another feature list which would have suited my needs, but I guess it's calling the function on load and one function was overriding the other which ended up breaking the javascript.
  13. So I have a simple Feature List javascript going. What I've been trying to do for the past few days is integrate another option to the JQuery. I was wanting to print out text like an alt tag or in my case the HREF of links using the "attr()" that JQuery has. The problem is getting it to sync with the feature list. I tried coding one from scratch but it was clunky and messy. Here's my original code:::java script:: /* * FeatureList - simple and easy creation of an interactive "Featured Items" widget * Examples and documentation at: http://jqueryglobe.com/article/feature_list/ * Version: 1.0.0 (01/09/2009) * Copyright (c) 2009 jQueryGlobe * Licensed under the MIT License: http://en.wikipedia.org/wiki/MIT_License * Requires: jQuery v1.3+*/;(function($) { $.fn.featureList = function(options) { var tabs = $(this); var output = $(options.output); var alt = tabs.attr("href"); new jQuery.featureList(tabs, output, options); return this; }; $.featureList = function(tabs, output, options) { function slide(nr) { if (typeof nr == "undefined") { nr = visible_item + 1; nr = nr >= total_items ? 0 : nr; } tabs.removeClass('current').filter(":eq(" + nr + ")").addClass('current'); output.stop(true, true).filter(":visible").fadeOut(); output.filter(":eq(" + nr + ")").fadeIn(function() { visible_item = nr; }); } var options = options || {}; var total_items = tabs.length; var visible_item = options.start_item || 0; options.pause_on_hover = options.pause_on_hover || true; options.transition_interval = options.transition_interval || 1000; output.hide().eq( visible_item ).show(); tabs.eq( visible_item ).addClass('current'); tabs.click(function() { if ($(this).hasClass('current')) { return false; } slide( tabs.index( this) ); }); if (options.transition_interval > 0) { var timer = setInterval(function () { slide(); }, options.transition_interval); if (options.pause_on_hover) { tabs.mouseenter(function() { clearInterval( timer ); }).mouseleave(function() { clearInterval( timer ); timer = setInterval(function () { slide(); }, options.transition_interval); }); } } };})(jQuery); ::HTML:: <html><head><title>FeatureList</title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <script type="text/javascript" src="test.js"></script> <script language="javascript"> $(document).ready(function() { $.featureList( $("#selectionbar a"), $("#picture img"), { start_item : 0 } ); }); </script> <style type="text/css"> #featureList { width: 850px; } #picture { width: 850px; height: 269px; overflow: hidden; } #selectionbar .selector { width: 15px; height: 15px; background: url(http://www.acegames.us/forum/images/smilies/sad.gif) no-repeat; float: left; margin-left: 10px; margin-top: 7px; } #selectionbar a.current { background: url(http://www.saabiklubi.ee/foorum/images/smilies/biggrin.gif) no-repeat; } #selectionbar { background: url(http://www.eventintegration.com/images/bottom_bar.jpg) no-repeat; width: 850px; height: 28px; } </style></head><html><body><center> <div id="featureList"> <div id="picture"> <a href="#"> <img src="http://www.a1linepainting.com/*site/scaled-images/web/images/mid-jpg-850x242.jpg?nxg_versionuid=published" alt="" width="850" height="242px" style="padding-top: 25px" /> </a> <a href="#"> <img src="http://fc00.deviantart.net/fs71/f/2010/091/b/3/Magic_M16_by_commandercody92.jpg" alt="" width="850" height="242px" style="padding-top: 25px" /> </a> <a href="#"> <img src="http://www.jbtreesllc.com/PageImages/Sepia-IndexImage-TreesTop-third-850x242.jpg" alt="" width="850" height="242px" style="padding-top: 25px" /> </a> <a href="#"> <img src="http://av-folio.net/Files/1295603162.jpg" alt="" width="849" height="242px" style="padding-top: 25px" /> </a> </div> <div id="selectionbar"> <a class="selector" href="#"></a> <a class="selector" href="java script:;"></a> <a class="selector" href="java script:;"></a> <a class="selector" href="java script:;"></a> </div> </div> </center></body></html> Any suggestions? Maybe I'm better off finding a new script online to better suit my needs i'm not sure.
  14. Howdy_McGee

    Page Jump

    that was great! Worked like a charm thanks!
  15. Howdy_McGee

    Page Jump

    Can I add that stuff to an submit button?
  16. Howdy_McGee

    Page Jump

    Ok, so I made my first PHP contact for with sanitation and such () The only problem is that it's half way down my page and when the user doesn't submit the correct information on submit it refreshes the page but doesn't jump back down to the contact form. Can I do something in PHP that will make the page load back up to the form or should I use some kind of javascript to bring it back to the bottom of the page?
  17. wait like this? var image = document.getElementsByTagName('img');document.getElementById('altHere').text = img.PostAlt(this.alt); again, clearly I don't know much javascript so i'm not sure how to use PostAlt :/
  18. I'm trying to write a script that 'OnClick' will grab the image Alt Text and post the contents of the image alt inside a div element that is else where on the page. Much like a caption, but I'm hoping a lot simpler. I tried using the whole innerHTML thing but i'm not very familiar with javascript. Can anyone help me? <img src="kitten.jpg" alt="This Cats Name Is Mitten!" OnClick="PostAlt()" />
  19. You should try posting on the CSS3PIE forums, they were helpful for me. Plus this is a pretty awesome code tidbit In My Opinion, worth checking out.
  20. I had the same problem. Turns out that 50% of the people that use this HTC file can only use it on a SERVER. If they try and run it locally nothing happens.
  21. This seems awesome, why isn't this more widespread?
  22. So I was doing some research on Round Borders and Internet Explorer 8 and apparently you can achieve it using an .htc file. I was wondering what an HTC file type is and how I can use it to achieve round borders in IE8?http://stackoverflow.com/questions/4326363...r-radius-in-ie8
  23. See I figured if it doesn't send it's still going to be in the $name variable right? So in turn I could use <?php echo _GET['name'] > and post it right? I mean if the form isn't on the page and I just want to post the variables.
  24. would that work if this is a separate page than what the original form is on?
  25. Howdy_McGee

    PHP Variables

    I have a form going right - using _POST method. Like so: $name = $_POST['name']; I want to retrieve that variable in another webpage to display their name. The code is in an External PHP File. If The 'Captcha' is wrong the email won't be sent and I would assume the information would still be held in the variables. What I want to do is Grab the content of these variables and redisplay them so they don't have to retype their data. How do I do this?
  • Create New...