Jump to content

Obfuscation Script, Problem with Undefined Variables


Psipherious

Recommended Posts

The exact script I'm trying to get working is some code which hides the html for text or links on a page and uses ajax to display what should be in that spot on the page.

 

The scripts are down loadable here (in the zip file at the bottom of page) and the script also seems to be fully working on that site. Notice in the "Output" section.

 

http://rajeczy.com/arpad/lib/index.php?p=misc/obfuscate_ajax

 

If you run this script as it is, or at least... when I have tried running it as is, I get an error that "obr" is undefined.

 

I tried simply adding:

 

var obr;

 

But then I get a new error that "xmlhttp is null".

 

So I tried:

 

var xmlhttp = 0;

 

and a few other things similar to that, which doesn't seem to cause any additional errors, but the page / script still doesn't execute correctly and the output is not displayed or loaded.

 

I'm not really all too familiar with ajax myself, it's kind of an "on the side" thing for me, I more just focus on the php and database stuff so I'm kind of stuck with this, anyone have any idea what it is wrong with this script? Why the data isn't being displayed?

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.