homepage Welcome to WebmasterWorld Guest from 54.226.43.155
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
jQuery Access is denied on objects
jQuery Access is denied on objects
whyyi




msg:4602855
 7:56 pm on Aug 17, 2013 (gmt 0)

I'm working with a plugin that appears to have a json string that defines various objects.

var controls = [{'ID':'tgctlcm','RA':'False','Downloadable':'1','Name':'SupportSoft CM Check Control','XPI':'','JAR':'SupportSoft/Configuration','MIME':'application/x-SupportSoft-Configuration-Plugin','ClassID':'01113300-3E00-11D2-8470-0060089874ED','Version':'7.0.1372.0','RegKey':'','ProgID':'sdcuser.tgconfctl'},{'ID':'tgctlins','RA':'False','Downloadable':'1','Name':'SupportSoft Install Control','XPI':'SupportSoft Installer','JAR':'SupportSoft/Installer','MIME':'application/x-SupportSoft-Install-Plugin','ClassID':'01010200-5e80-11d8-9e86-0007e96c65ae','Version':'6.9.2205.0','RegKey':'nptgctlinsKey','ProgID':''}


These objects are then looped through and made available in the document:

function _getUserControl(ctlname) {
var objCM = null;
$.each(controls, function(i, v)
{
if (v.ID == ctlname) {
objCM = v;
}
});
return objCM;
}

I'm able to access these objects using the ID in the JSON string so I could access it like this:

document.tgctlcm

This works when I run it from my desktop but when I put it in a stand alone server or on a domain I get an: "Access is Denied" error anytime I try to access the object. Any idea why this would be working from the desktop but not on a server? I've been banging my head for hours on this.

 

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved