Asset Map - selecting assets problem

We are having a problem with the asset map and being able to select assets in both admin and simple edit mode (ie adding permissions, workflow, metadata schemas, links etc.)


It works on some PCs, on others it turns the asset map purple but you can't select anything and others it just does not do anything.



Different browsers on the same PC give different results. Currently IE7 works, FF3.5 turns asset map purple only on this PC.



Any ideas where to look?

[quote]
We are having a problem with the asset map and being able to select assets in both admin and simple edit mode (ie adding permissions, workflow, metadata schemas, links etc.)



It works on some PCs, on others it turns the asset map purple but you can't select anything and others it just does not do anything.



Different browsers on the same PC give different results. Currently IE7 works, FF3.5 turns asset map purple only on this PC.



Any ideas where to look?

[/quote]



Try firing up the Error Console in Firefox (under Tools). Hit Clear and then refresh the _admin page. You'll probably want to close any other pages you have open before doing this to make certain you're only seeing errors from Matrix.



My guess is that what is happening is that some piece of onload code is failing before the point that the asset map is assigned to a global variable. As for why, there's more chance of knowing if we get an error.

[quote]
Try firing up the Error Console in Firefox (under Tools). Hit Clear and then refresh the _admin page. You'll probably want to close any other pages you have open before doing this to make certain you're only seeing errors from Matrix.



My guess is that what is happening is that some piece of onload code is failing before the point that the asset map is assigned to a global variable. As for why, there's more chance of knowing if we get an error.

[/quote]

We run different browsers in development and haven't encountered this issue. Which version of Matrix is being used?

If this can be replicated in your environment, please provide exact replication details so we can take a look. If it can also be replicated in our environment then we need to get this escalated for resolution in Monday's releases.



Cheers

[quote]
My guess is that what is happening is that some piece of onload code is failing before the point that the asset map is assigned to a global variable. As for why, there's more chance of knowing if we get an error.

[/quote]

You mean like:


    Warning: assignment to undeclared variable ASSET_FINDER_OTHER_ONUNLOAD
    Source File: http://slwa.wa.gov.au/__lib/asset_map/asset_map.js
    Line: 383


    Warning: test for equality (==) mistyped as assignment (=)?
    Source File: http://slwa.wa.gov.au/__lib/asset_map/asset_map.js
    Line: 28, Column: 58
    Source Code:
     if (matches = navigator.userAgent.match(/MSIE ([0-9.]+)/)) { 


and then roughly 80 off these
    Warning: reference to undefined property this[arguments[0]]
    Source File: XPCSafeJSObjectWrapper.cpp
    Line: 450

It was cross domain scripting error:
worked on base URL slwa.wa.gov.au

but not on other URLS cms.slwa.wa.gov.au and www.slwa.wa.gov.au hence why it worked on some machines and not others, on some browsers but not others



Solution add all URLs as root domains

[quote]
It was cross domain scripting error:

worked on base URL slwa.wa.gov.au

but not on other URLS cms.slwa.wa.gov.au and www.slwa.wa.gov.au hence why it worked on some machines and not others, on some browsers but not others



Solution add all URLs as root domains

[/quote]



Cool, well spotted :slight_smile: