Jump to content
Killersites Community

khanahk

Member
  • Content Count

    53
  • Joined

  • Last visited

Everything posted by khanahk

  1. khanahk

    Styling Nested Divs

    Post your code!
  2. I am curious as to why all the words in forum topics are auto-capitalized after posting

    1. khanahk

      khanahk

      *some* topics..

    2. administrator

      administrator

      Not sure. Ever since we updated the forum ...we've had a few new features I am not aware of.

  3. I just found a method that needs no JS! HTML: <td class="ht">Send reminders? <span class="tooltip">this is the tooltip alshdgwh gahfguo wfhg fghwoug wugw hgrwuog hwaur guoarwhg rwu</span> </td> CSS (in THIS order to hide the tooltip originally): .ht:hover .tooltip { display:block; } .tooltip { display: none; background: #C8C8C8; border: 1px solid #000; border-radius: 4px; margin-left: 28px; padding: 10px; position: absolute; z-index: 1000; width:200px; height:100px; } Incredibly lightweight and workable!
  4. I want my tooltip element (the <span>) to appear above everything on the page but still relative to its parent element (the <td>). JS to show/hide the <span>: window.AETid = "AE"; function tooltip(tid) { console.log('run the tooltip...id: '+tid); document.getElementById(tid).style.display="block"; } function hideTooltip(tid) { document.getElementById(tid).style.display="none"; } HTML: <td onmouseover="tooltip(window.AETid);" onmouseout="hideTooltip(window.AETid);"> Send reminders? <span class="tooltip" id="AE">this is the tooltip</span> </td> CSS for .tooltip: .tooltip { color: #ff0000; display: none; z-index: 100; position: relative; right:0px; bottom: 0px; } Currently, the tooltip appears as expected when I hover over the <td>, but it appears within the <td> element, thus changing the size of the <td> and thus the <tr> and thus the <table>. I want the tooltip to appear, well, like tooltips to: above and not effecting the rest of the page. z-index doesn't seem to do it alone in my case... All help is greatly appreciated
  5. Hi Ben. Good to see you're still around and helping folks. It's very appreciated. I just tried your suggestion and got the same result. I attached 2 images to clarify. First before hovering, then after hovering. The tooltip appears, but it is within the <td> element and makes the table bigger. I want it to appear above the table and not change the DOM flow at all, but still be relative to it's parent. You know, like all tooltips do normally. Like when you hover over an <a> with a title="here's a tooltip" attribute. Edit: changed the second image to make it more obvious
  6. khanahk

    My Float Won't Float

    Granted, quick fixes are generally a no-no. But if you already have a large mess of CSS rules and other-folks' code and you haven't got the time to overhaul the site's design then it can be better for simplicity's sake... especially when editing a site that you didn't create originally! Therein lies the "get the job done right, the first time" philosophy. Haste makes waste.
  7. khanahk

    My Float Won't Float

    Floating the flags should indeed do that (not interfere with the page layout flow). But I even removed the flags <div> altogether, and the gap is still there for me. Ah. The problem seems to be on #slider. Try this #slider { min-height: 200px; margin-top: 0px; position: relative; bottom: 28px; }
  8. khanahk

    My Float Won't Float

    ul.qtrans_language_chooser { clear: both; position: absolute; top: 95px; right: 175px; } does the job. Not sure if absolute positioning is something you want to go for though
  9. khanahk

    Php Login Part 14

    Guten Tag Jan - ich spreche Englisch aber ich lerne Deutsch jetzt. Du arbeitest noch, mit 15 Jahre? Using a text editor like Notepad++ (it's free!) will show you pretty clearly when a "{" closes with a respective "}" and helps greatly in locating these kinds of errors ahead of time.
  10. A consideration: "Recent Topics" should be a clickable link that renders a page with more than the 5 most recent ones.

    1. falkencreative

      falkencreative

      That's what the "Today's Active Topics" link in the main navigation is for.

    2. khanahk
  11. khanahk

    Using Ipad For Web Development

    Has anyone tried to do this? Is it plausible? Any text-editor or FTP client apps you know of? Anything helps. Thanks guys, Khanahk
  12. Hello, I can make a browser window pop up in Firefox with my fancy web programming skills... ..but I can't make Firefox. This bothers me and I want to dominate the realm of offline programming (some would say 'real programming', no?). Where do I start? C++? This is what I believe I should do... Any resources/advise will be most helpful Thanks
  13. khanahk

    Required Info needed to get Website posted online

    Making a website 'visible on the web' is as easy as uploading your code files to the Host FTP, and getting a domain name. Your host should be able to tell you how to access your FTP and which folder you should put your files in. Usually the folder is public_html or something similar. Making a website 'findable' is a whole other matter and if you wish to learn more about optimizing search results for your site you should look up SEO (Search Engine Optimization). There are many things you can do inside and outside of your code that improve a site's 'publicity' in that way
  14. khanahk

    Need Help With PHP Form

    For one, died( should be die( That may be it.
  15. khanahk

    .php with html 500 error

    500 error usually occurs because you have an .htaccess file that has improper 'Directives', from my experience. Try removing the .htaccess file from your root directory and see what happens. This file is often hidden and in many FTP clients you will need to change an option to view hidden files. Or, make sure you are using a .php extension for all files that contain PHP code. Most servers don't read PHP code in a .html file by default although you can configure them like that.
  16. khanahk

    change id value in HTML using Javascript

    The below is jQuery, a library that allows for easier JavaScripting... if you include a <script type="text/javascript" src="your_jquery_file.js></script> after downloading the jQuery library (jquery.com) and saving it as your_jquery_file.js, you can use: <script type="text/javascript"> $('#the_link').click(function() // assigns an 'on click' event to the <a> with id 'the_link' { $(this).id = 'content_to700js'; // changes that id to 'content_to700js' }); </script>
  17. The moment I've always waited for... Yes, in the soon to be released Windows 8 OS (down with Mac!...down with Mac!) and Windows Phone 8 development environments, one can use HTML, CSS, and JS to make an app. (Not C# and XAML -- although, of course, you still can use these). Web developers around the world jump with glee. This is wonderful. http://thenextweb.com/dd/2011/06/02/windows-8-apps-to-be-built-in-html-javascript/
  18. khanahk

    problem in apache server

    Sounds like, possibly, you mis-named your index file to be index.html.txt or something similar? With those Apache directives it should be solid. Do you have 2 index.html's?
  19. khanahk

    How Much To Charge For Web work?

    Things I've learned... -Charge by the job ($1000+ is fair indeed for a modest site, if you are a skilled individual), not by the hour. 2 hours spent fixing a ridiculous IE bug isn't something the client really cares to know about or pay hourly for. -Do use a contract, outlying exactly what functionality the client will get with the site (Because later they will ask for more, and they ought to pay for it). If it is not in the contract, it is not part of the deal. -Do your job well (a given? Perhaps). Write code that will be good for future editing. -It's alright to take a small hit sometimes for the sake of customer satisfaction (especially when you didn't cover the bases), with things like "Look man, tell ya what... I'll give this one to ya." -Consider offering 'maintenance plans' -- monthly payment for sustained support and added functionality (particularly for stuff like e-commerce, blogs, forums... -Give the client ideas. Inform them. There are things that non-web-folks don't even know would be really great to have in their site. Or conversely, things that are utterly horrible to have in their site (FLASH!). Mention things freely and often. They will often like the ideas and pay you to do them.
  20. First -- You need to enclose all JavaScript and jQuery in <script> tags; and you also need to include the jQuery library in your page if you intend to use it (looks like that's the case). The fact that $ is undefined indicates your code does not have jQuery properly put in. If you've already done that, try if ($('#formID').click()) { return true; } within and at the beginning your onbeforeunload function.
  21. Here goes a public commendation for Ben's hard work and overall friendly demeanor. You are appreciated.

  22. khanahk

    MySQL LOAD LOCAL DATA HELP

    I see. I have run into the 'filesize too large' error when importing some CSV's and will keep this in mind if and when I come to it again. Thanks for your post
  23. khanahk

    MySQL LOAD LOCAL DATA HELP

    If you use phpMyAdmin there is an 'Import' button where you can import a CSV, XLS, etc. that phpMyAdmin will convert to an SQL table for you
  24. khanahk

    Do You Need A Web Programming Degree?

    Student loans ARE evil, as are tuition costs. Skill IS what is truly and fundamentally valuable. Totally man. Good stuff.
  25. khanahk

    ternary operator

    The syntax return ($n == 0) ? $m: run($n, $m % $n); means... If $n is 0, return $m; If not, return run($n, $m % $n) and is identical in functionality to this: if ($n==0) return $m; else return run($n, $m % $n); So if $n is 0 the function runs and spits out $m. If $n is not 0 the function will run AGAIN but this time using the remainder of $m / $n for argument $n..
×