Jump to content
xisto Community

Tyssen

Members
  • Content Count

    1,159
  • Joined

  • Last visited

Posts posted by Tyssen


  1. also, the parts in between the PHP include statements, are they just written in standard HTML? if so, where does the <HTML> tag come in? before the PHP or after? I'm guessing it comes in at the top of the header file.

    You can put whatever you want between the includes. Same as in the includes themsevles. An include can also just be a single line of code if you want it to be - it doesn't have to be a large chunk of code like a header.
    The reason I laid out my previous post the way I did is cos I'm guessing you don't know much PHP yet and are wary of using PHP includes for that reason. I was just trying to show how you how easy it is to use them without knowing much PHP.
    In reality, my header include is a bit more complicated than that cos I've actually included it in a function which can receive different variables from different pages to change the title, meta description and other lines of code too. But it doesn't have to be any more complicated than simply pasting HTML into it.

  2. One of the concerns that has been mentioned time and time again about Javascript is that there is a large (and getting larger) number of users who have disabled javascript, but still you insist on using it.

     

    Actually Jim, using javascript is the only way to get these type of CSS dropdown menus working for IE browsers as they don't (as yet - IE7 might be different) support hover for any element other than the pseudo classes. (It's still a better option that a DHTML menu which is made up solely of javascript.) The other option is to use something like the whatever:hover, but again, it is affected if JS is turned off.

    The solution is to make the links that bring up the dropdown menus go to an actual page as well where the submenu links can be accessed by those who can't see the dropdowns.

    And no, I didn't provide that link you've given. :P


  3. Secondly, the @import command, although it appears correct in your listing, affects the cascade somehow, but I don't know exactly how. I usually use the link tag for the css files.

    <link href="your_style_file.css" rel="stylesheet" type="text/css">
    Change the file name in the link href and it should work fine.
    The @import line is fine. The reason it is used is because older browsers (v4) which don't support CSS2 don't understand it which means they don't end up getting sent a bunch of rules that they can't interpret.
    Your javascript won't work cos it's outside the <head> section of your document. As is the script to get your dropdowns to work.
    You also don't have a doctype which can give you problems as well.

  4. I've bought a few things from eBay and not had any trouble. The only one that was dodgy was when we tried to buy some tickets for a festival and the guy obviously didn't think he'd got enough for them cos they were readvertised almost immediately. We got in contact by phone and agreed to meet up on the day of the event to do the exchange but when the day came he was uncontactable. As it turned out, it didn't matter anyway cos the event had some more tickets they'd held in reserve to sell on the day and we got in for the same price as everyone else. :)


  5. Why should that matter?  Web design has nothing to do with the concept of how standards work.

    I asked cos the last time this discussion came up the points you were making sounded like they came from someone with no experience in this field. I made the wrong assumption.
    Fair enough if that's your take on things - it's certainly not mine and you're definitely the only person I know who holds those views.
    I could argue the toss with you over this but I can't be bothered really. You're obviously comfortable with your position, as I am with mine and it's highly unlikely anything said by either of us would change the other's position.

  6. The main reason why i don't want to do that is because it sorta slows things down a bit.

    Usually the amount of slow down is so small as to be almost unnoticeable.
    I don't know if Xisto is configured to accept includes in HTML documents but it is for PHP documents. Don't worry if you don't know any PHP. Just create your page as you would normally, but instead of saving it as .html, save it as .php and then where you want to include the code that is to appear on all pages put:

    <?php include('myInclude.htm') ?>
    And that's it. :) To give you an example, a site I created recently looked like this:

    <?php include('header.php') ?>Content for individual page<?php include('footer.htm') ?>
    Every page looked like that except for the different content in the middle.

  7. And about the !important thing... some arboc said that why dont i use a fully standards compliant rule (refering to !important) so i ask is it not !important a standard?

    It it fully supported but most of the time when you see it in newbies' stylesheets is cos they don't properly understand the rules of CSS inheritance or specificity. They can't figure out why a certain rule is not working so they give it !important when really they should be searching for the cause of it not working as required.

  8. I'll have to ask an apologee from all other members about this, but truth is that i have found out that XHTML is NOT THAT GREAT RIGHT NOW.

     

    WTF? You're demanding an apology? What does anyone have to apologise for?

    And if that weren't bad enough, you then summarise what everyone else has already written in this thread and end up not supporting your original statement. :)


  9. From this site:

    Overall, just remember this. Of all the meta tags you may see out there:* Meta Robots: This tag enjoys full support, but you only need it if you DO NOT want your pages indexed.
    * Meta Description: This tag enjoys much support, and it is well worth using.
    * Meta Keywords: This tag is only supported by some major crawlers and probably isn't worth the time to implement.
    * Meta Everything Else: Any other meta tag you see is ignored by the major crawlers, though they may be used by specialized search engines.



  10. To clarify things a little here, perhaps you could explain what server side includes are, how to use them and any restrictions they impose.

    They work in a very similar way to the js method you posted. You create a file with the piece of code that's to be inserted into another file and then you write a line of code in that file that calls the include. For PHP it looks like this:

    <? php include('yourfile.htm') ?>
    In ASP and HTML it looks like this:

    <!-- #include virtual="/yourfile.htm" -->
    Some configuration of the server is required to get it to work for HTML as it is not usually enabled by default. PHP, ASP, JSP, Coldfusion etc. all enable them by default.
    You can call any file to include in your document: .htm, .txt, .inc, .asp, .php. In fact, you can write scripting code in a .txt file and it'll work as intended if it is included in a file with the relevant extension (e.g. .asp or .php).
    I'm not aware of any restrictions (except if you're server isn't configured to accept them which wouldn't be the case if you're using Xisto). The benefits over the js method is that they can't be turned off and rather than being written to the page as javascript, they get written as HTML (or whatever else you've included).

  11. I think the simplest way to do this is to use a javascript that has the information you want and then insert the script in the page where you want it. Unlike PHP or ASP etc. a javascript will work on almost any web host, essentially it is just inserting a text file.

    It may work on almost any host, but unlike server side scripting languages, javascript can be turned off which means that users of your site will be missing whole chunks of the page. W3Schools figures show that about 10% of users have js turned off which is a very large slice of your audience who won't be able to use your site properly (especially if you're using it to display your navigation.
    Stick with server side includes (they can be configured to work with HTML, no scripting languages required) - they're the industry standard.
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.