Search results

  1. M

    jQuery collapsible divs

    In your post, it's not at all clear what's going wrong, what you've done to try to fix it and what the code is supposed to do. Read "How To Ask Questions The Smart Way". What works fine? Based on what you say next, I assume you mean you're getting the images you want. If this is the case...
  2. M

    Installing Python Libraries

    Examine sys.path for the current library search path. Append to it to add your own library directory, if need be: import sys, os homelibdir = os.path.join(os.path.expanduser('~'), 'lib', 'python') if homelibdir not in sys.path: sys.path.append(homelibdir) I believe using '/' as a path...
  3. M

    help with positioning

    I assume you're talking about the fact that the "Login" link is on the far right of the navbar. This is because all the li are floated & there's space for the "login" link on the right. To fix this, you need to apply a "clear: left" to some element after #nav ends. If it weren't for IE6, you...
  4. M

    Click on image map and show alert box???

    Have you tried using a Javascript URI ? <area shape="circle" id="act" coords="274,224,4" href="javascript:void(getValue(this.id))" alt="Australian Capital Territory"> Have you tried setting the onlick handler for an area element? <area shape="circle" id="act" coords="274,224,4" nohref...
  5. M

    Javascript AddEventListener

    The Mozilla Developer Center has good documentation on addEventListener. Note that older browsers (IE6) don't support addEventListener. You can write your own wrapper (if document.addEventListener doesn't exist, test for & use attachEvent) or use a JS library, such as mootools, Prototype...
  6. M

    PHP running in basic mode on subdomain

    Looks like everything I need is working. Thanks for all your work. Out of curiosity, what was the cause? Anything interesting?
  7. M

    PHP running in basic mode on subdomain

    See http://minyan.libertatia.exofire.net/sandbox/read.php for a test page; it uses readfile to slurp in http://libertatia.exofire.net/.
  8. M

    PHP running in basic mode on subdomain

    I created the subdomain minyan.libertatia.exofire.net at least 4 days ago, but it's still running under the basic PHP configuration. The main domain (libertatia.exofire.net) runs with intermediate configuration. The particular problem this is causing is preventing readfile from opening a URL...
  9. M

    redirect with .htacess

    It's a longshot, but might content negotiation be causing problems?
  10. M

    Help with .htaccess mod_rewrite

    The rewrites will mess up includes if they're handled by Apache subrequests. And easy fix to try is to add a RewriteCond to skip subrequests before the RewriteRule(s): RewriteCond %{IS_SUBREQ} false RewriteRule ^jobs/?$ jobs.php [L] RewriteCond %{IS_SUBREQ} false RewriteRule...
  11. M

    Help with .htaccess mod_rewrite

    As an alternative to the RewriteRules, you could use MultiViews (part of content negotiation and $_SERVER['PATH_INFO'] in jobs.php rather than $_REQUEST['q'] (though you will have to process the slashes out of PATH_INFO). Then you have no problems with relative URLs in the generated webpage.
  12. M

    Some help with apache..

    Looking over the documentation for DocumentRoot (and <VirtualHost>), it looks like your options are to write a script to create the configuration (as you mentioned) or write a module if you want to automatically set DocumentRoot. If you're using Apache 1.3, the source for mod_example may be...
  13. M

    hide extension

    Use content negotiation offered by mod_negotiation, in particular the "MultiViews" option. Edit the relevant .htaccess file(s) and add: Options +MultiViewsIf you already have an Options line, add "+MultiViews" or "MultiViews" to it as appropriate.
Top