Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

9 Neutral

About Fmdpa

  • Rank
    Dedicated Member

Previous Fields

  • Languages

Contact Methods

  • Website URL
  • ICQ

Profile Information

  • Location
    United States
  1. Thanks for posting your observations, Don. I wonder if it would be possible to link to resources using the URL syntax that Google CDN uses: <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>I'm assuming that would automatically prepend the current protocol. Of course, this wouldn't work if certain resources could only be served over HTTP. I may get a totally free certificate from StartCom. So far, it seems to be the best free option I have found. I think this site uses it, and the HTTPS aspect of the site has functioned just fine for me.
  2. That's something that concerned me. I don't want to make the website difficult for users to utilize; I want to avoid unnecessary annoyances like that. So a certificate from a CA is probably the best way for me to go. Thanks for mentioning that, Don!
  3. No, I am just using a shared server. I couldn't think of a better forum on which to post it. Thanks for your input; I'm looking forward to hearing if you learn anything!
  4. In my current website project, I would like to design a secure area for members. I have built basic login systems before, but I want to build something more secure this time. One of the things I would like to do it route requests using the HTTPS protocol. In my research on how to do this, I have been starting to learn about SSL certificates. As I understand it, in order to create an SSL encrypted connection that users can be confident in, I must purchase a certificate from a certificate authority (CA). I am questioning whether I really need to do this, though. Neither money nor information
  5. Are you talking about the main background gradient, or the active tab gradients? This is what it has looked like for me: http://prntscr.com/dgpd3 Taken in FF 14, but it's been like that since I created the website months ago. FF doesn't seem to like the % values for the gradient positioning. Shouldn't it work? Am I doing something wrong?
  6. I have a "pushed down" effect applied to active tabs in a navigation bar I made. It works in Opera, Safari, and Chrome. However, Firefox doesn't do the gradients for me. Is this Firefox's problem, or a syntactical error? Relevant code: #header .active { background-color: #eee; background-image: -moz-radial-gradient(-2% 68%, 6% 47%, rgba(0, 0, 0, 0.5059), rgba(0, 0, 0, 0)), -moz-radial-gradient(102% 68%, 6% 47%, rgba(0, 0, 0, 0.5059), rgba(0, 0, 0, 0)), -moz-linear-gradient(bottom, rgb(238, 238, 238), rgb(193, 193, 193) 35%, rgb(238, 238, 238)); background-image:
  7. Fmdpa

    JSON trouble

    Done. I wonder if I should file bug reports for the different browsers that stringify an object in such a way that it is unparseable.
  8. Fmdpa

    JSON trouble

    Absolutely; it makes no logical sense that the results of stringify would be unparseable, or, that the results of running an object through stringify and parse would create an object having contents different than the original object.
  9. Fmdpa

    JSON trouble

    Hmm, very strange. This inconsistency seems serious. Dragonfly parses this as you described: JSON.parse('["(site\\\\.com)"]') => ["(site.com)"] But the Firefox console does something still different. If you run this command: JSON.parse('["(site\\\\.com)"]') You will get an bad escaped char error. ...I just checked, and it doesn't do this anymore in Firefox Aurora. It will parse it as this now: ["(site\\.com)"]
  10. Fmdpa

    JSON trouble

    Wait a minute...now it is parsing this file successfully! https://raw.github.com/cyberstream/Fix-the-Web-CSS-Patches/master/patches.json Thanks everyone for your help!
  11. Fmdpa

    JSON trouble

    Good, I didn't realize that it actually came out parsed with a single slash escaping the period. I know that the RegExp is in string form right now, but I'm trying to figure out how to parse the JSON file fetched from Github so that the string is ready to be used to create a regular expression. Here's the problem. Try running this in your Javascript console: JSON.parse('["(site\\.com)"]') I get this error: Unhandled Error: JSON.parse: Invalid escape char: "(site\ This, however, works: var stringifiedObj = JSON.stringify(["(site\\.com)"]), r = JSON.parse(stringifiedObj); Once
  12. Fmdpa

    JSON trouble

    I need to find some way to escape metacharacters in the regular expression and in JSON.
  13. Fmdpa

    JSON trouble

    JSON will stringify this: ['/site\\.com/'] As this: "["/site\\.com/"]" That's a literal backslash in regex.
  14. Fmdpa

    JSON trouble

    Yes, I modified the JSON last night after I found some the jsonlint validation tool. But if you look at the regular expressions, you'll see that one of the things I had to do to make it validate was unescape the periods. Consequently, they are no longer literal periods. They are metacharacters now. I don't want them to be the "." metacharacter, though. Is there any way to work around this?
  15. Fmdpa

    JSON trouble

    OK, thanks. Here's the problem I'm having. When I fetch the file from Github with AJAX, it automatically returns the contents of the JSON file in the responseText property....as a string. The problem is, when JSON objects are converted to a string with a method such as JSON.stringify(), it is not merely "stringified". Certain characters are escaped so that it will be parseable. Unfortunately, the reponse text is already a string and since it was not encoded with JSON.stringify, it is likely not parseable. Is there a solution to this predicament?
  • Create New...