Jump to content

Man In Tan

Members
  • Posts

    115
  • Joined

  • Last visited

Previous Fields

  • Languages
    XHTML, PHP, CSS, XML, Python, some JavaScript

Contact Methods

  • Website URL
    http://0gb.us/campaign/xhtml-support-in-javascript.php

Profile Information

  • Gender
    Female
  • Location
    http://0gb.us/
  • Interests
    building PHP classes/functions

Man In Tan's Achievements

Member

Member (2/7)

3

Reputation

  1. It does look like an egg ... I hadn't thought about that.
  2. I'm building a demo web site in a course I'm taking, and the professor said we need to have other people test out our sites, and give feedback about their usability and content. IT117 Demo Web Site If you could comment on the quality of content, ease of navigation, and overall logical structure, I would greatly appreciate it. I'll take anything, positive or negative. Thank you!
  3. I just said I need the file version to exist. The pages are dynamic. They need to be rebuilt when they are accessed. Having them in the database, but not in the files does not work in my case. For static XHTML that may be a good idea, but these aren't static. Also, my pages load in less than one second right now, so slowing down to three or four seconds doesn't seem to be a good option.
  4. It sounds like I have quite the task ahead of me! I was hoping to reprogram my sitemap auto-builder to set up the search index as well, but it looks like I still need to do a lot of work and planning by hand. I'll have to see how much I can get done between classes. I'm a bit of a small site right now, so I don't think I have the space to store all the pages in the database and in files. I can't serve pages strictly from the database, because I use dynamic pages, so they need to be rebuilt when they load. This seems like a great option for some websites, but not the one I'm working on at the moment. Also, while I'm sure there's a way, I don't know how to search for words in a database that contains the whole page, without loading every row, which would clearly not be an efficient way to do things. EDIT: Oh, yeah. Where are my manners? Thank you both for your time and ideas!
  5. I'm trying to add search functionality to my website. To do this, I have my spider crawl my site, and make a list of how many times each word appears on each page. It's a bit crude, but I'm not an expert on search-ability, so it's the best I can come up with for now. However, when it comes to saving the crawl data to the database, I have a bit of a problem. My original plan was to use an SQL table, with a column for every word, and a row for every page. However, after looking at the data collected, I see that is impractical. After converting everything to lower case, to emulate case-insensitivity, the spider found 5639 unique words, most of which don't appear on any given page. Multiply that by over 100 pages and counting, and we have a lot of zeros in the database, especially now that I've started adding a weblog entry each day, on a separate page. What would be a good way to store this kind of data, in a way that can be easily searched over for user queries? I'm sure there's a good answer, I'm just missing it. Thanks for the help!
  6. More readable, and more semantic. <span/>s and <div/>s are great, because of their lack of semantic meaning, but if a semantic option the fits the situation is available, I think it should be used. I doubt I'm the only one who feels that way, especially among people who would take the time to use <abbr/>s and <acronym/>s.
  7. To So Called:What you are emphasizing is about content quality, while semantics and valid markup have to do with code quality. Yes, I agree that content quality is very important, but both content quality and code quality contribute to overall page quality. If you choose one over the other, that is your choice to make, but I choose to have both. To Ingolme:For some reason, I was under the false impression that the "title" attribute had special meaning for <abbr/> and <acronym/> tag. Thanks for bringing the fact that this isn't the case t my attention. This will be useful in several other places as well. I really don't know where I got that idea.
  8. I'm starting college. Let's say, for the sake of having an example, that one of my classes is called "IT117: Introduction to Website Development". When I write about it in my weblog, I don't want to refer to it as "IT117: Introduction to Website Development" every time, because it's a pain to read, and doesn't fit into a sentence very well. However, I can't just refer to it as "IT117", because people would have to find the entry where I first mentioned the class by it's full name, or they wouldn't really know what the course was. I would also like to not have to redefine which classes I'm taking whenever I want to write about them. On option I thought about, was using the <abbr/> tag. Writing something such as "<abbr title="Introduction to Website Development">IT117</abbr>" would get the point across in most web browsers, including assistive technologies, while still appearing in the shorter notation when reading the entry. But is this a semantically correct way to write it? "IT117" isn't an abbreviation for "Introduction to Website Development", so I fear that it is not. Is there a more semantic way to achieve this effect? I think <dfn/> is closer to what I need semantically, but it is nowhere close as far as how it's actually used. Any advice would be greatly appreciated. Thank you for your time.
  9. Thanks for the explanation. Maybe version control isn't right for this project. Maybe I should just use a shared file manager, that backs up old versions of files (just in case) until the current set of files is deemed stable. Maybe with a check in/check out system so multiple people don't work with the same file and one doesn't overwrite the other's edits? Something like a file manager will be easy to find, and I can make the necessary adjustments from there.Sourceforge is a great example of what I was talking about with the sub-domain thing. I know that the filesystem and DNS are completely independent. However, with Sourceforge, projects can be accessed via "projectname.sourceforge.net", while I want a project to be accessible from "projectname.ourdomain.tld". I guess this isn't an issue if I just use a file manager.I actually don't know much about the file transfer protocol. I tried to implement it between two local computers, but I couldn't get it to go well. The computer I was sitting at was able to access and download files from a section of the other computer's file system (not the section I actually needed access to, by the way), but uploading was not possible. I found it very odd. I'll figure it out one of these days when I have time, but for now, I use basic HTTP over the local intranet. Sad, huh? I probably just need to install different software on both computers. Anyway, thaks again!
  10. I'm trying to start a collaborative project, but I really don't know what all I need to do so. Obviously, we need a way to communicate, and a way to manage our code. As far as conversing, a forum should do nicely, but managing code from multiple users will be a bit more challenging.Version control seems to be a popular option, but when I research it, I end up getting confused. I'm on a low budget, so I can't really afford to pay for version control. What would you recommend?I require at least the following features: It must be free It must be accessible via a sub-domain of our new domain, for branding and search engine related reasons -> If it comes with hosting, which would be preferable, I need to be able to apply my own sub-domain -> If I have to host it myself to achieve this, it must be written in PHP, as that's all I have access to on my server for the time being Preferably, I want something that's easy to use, but it's not a big deal if it isn't. I'll find the appropriate documentation. Any suggestions would be greatly appreciated.
  11. I apologize in advance for my poor spelling. I'm not on my own computer right now, and this one has no spell check. As much as I hate Internet Explorer, and feel it is the bane of web developers everywhere, it's not my choice to make. I usually leave sites that try to focrce me to switch from Safari/SeaMonkey. For that reason, I support the Any Browser Campain, even if it does result in much more difficulty in development. While I'm at it, I may as well ask people to quit using Windows all together. Unix-like opperating systems are much more stable and user-friendly. They just don't have as many applications developed for them yet. I know, right? My mother has been complaining about it, and I thought she just had a slow computer. But the problem seems to exsist on any instance of Internet Explorer, but not other browsers on the same computers. And of couse, she refuses to switch browsers, even given Internet Explorer's countless security issues and standards violations.
  12. I've been having issues with slowness on my site, http://0gb.us/, but only in Windows running Internet Explorer. Using a better brower causes the page to load much more quickly. I've done some research, but all I can find that causes this is use of the <base /> tag, which I don't use. What do I need to do to speed loading for these users?
  13. I'm trying to build a substitution cipher class, but character encodings are getting in the way. I want to make use of all one bit UTF-8 characters, as well as the regular space character. However, when I send certain characters to PHP through this form, they get interpreted as multi-byte characters. For example, if I send character 255 (ÿ), it gets interpreted as the two characters "ÿ". Any idea haw to fix this? <form action="filemanager.php?file=%2F0gb.us%2Ftest.php" method="post" accept-charset="UTF-8"><input type="hidden" name="function" value="file_put_contents" /><textarea rows="64" cols="64" name="file"></textarea><input type="submit" value="file_put_contents()" /></form> EDIT: Never mind. I didn't understand how UTF-8 actually works. There are no characters at the code points 128 through 255. Characters requiring more than seven bits to express seem be in the two byte range. My bad.
  14. "Error console"? Never heard of it. I assume it outputs errors, similar to PHP, but for JavaScript? That would be very helpful. I'll see what I can find on my local search engine. www.projectwonderful.com/ad_display.js:1TypeError: Result of expression 'document.write' [undefined] is not a function. Oh, snap! This is great! Thanks for sharing you wisdom! I should be much more effective with JavaScript, now. One of the reason I rarely use it is that I couldn't tell what happened when things went wrong, but it looks like that's over. You have my deepest gratitude.
  15. I need to dynamically add and remove styles but Javascript keeps choking. Through a series of alert()s and commenting things out, I've found the troublesome line. When I comment out the second line below, everything else works. movefrom = document.getElementsByName('movefrom').item(0);document.getElementByName(movefrom.value).item(0).removeAttribute('style'); I've tried several variations too, such as: movefrom = document.getElementsByName('movefrom').item(0);test_0 = movefrom.value;test_1 = document.getElementByName(test_0).item(0);test_1.removeAttribute('style'); So far, I've been able to add styles just fine, but I can't remove them. Any ideas? EDIT: I've been fiddling with this for hours, but as soon as I post, I figure it out. "getElementByName" should be "getElemenstByName". Haha. Sorry to have wasted your time.
×
×
  • Create New...