Search results

  1. M

    Applet loads but is hidden in Firefox

    The standard way is to use AJAX, but a Java applet will work fine. If you want to try AJAX, I say go for it. Javascript is simpler than Java, so don't worry about learning a new language. It's still quite elegant, despite (because of?) its simplicity. The only thing that might seem odd is JS's...
  2. M

    stupid colours in theme

    If you're having problems with colors, you could try a color design tool, such as the Color Scheme Designer 3 and the Color Wizard. I don't know if it's any good, but AVIVADirectory lists many other color resources. The tools are based on color theory. Color theory isn't the only way of...
  3. M

    Redirect Problems

    Without knowing what forum you're using, it's impossible to say how to configure it. Check the docs for your forum. You set the site name once the first time you configured the site, so you should be able to do it again.
  4. M

    ASP.NET throwing GDIPlus.dll exception

    Hee-hee. Hue's been kissing X10 ASP.Net, with drastic consequences. Just in case you haven't read it, check out the "How to get ASP.Net to work at x10Hosting" tutorial. If you haven't tried it already, read Hue's suggestion from another thread to try to install GDIPlus.dll with your web app...
  5. M

    More efficient PHP form validator?

    Server-side, you could use one of the filter functions. filter_var_array can filter a whole array of data in one call. Alternatively, hold verification information (REs, functions) in an ancillary data structure. Loop over the input array, applying the verification info for each input field...
  6. M

    Backups and PHP version

    Sometimes you need to use Google rather than the forum search. Ignore the account panel; the basic version of PHP isn't used right now, and almost no-one will be approved for a version with system() or exec() enabled. To backup files, you don't need to run anything on the X10 server, you can...
  7. M

    Javascript: Confirm a page exit

    It turns out you need to use the beforeunload event, which works differently than other events. The event handler returns the string to display in the confirmation dialog. Basically, do what Twinkie shows, but assign confirm to window.onbeforeunload. Note that this event isn't a standard event...
  8. M

    Javascript: Confirm a page exit

    To cancel an event from an inline event handler, you need to return "false". Using DOM event registration, you'd call the event object's preventDefault method.
  9. M

    Wtf facebook?!

    Not that I care about Facebook, I just abhor the twonks that spam and phish. 96494dbfaecc54ea022aa631c3101f2c I'd post that encoded using base64, but I don't want to violate the acceptable use policy.
  10. M

    [PHP] Search a multidimensional array

    Agreed, the original post was underspecified. I also agree your solution works if only first chapters in section are valid input. However, my point was that Diabolo may want (someday, if not today) to allow other chapter numbers to be used as input, since it's more robust. As long as sections...
  11. M

    Javascript window.open specs not working

    What browser are you using? Some browsers (e.g. Firefox) can be configured to force rendering of some chrome elements, no matter what features are requested in the call to window.open. By default, Firefox forces resizing and the location and status bars. Use the [code], [php] or [html] tags as...
  12. M

    [PHP] Search a multidimensional array

    You shouldn't need to do everything twice. Just set up the design server as a mirror of the production server. Alternatively, have a configuration script that sets DB configuration options, such as user, password, database and table names. If all you need to do with the data is fetch a single...
  13. M

    [PHP] Search a multidimensional array

    What do the contents of $_GET['cls'] and $_GET['ch'] look like? "classN" and an integer? Given that each chapter list in each class array is a range of chapters, you'll need to implement your own search. As long as the chapter ranges are in ascending order (as in the sample), you can use...
  14. M

    problems with php on my website

    The linked page has an opening <?php tag, which the browser tries to parse as an HTML tag, and an extension of ".php". The page is missing a closing ?>, though that's optional. Anyway, Bryon already solved this problem. ekramy has been cross-posting.
  15. M

    sIFR3

    Is that an ad, or is there a question or comment somewhere?
  16. M

    Redirect Problems

    Are you using third party or custom system (e.g. a CMS, forum, blog) for your website? If third party, which one? Chances are you need to reconfigure that. Your best bet is to leave the server name out of links, if possible.
  17. M

    How to hosting an asp.net application

    The particular difficulty is the X10 servers run a Linux distro, so MS SQL Server isn't available. If you developed the application to use MySQL, however, it's certainly possible. Searching the forums reveals threads that cover how to use ASP.Net with MySQL on X10 (always search before starting...
  18. M

    problems with php on my website

    Have you been editing .htaccess in ~/public_html/ or ~/public_html/faq? If so, what have you done? Post the actual configuration, not just a description of what you were trying to accomplish. You can try re-enabling PHP processing with: AddHandler application/x-httpd-php5 .php On an...
Top