Search results

  1. M

    I cant open my site...but others can view it

    Make sure your computer isn't infected with malware. There are various online malware scanners, plus various free tools to remove and prevent (preventing is much easier than removing) malware. You can also check load points by hand; autoruns is quite helpful in this task. Some malware will...
  2. M

    Help with MySQL error

    Presumably, `poll_length`has type INT. The maximum size of an INT is 2147483647 (signed) and 4294967295 (unsigned). Setting poll_length to 52254720000 is the problem (it's out of the range of valid INTs). 52254720000 seconds is 86400 weeks (52254720000 / (60*60*24*7); 86400 also happens to be...
  3. M

    Submitting a form without leaving a page

    Rather than stripping bad tags (blacklisting), allow only good tags and attributes (whitelisting) or use a lightweight markup language (e.g. BBCode, like the X10Forums, or MarkDown). If you end up allowing any HTML, don't write your own parser; use PHP's DOM or one of the other XML parsers.
  4. M

    Submitting a form without leaving a page

    In terms of sites you develop, consider page access (which cross-domain restrictions help secure) and injection attacks (which is entirely up to you to prevent).
  5. M

    Wolfenstein Server Scan will this code work on x10hosting?

    Searching (the first thing you should do when you have a question) for "open ports" or "fsockopen" would reveal the answer: no.
  6. M

    Text Translate Script using Google

    Normally, I'd say that if you want help, include a description of both the behavior you expect and the behavior you get. In this case, I won't offer any help. The script probably breaks Google's Terms of Service and might be illegal. Passing of Google's translation services as your own is...
  7. M

    AJAX: battling to parse the xml data. Please Help!

    Some things, such as using JSON.stringify and the functional programming techniques I used for xml2obj (closures and first class functions), can easily wait. You should hold off on others, such as using objects or multi-dimensional arrays, only if you're under a deadline, since they will result...
  8. M

    AJAX: battling to parse the xml data. Please Help!

    I'm not following most of your reasoning. Is this why you're joining and later splitting? Better to learn proper techniques than continue to practice poor ones. Objects and multidimensional arrays are hierarchical, like (most) modern file systems. Think of accessing elements like paths: var arr...
  9. M

    Submitting a form without leaving a page

    Do you have a particular exploit scenario in mind? The current iframe security model goes a long way towards securing iframes. Bugs in the implementation of same still present exploits, however, and XSS exploits are ever a problem.
  10. M

    AJAX: battling to parse the xml data. Please Help!

    Put it in a single object, or hide the additional functions in the scope of another function, but monolithic functions are a bad thing. As with the larr issue, they hide problems due to being hard to read. Another issue that's hard to see (and the source of the problem with the service, supplier...
  11. M

    AJAX: battling to parse the xml data. Please Help!

    If only E4X was supported on more browsers. Try breaking down the one large function into smaller functions, each of which performs a single, well-defined task. You'll notice things like you're overwriting larr each time through the for (var l loop.
  12. M

    double space and bandwidth

    Whenever you're seeing server problems, check the Service Alerts forum (recent posts are also linked in the Server Alerts panel of cPanel, though that might not be accessible if the server is having problems). If you're on Chopin, you'll see that it's been under a DoS attack. It looks like it...
  13. M

    AJAX: battling to parse the xml data. Please Help!

    The right curly brace on line 94 matches the left curly brace after the "for (var o = 0; o < order.length; o++)" statement (line 38, by my calculations). It looks like you're missing a right curly brace before line 94. Look for an auto-indenting, paren-matching editor. Emacs is one option...
  14. M

    $_SESSION[] clearing can't execute login script!!!

    This thread belongs in the Programming Help forum. Perhaps an admin will move it. When asking for help with web development, include a link to a live page. As it stands, there doesn't appear to be enough information to diagnose the problem. Could you be more specific about the behavior you...
  15. M

    Submitting a form without leaving a page

    Iframes count as AJAX, believe it or not. XMLHttpRequest is just a newer option. Iframes are still used, especially if you want cross-domain communication.
  16. M

    Submitting a form without leaving a page

    Use AJAX rather than submitting the form. You can add a submit handler to the form that cancels the default action (to prevent the form handler page from loading).
  17. M

    Applet loads but is hidden in Firefox

    Sorry, I had the wrong element (should have looked at the source first; the 2nd child is a <br/>). The sidebar is body :nth-child(4). Note you'll have to add the style inline, otherwise the current inline style will override your changes. Edit: nevermind about checking. The page style has...
  18. M

    Html Editing

    KompoZer and Amaya both offer split-view editing, placing a rendered view of the page next to the source view (Amaya also offers a tree view & others, and lets you switch between a horizontal or vertical split layout). When you click on an element in the rendered view, KompoZer will display the...
  19. M

    Applet loads but is hidden in Firefox

    Flyingt already changed the positioning, so the display problem is gone. What happens if you change the positioning of the sidebar div (body > :nth-child(2)) to "absolute" using Firebug? Thanks for reminding me. I forgot to report I tested on FF 3.5.6/Vista. Flyingt, what are your browser and...
  20. M

    Applet loads but is hidden in Firefox

    That's what's so curious. I suspect a browser bug. I meant why the whole set-up. If the game div didn't have fixed positioning, you wouldn't have two scroll-bars, hence no need to set overflow on <body> to hidden. You could simply rely on <body>'s scrollbars. Setting the sidebar to fixed...
Top