Topic: JS works on my machine.. but not on my bosses machine WHY!!!!! (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=29239" title="Pages that link to Topic: JS works on my machine.. but not on my bosses machine WHY!!!!! (Page 1 of 1)" rel="nofollow" >Topic: JS works on my machine.. but not on my bosses machine WHY!!!!! <span class="small">(Page 1 of 1)</span>\

 
paritycheck
Bipolar (III) Inmate

From: you tell me
Insane since: Mar 2004

posted posted 05-30-2007 08:39

Hi guys, something weirds happening with my project at the moment. I've put in a lot of nice ajax and those animated scriptaculous effects but for some weird reason some of the javascript isn't running on my bosses machine - infact it doens't work in any machine in my bosses room? Like I've programmed a page with a user list link - clicking on the link results in an ajax request processed returning details of the user whose link is clicked. It works fine on my pc and in other pcs in teh room Im working.

I installed firebug on my bosses machine and from what I noticed is that the ajax function is being called and its returning the whole required request JUST as it shoudl BUT its not displaying the returned values ie for some reason teh callback function doesn't seem to be doing its job at all!!!

The weird thing is that some javascript is running on my bosses machine - some ajax calls run fine but this particular one ajax call doesn't.. I'm in a fit I have no idea whats the problem... it can't be a code issue for it makes no sense for the same code to not execute in teh same browser in a different room????

Help guys !!!

mas
Maniac (V) Mad Librarian

From: the space between us
Insane since: Sep 2002

posted posted 05-30-2007 12:22

code?

The Space Between Us | My Blog: lukas.grumet.at

hyperbole
Paranoid (IV) Inmate

From: Madison, Indiana
Insane since: Aug 2000

posted posted 05-30-2007 18:22

Which browsers are involved? What operating systems are you and your boss using? What are the differences between the two machines?

.



-- not necessarily stoned... just beautiful.

paritycheck
Bipolar (III) Inmate

From: you tell me
Insane since: Mar 2004

posted posted 05-31-2007 10:49

Well... we're both using the same firefox browser... my boss is running XP while I'm working upon 2000. However this doesn't seem to be the issue for the other machines in my room also run XP and they have no problem with the code running. Whats weird is that I checked using firebug on my bosses machine what was happening from teh ajax call.

The weird part is that the ajax call is returning the correct response. Teh callback function for some reason is not running at all???? All the callback JS function is supposed to do is to simply put all the response from teh ajax call in a div on the page - and its not doing that????

Apart from that there seems to be no other visible difference between the systems - except that the JS runs on one but not on the other

Tyberius Prime
Maniac (V) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 06-01-2007 00:22

So javascript runs in principle - does the callback function even get called? Maybe something is mangleing its name ( think norton internet security proxy...)

paritycheck
Bipolar (III) Inmate

From: you tell me
Insane since: Mar 2004

posted posted 06-02-2007 07:38

Can Norton internet security actually interfere with the javascript in such a case? I don't think that teh call back function is even gettingc alled - I tried to put a couple of alerts in the function but it never gets executed - plus firebug doesn't show any error. I'll have to confirm if my boss has installed Norton on his PC - but how does that mess with the Javascript??

Tyberius Prime
Maniac (V) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 06-02-2007 11:32

Such 'solutions' often have a filtering proxy (ie. it messes with the content being delivered) to block javascript based popups.
If there's such a solution, have a close look at the javascript that actually arrives in your boss' browser..

paritycheck
Bipolar (III) Inmate

From: you tell me
Insane since: Mar 2004

posted posted 06-10-2007 16:36

Yup you were right Tyberias. My code was returning raw HTML with hyperlinks so I guess that explains why itw asn't rendering. So I just passed the html as a JSON encoded string and voila it works.

Thanks to everyone at the Asylum...



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu