By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,730 Members | 1,546 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,730 IT Pros & Developers. It's quick & easy.

menuDrop command

P: 17
Hi there,

I'm not sure if this is the right forum for this, but I am using the Rational Media Content Management system and I am unable to see any of the pages I wish to edit on my PC.

However I notice that when I click on the 'Pages' option, it tries to invoke the following Java command:

javscript: menuDrop('Pages')

and then everything just 'hangs' instead of the pages appearing. Has anyone got any ideas? I am using IE7 with sp2 by the way.

John
Feb 24 '09 #1
Share this Question
Share on Google+
26 Replies


Expert 10K+
P: 11,448
Are you sure you don't want to ask this question in a Javascript forum? This is a Java forum and both languages are quite different. Let me know and I'll move your question for you.

kind regards,

Jos (moderator)
Feb 24 '09 #2

P: 17
Yes if you could move it for me I would be grateful.

Many thanks

John
Feb 24 '09 #3

acoder
Expert Mod 15k+
P: 16,027
Two quick things:
1. Have you enabled JavaScript?
2. It should be "javascript:", though depending on what it is, that may not be required.

Post some of the code on the page.
Feb 24 '09 #4

P: 17
Thanks for the reply acoder.

Coming from an background as an IT analyst, you'll forgive me if I am not very techie about this.

There is a radio button in IE:

tool/options/advanced

Use JRE 1.6.0.07

which I have ticked. I presume this is referring to the Java runtime environment. Is there anything else I should have ticked?

Regards

John
Feb 24 '09 #5

acoder
Expert Mod 15k+
P: 16,027
That's for Java (very different from JavaScript). To enable JavaScript, see this link.
Feb 24 '09 #6

P: 17
Many thanks for this acoder.

I have tweaked the security settings, as you suggeted, but to no avail, even after a restart.

I have dug out some code using the 'view source' link in ie.

Would it be useful if I pasted this into the forum? I thought it looked quite dense.

Regards

John
Feb 24 '09 #7

P: 17
Hello again acoder.

I will attempt to send the code as an attachment.

Hope this helps.

John
Attached Files
File Type: txt JScriptcode0224.txt (7.7 KB, 227 views)
Feb 24 '09 #8

acoder
Expert Mod 15k+
P: 16,027
It seems as though the code for the menuDrop function is in the admin_common.js file which is in the "javascript" folder. If you could post that, it may help pinpoint the problem.

One other thing: do you see any errors when you click the link?
Feb 24 '09 #9

P: 17
Many thanks again for this acoder. I presume the file you mention is a local file on my PC? If so I will dig it out.

There are no error messages that I can see.

Regards

John
Feb 24 '09 #10

P: 17
Hello again Acoder

The only Javascripts I can see on my PC is in the Adode folder for the Acrobat reader, which I don't think has anything to do with the application I am trying to run.

Regards

John
Feb 24 '09 #11

acoder
Expert Mod 15k+
P: 16,027
It depends on whether you're running this locally or not. Is this CMS online?

Wherever it is, just look in that folder and look for a folder named "javascript" which should have the JavaScript file.
Feb 24 '09 #12

P: 17
Hello again acoder.

It is an onlne version of the CMS I am running, so I don't have access to this file. I will get in touch with 'Torchbox' who maintain the CMS on behalf of the MS Society. I will be in touch, however.

John
Feb 24 '09 #13

acoder
Expert Mod 15k+
P: 16,027
If it's online, perhaps you could post the link. If not, you can get to the file by using the path, e.g. if the page you're on is located at say http://www.rm.com/main/index.php, then the JavaScript file would be at http://www.rm.com/main/javascript/admin_common.js

This is because the only JavaScript file that I can see is via this line:
Expand|Select|Wrap|Line Numbers
  1. <script type="text/javascript" src="/javascript/admin_common.js"></script>
Feb 24 '09 #14

P: 17
Many thanks acoder, I will give this a try.
Feb 25 '09 #15

P: 17
In fact the full path is http://www.mssociety.org.uk/admin/index.rm acoder.

I think I may have to dig out my ftp program!
Feb 25 '09 #16

P: 17
I think I may have to admit defeat on this one, acoder. I believe I need an FTP login to the MS Sociey's site to achieve what you're suggesting.

Thanks for your help anyway

John
Feb 25 '09 #17

acoder
Expert Mod 15k+
P: 16,027
No, you don't. I've found the file at http://www.mssociety.org.uk/javascript/admin_common.js

The menuDrop function is defined within that file. Now the next step is to actually see the page in question where the code is used.
Feb 25 '09 #18

P: 17
Thanks for the reply acoder,

After logging into the MSS site I tried invoking the link you suggested.

Unfortunately I had a message saying that my security settings don't currently allow access to this file.

Have you got any suggestions on how I may overcome this?

Regards

John
Feb 25 '09 #19

acoder
Expert Mod 15k+
P: 16,027
I can access the file without logging in. Just click the link that I posted.
Feb 25 '09 #20

P: 17
Hello again acoder,

When I try cliking the link you supplied it just opens my browser (Firefox in this case) and just presents me with a blank screen. Should I be looking at this from a command line?

John
Feb 25 '09 #21

P: 17
Some additional information about this problem, for some starnge reason I can see the relevant RM options appearing OK on my son's laptop. This is a place I prefer not to go, but he is in school now.

So whatever the problem is must be on my desktop.

John
Feb 25 '09 #22

acoder
Expert Mod 15k+
P: 16,027
Can you use other sites which use JavaScript OK on your desktop?
Feb 25 '09 #23

P: 17
Well there may be a query about this. I notice that on the Nationwide Internet banking site I am not able to use its functionality 100% and sometimes things just 'hang'.

I will try and get the page I should be accessing in the MSS site, if this helps.

John
Feb 25 '09 #24

P: 17
I think I have found the page I'm trying to hit, acoder.

The txt file I have enclosed as an attachment.

HTH

Regards

John
Attached Files
File Type: txt MSSpage0225.txt (7.0 KB, 208 views)
Feb 25 '09 #25

P: 17
Hello again acoder,

Happy days, I have finally cracked it! There was some old Norton Firewall software hanging around on my PC which I have removed and am now using the XP sp2 firewall.

I'm not sure if this is completely desirable, but by RM access is now OK.

Once again many thanks for your help.

Regards

John
Feb 25 '09 #26

acoder
Expert Mod 15k+
P: 16,027
That's good news! Thanks for posting. I would suggest you try another firewall or maybe configure Norton to allow scripts to run, but that's another topic.
Feb 25 '09 #27

Post your reply

Sign in to post your reply or Sign up for a free account.