+ Reply to Thread
Results 1 to 4 of 4

Thread: asp? hijacking page divs on load

  1. #1
    Join Date
    Jul 2010
    Posts
    2

    Default asp? hijacking page divs on load

    Hey forum - total Bluehost newb here.
    Attempting to upload to a clients existing site. My jQuery/php/mysql fiasco works fine from my server but in clients directory something (asp? non standard php.ini?) is hijacking divs with certain names and overwriting my style sheets on load. Obviously not a Bluehost problem, some previous freelancer has left all manner of php etc. I've figured out a temp workaround (rename the divs) but WTF? I've suggested backing up and wiping the site, the obvious solution. Client has panicked and wants to move hosts(?!?).
    Any .asp savants out there have any ideas? I don't have (unbillable) time to go spelunking through the legacy code but I sure am curious.

    Thanks in advance for ideas, links, flames.

  2. #2
    Join Date
    Feb 2006
    Location
    Florida, USA
    Posts
    1,349

    Default

    Bluehost runs linux boxes, so no ASP.

    You haven't given any information that would provide clues to what the problem is, we don't know what the divs were called, what you mean by "hijacked," what's being used to parse the page. All we know is renaming the divs solves the problem.
    Advice is seldom welcome; and those who want it the most always like it the least.

  3. #3
    Join Date
    Jul 2010
    Posts
    2

    Default more info on div hijack

    Thanks for getting back.
    Page is static html calling jQuery libraries. A div named "right" loads the header used on the existing site and and file not found error and overwrites the css. Renamed as "newright" the page delivers fine. As I'm about to upload some simple php, which works fine elsewhere, I'm still nervous. Any ideas or information appreciated. Thanks.

    last edit - fixed(?)
    deleted some files including two .htaccess files. *seems* to be fixed.
    Leaving this up for anyone finding this on search.
    Last edited by nyc; 07-28-2010 at 08:01 AM. Reason: fixed

  4. #4
    Join Date
    Feb 2006
    Location
    Florida, USA
    Posts
    1,349

    Default

    It sounds like javascript was replacing the contents of your div, but couldn't read the file it was supposed to be loading into it. Your htaccess files may have been redirecting the requests, or preventing access to the files.

    As a side note, AJAX can't load files outside the current domain for security reasons.
    Last edited by Basil; 07-29-2010 at 04:20 PM.
    Advice is seldom welcome; and those who want it the most always like it the least.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts