Jump to content

boen_robot

Members
  • Posts

    8,493
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by boen_robot

  1. Too bad it doesn't check time for completion. I just finished it, after opening it few minutes ago .
  2. Going around the circle all over again .Web services are method of sharing only data among different domains. You could use web services to query all kinds of data from one of the sites and pass it to the others. The other sites would be able to create their own presentations while still receiving the same data. Infact, the only difference with my first example is the reveived data. Constructing such a system is not an easy process though. I'm not aware of whole process myself.
  3. Now I'm totally confused. You don't want the search results to be displayed on the child domain, yet you want to have a search, a link doesn't work, because you don't want your visitors to leave (thought about a link in new window?) and iframe would disable the good of the search. I'm completely confused on what's actually the desired result.
  4. There is no universal way. Find the latest version of the targeted browser(s), install them and see the page there for yourself. The markup itself could be validated in W3C's validator, but that doesn't ensure compatability in all browsers. It only ensures that you typed the code accordingly to W3C's specifications.
  5. Firefox and IE could do this with either a Web Developer plug-in (like I do), or use user's stylesheet specified manually.For IE, go to Tools>Internet Options...>Accessability...There, checking the proper checkboxes, a user could make a change for CSS's settings.For FF... I don't know how without extension actually.Opera has such built-in and easy to find functionality. Just click on the glasses on the right of the google bar and you'll open up accessability options. The user is allowed to zoom the page and to turn between Author Mode and User Mode. User Mode of course defines a way to apply your own stylesheet or use predefined such.And damn, no. The fact that your page looks exactly the same with or without stylesheet is exactly the reason why table design are bad (had another word in mind, but was censored), and CSS layouts are better. The user is allowed to adjust the presentation to serve his needs.One more thing... we are talking about CSS layouts, not the overall usage of CSS. Everyone agrees that CSS is good for fonts and styles, but not everyone agrees about it being used for layout purposes. Of course, if you're in a hurry and don't care for CSS Layouts' advantages, of course you'll use table layouts, but to use or not use CSS at all is not the point here.
  6. What about the one here? I haven't tested it, but it seems as a PHP email form to me.[edit]@...678 what are you talking about? What you show is BBCode. It doesn't belong anywhere in the PHP tutorial. [/edit]
  7. I'm thinking of (i)frame, but that's not a good way. In your situation however, it might be the solution you seek.
  8. boen_robot

    CSS Documents

    Oh, please stop saying "like Java". I and many other people on this forum don't use it scince it's not a web programming language (unless you were refering to JavaScript, but we all know that's another thing).What do you mean by "separate documentation"? Offline version? Not W3Schools' reference. The site does profit from ads which are displayed only online after all. There might be other references, but I don't know of any, except maybe O'REILLY CSS reference used in Dreamwaver's references, but you'll need Dreamwaver itself to view it or buy the book.
  9. The code you have provided is way too complex for my kind of JavaScript experience. Nevertheless, I was able to made some test with My own kind of an example...If this JavaScript is in XHTML file, keep it without CDATA sections. Even if in truth is suppose to be with CDATA, I can't think of a way around this odd (in my opinion) behaviour.If it's in XML file, use the CDATA around the script but inside the tag. If you use XSLT to transform that XML, simply use <xsl:value-of select="XPath to the JavaSciprt" disable-output-escaping="yes" /> (not working in Firefox... hopefully only "yet", not forever).
  10. A thing I certanly want to see is global variables handling, such as the GET variable. You know, the ones with which when you type "?VariableName=VariableValue" at the end of the URL to trigger special actions in the PHP file.Maybe some more detailed information on form processing and an example of simple MySQL connection and action (just like the ODBC example).And one thing which is probably with the least prirority but... some kind of universal way to install extensions? I mean... most extension's installation follow similar steps, right? If so, what are they? The one of my particular interest is (as some people of this forum could already figure out) a step-by-step way to install the XSLT Processor extension.
  11. CDATA displays what you show as it is. That's why JavaScripts in XML files are enclosed by CDATA sections- you keep the exact same characters, therefore use the script and you don't interfere with the parser.Show the full "broken" code please. I don't see a problem.[edit] A closer examination... When you write something like "<hr />" inside an XML element, it's treated as an XML element. Using "<hr />" instead returns the charaters "<" and ">" in the place of the entity codes, so therefore you get litteral the litteral text "<hr />". Using "<![CDATA[<hr />]]>" means that the parser shows litterly what's inside the CDATA section, which in our case is again the plain text <hr />. However, that doesn't mean that the special characters in CDATA were transformed to entites. They were just displayed on the screen as one whole (copy and paste or so to say) the same way as "<![CDATA[<hr />]]>" would have resulted in the litteral text "<hr />" .[/edit]
  12. Wouldn't a simple link to the original do the trick?
  13. boen_robot

    CSS Documents

    Do you mean the official W3C's CSS2 specification, W3Schools' CSS reference or something else?
  14. Find this line in apache's configuration file: DefaultType text/plain And change it to DefaultType text/html Now you're free to remove the extensions of all of your files. When the user typeswww.bhuratea.com/productshe would get that file and the browser is going to display it as HTML. To ensure slash compatability, you should keep the folder too With a copy of the file there.Note that every other file with unknown MIME type and/or file extension is going to be interpreted as HTML, so be careful.There is a way to achieving this more gracefully, but I don't have that much experience with server configuration so I can't figure it out.
  15. You may only do that if you have rights to the servers configuration. If the server is Apache, you may be able to use .htaccess file to make the requred changes. Infact, if you have rights to the server, your index files are not suppose to always be called index.html. You may specify another index name.Currently you see the final slash because products is folder, not a file named "products". It shouldn't concern you though. If the user types "products" with or without the slash, (s)he is going to get the exact same page anyway just as easy.As for how to do it with the .htaccess file, I don't know, but I'm sure there's a way.
  16. I think you've got the speeding correctly, but what about the cache itself? I can't figure out how is the server going to know when to use the server side code and when not, and isn't this kind of check slow by itself?If there is an explainable and proven answer to this (in other words: if my question is stupid), please tell me at least in PM .
  17. A small correction on raimo's post: the <b> and <i> tags, as well as the <u> tag and some other are already deprecated in XHTML's strict doctype. Scince XHTML 1.1 and future versions would come only in strict doctypes, we say those tags are deprecated already.The presentational attributes (like blogsmith's font-weight attribute) are also unavaiable for those strict doctypes.
  18. I suggest ideally to learn PHP as it's very supported. However, your project does sound like a gallery, so instead of building your own, you should first get some open source gallery and study it's source code at first. Add a few features of your own later on, and when you have the mind and skills to develop a better architecture: start creating your own gallery engine.
  19. boen_robot

    XML to JSP

    Actually, from what I understand, he would like to execute the XSLT transformation which I gave him in this topic with JSP, simmilarly to the ASP example on the site. Correct? Or maybe check the answers with JSP?
  20. boen_robot

    Colours

    What are you talking about? In paint go to Colors\Edit Colors...\Define Custom Colors>>. On the most right part of the windows You'll see three fields: Red, Green and Blue. Where is the yellow color you speak of? Maybe some really old version of paint?
  21. This would have been useful if there was a way to disable certain functions of PHP though .
  22. A friend of mine sarcastly would say "A person must suffer and struggle, so he could know the next time" . I would say in simmilar manner that they use it because it's hard, thus considered a privilage if you're able to code in it.[edit] Phahaha. Nice analogy . Well, you'll still be considered "one of a kind" if you could do that you know .[/edit]
  23. I must say I now feel both as a noob and a guru. A noob for my previous statement that insterting invalid code is like a holy grail. Guru, for discovering that holy grail . It's an element I avoid using. Who would have though how life saving <xsl:text> could be?!?! <?xml version="1.0" encoding="windows-1251"?><!-- DWXMLSource="dictonary.xml" --><!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> <!ENTITY copy "©"> <!ENTITY reg "®"> <!ENTITY trade "™"> <!ENTITY mdash "—"> <!ENTITY ldquo "“"> <!ENTITY rdquo "”"> <!ENTITY pound "£"> <!ENTITY yen "¥"> <!ENTITY euro "€">]><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:output method="html" encoding="windows-1251"doctype-public="-//W3C//DTD XHTML 1.1//EN" doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"/><xsl:template match="/Dictionary"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1251"/><title>Untitled Document</title><style type="text/css">td {border: 1px solid #000000;}tr {border: 1px solid #FF0000;}.PinYin {text-align: right;}.Chinese {text-align: left;}</style></head><body><table><xsl:for-each select="Word"><xsl:variable name="columns">4</xsl:variable> <xsl:if test="position() mod $columns=1"> <xsl:text disable-output-escaping="yes"><tr></xsl:text> </xsl:if> <td> <span class="{local-name(Chinese)}"><xsl:value-of select="Chinese"/></span> <span class="{local-name(PinYin)}"><xsl:value-of select="PinYin"/></span> </td> <xsl:if test="position() mod $columns=0"> <xsl:text disable-output-escaping="yes"></tr></xsl:text> </xsl:if></xsl:for-each></table></body></html></xsl:template></xsl:stylesheet> Produces completely valid code . The only problem is that if ran directly by Firefox or Opera 9 Build 8219, you see plain text instead. That's actually a wrong behaviour I think, but still. If you parse it on the server side, it displays and comes valid in all browsers.Note that I've used the XML I provided in my second last post.Does anyone know how could I (or you by yourself) report this to both Opera and Mozilla?[edit]Reported to both Mozilla and Opera. Opera doesn't say anything yet It turned out Opera had a newer bild (8367) which now supports disable-output-escaping and as for Mozilla, this issue turned out to be a very frequently reported one and they don't intend on fixing it. See bug 98168 for details. In the mean time, I found another solution in the bug itself. Someone posted a "challenge" for the exact same idea here and one person was able to solve the issue. Here's the solution, adopted for this XML of course: <?xml version="1.0" encoding="windows-1251"?><!-- DWXMLSource="dictonary.xml" --><!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> <!ENTITY copy "©"> <!ENTITY reg "®"> <!ENTITY trade "™"> <!ENTITY mdash "—"> <!ENTITY ldquo "“"> <!ENTITY rdquo "”"> <!ENTITY pound "£"> <!ENTITY yen "¥"> <!ENTITY euro "€">]><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:output method="html" encoding="windows-1251"doctype-public="-//W3C//DTD XHTML 1.1//EN" doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"/><xsl:param name="group-size" select="4" /><xsl:template match="/Dictionary"><html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251"/> <title>Untitled Document</title> <style type="text/css"> <xsl:comment> td {border: 1px solid #000000;} tr {border: 1px solid #FF0000;} .Chinese {text-align: left;} .PinYin {text-align: right;} </xsl:comment> </style> </head> <body> <table> <xsl:apply-templates select="Word[(position() mod $group-size) = 1]" /> </table> </body> </html> </xsl:template><xsl:template match="Word"> <tr> <xsl:for-each select=". | following-sibling::Word[position() < $group-size]"> <td> <span class="Chinese"><xsl:value-of select="Chinese" /></span> <span class="PinYin"><xsl:value-of select="PinYin" /></span> </td> </xsl:for-each> </tr> </xsl:template></xsl:stylesheet> Stupid mozilla .[/edit]
  24. It may display it correctly, but as fullphaser points out, it's not a vlid code we're talking about.
×
×
  • Create New...