Search results

  1. M

    AJAX loading image in login page

    Then post an equivalent minimal test case, which will also help you narrow down the source of the problem. The relevant JS is: function ajax(){ var username = dojo.byId("username").value; var password = dojo.byId("password").value; dojo.xhrPost({ url: 'bypass_login.php'...
  2. M

    Different passwords for forum and hosting

    Neither the forum account name nor password have to be the same as the site/cPanel username and password. They are separate accounts, though they may (should) be linked.
  3. M

    AJAX loading image in login page

    Setting username in ajax() is fine for learning code, but let me reiterate: keep separate concerns separate (i.e. separate functionality into non-overlapping components). Network communication (as you do in ajax()) is separate from working with a form (checkSubmit() and getting the username from...
  4. M

    How to get number of uploaded bytes in php

    Good catch. Sadly, APC doesn't seem to be installed on the free hosts.
  5. M

    how to autofit a web page in any screen resolution

    Look up "elastic layout" and "fluid layout".
  6. M

    How can I block the access of directory files?

    There are many threads that cover this, such as "10hosting shows all contents of a folder!"
  7. M

    AJAX loading image in login page

    Remember that all variables in JS have a scope: global or function. You need to pass the username to the ajax function. function ajax(content){ dojo.xhrPost({ url: 'spinner2.php', handleAs: 'text', timeout: 15000, content...
  8. M

    AJAX loading image in login page

    You're setting username before the #login_name element is defined. Remember, scripts are executed when the node is processed, not after the document loads. To set username, either do it in a <script> node placed after #login_name is defined or in a document load handler, using (e.g.)...
  9. M

    I dont understand php all that much

    Read up on string syntax in PHP for more info. Note also the coloration of your code in your post, how it switches between red (within a string) and blue (not in a string), and compare it to Descalzo's (all red).
  10. M

    AJAX loading image in login page

    Missing a closing double-quote. Scripts shouldn't be in the style directory; they should be in a "scripts" or "js" directory. Also, why are you using both Prototype and jQuery? They do the same thing, more or less. Use one or the other. Two syntax problems here: missing '+' operator and extra...
  11. M

    Cannot download databases from myPHPAdmin

    Related thread: Can't export database Please report which host you are on, try the suggestions & gather the information requested in that thread and report back here.
  12. M

    Security problem with history button

    Before outputting anything, check that the visitor is authorized to view the page. If not, redirect them to a login page, including the URL of the protected page as a query parameter so the login script can redirect back to the original page. If you do it right, redirection should also prevent...
  13. M

    wayward div

    No need for that. The W3C validator takes a URL.
  14. M

    How to disable Magic Quotes?

    This topic, including workarounds, has been covered in: I have read the magic_quotes posts and still have a problem PHP/Apache Configuration A search for "disable magic quotes" will turn up both those threads and more. Remember, the search function is your friend.
  15. M

    Hellow

    I take it you didn't read the ToS. Always read the ToS. The message is explained there. The reason for the forum-login requirement is to prevent abuse of the X10 free servers and try to get users to read the news and service alerts.
  16. M

    Help moving MySQL database from old webhost to here. Gives error.

    No, there are many spaces that you need to remove. In the sample you posted, there are 19, and presumably much more in the full query. Use a scripting language (e.g. PHP, Python) or a powerful editor (e.g. emacs) to remove the spaces. Note the parenthetical comment in my previous post: this is...
  17. M

    Common Problem

    It's not hard. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Aboutghosts...
  18. M

    wayward div

    For reference, attached are screenshots of MSIE 6/Win2k & 8/XP (generated by browsershots) and Safari 4 illustrating the behavior. The document isn't valid HTML 4, transitional or strict. In particular, there's: an unclosed <h3> a <ul> as a child of a <h4> (headings can only have inline...
  19. M

    Common Problem

    Absolutely positioned elements are taken out of the normal flow and never used to calculate the height of an ancestor. If you don't want that behavior, don't use absolute positioning. Instead, use elastic layout techniques, such as floating the elements and setting "overflow" on the parent (or...
  20. M

    Help moving MySQL database from old webhost to here. Gives error.

    Take a closer look at the rest of the error, where it identifies exactly where the query is syntactically incorrect. You should see (assuming what you pasted is exactly the same as what's in the query) that it's somewhere in the hex number, right after a space. Hex numbers can't have spaces.
Top