X
Tap here to go to the mobile version of the site.

Support Forum

Javascript not working

Posted

When I visit this site:http://www.apolloarchive.com/apollo_gallery.html I can no longer see the image thumbnails when I click on the image IDs. I contacted the site owner, and he said it worked for FF on his computer, but I'm afraid my javascript isn't working here. I did everything, cleared the cookies, ran Safe Mode, checked options- though i may have goofed. And I'm almost sure javascript is enabled here. I have Win XP. I don't want to check another browser; if the problem is here than it needs fixing. I'm waiting more word from the site owner, but I tried everything he suggested. So what do I do? Do I download another Javascript?

When I visit this site:http://www.apolloarchive.com/apollo_gallery.html I can no longer see the image thumbnails when I click on the image IDs. I contacted the site owner, and he said it worked for FF on his computer, but I'm afraid my javascript isn't working here. I did everything, cleared the cookies, ran Safe Mode, checked options- though i may have goofed. And I'm almost sure javascript is enabled here. I have Win XP. I don't want to check another browser; if the problem is here than it needs fixing. I'm waiting more word from the site owner, but I tried everything he suggested. So what do I do? Do I download another Javascript?

Chosen solution

Let's divide the two issues:

(1) Firefox 21 install

By default, Firefox is installed here on Windows XP (32-bit):

C:\Program Files\Mozilla Firefox

If that's where your Firefox is located -- you can inspect your Firefox desktop shortcut to check -- then you did not install it in a strange location. Running the Firefox 21 installer should replace the Firefox 22 beta installation with Firefox 21, and pick up your current settings.

(2) Bookmarklet

An example of a popular bookmarklet is the Pinterest "Pin It" button you can drag to your Bookmarks Toolbar. Since this forum doesn't let us post draggable buttons that way, you have to create the bookmarklet in 4 steps.

(i) select and copy cor-el's script (Ctrl+c or right-click > Copy)

(ii) right-click the Bookmarks Toolbar and choose New Bookmark

(iii) paste the script into the Location field

(iv) Enter a short name for the button into the name field (e.g., FixApollo)

When you're on the site, clicking that button once will modify the scripts so that the links work. It should last until you leave and return to the page.

Read this answer in context 1

Additional System Details

Installed Plug-ins

  • Next Generation Java Plug-in 10.21.2 for Mozilla browsers
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • Shockwave Flash 11.7 r700
  • The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
  • Google Update
  • Adobe PDF Plug-In For Firefox and Netscape 10.1.7
  • Adobe Shockwave for Director Netscape plug-in, version 12.0.2.122
  • Picasa plugin
  • GEPlugin
  • A component of your photo software powered by RocketLife
  • 5.1.20125.0
  • Autodesk 123D - 1.0.5
  • Yahoo Application State Plugin version 1.0.0.7
  • Fun Web Products Plugin Stub for 32-bit Windows
  • Motive Plugin for Mozilla Browsers
  • DRM Netscape Network Object
  • Npdsplay dll
  • DRM Store Netscape Plugin
  • Windows Presentation Foundation (WPF) plug-in for Mozilla browsers

Application

  • Firefox 22.0
  • User Agent: Mozilla/5.0 (Windows NT 5.1; rv:22.0) Gecko/20100101 Firefox/22.0
  • Support URL: http://support.mozilla.org/1/firefox/22.0/WINNT/en-US/

Extensions

  • Troubleshooter 1.1a (troubleshooter@mozilla.org)
  • Microsoft .NET Framework Assistant 0.0.0 ({20a82645-c095-46ed-80e3-08825760534b}) (Inactive)

Javascript

  • incrementalGCEnabled: True

Graphics

  • adapterDescription: Intel(R) 82945G Express Chipset Family
  • adapterDescription2:
  • adapterDeviceID: 0x2772
  • adapterDeviceID2:
  • adapterDrivers: igxprd32
  • adapterDrivers2:
  • adapterRAM: Unknown
  • adapterRAM2:
  • adapterVendorID: 0x8086
  • adapterVendorID2:
  • direct2DEnabled: False
  • direct2DEnabledMessage: [u'blockedDriver']
  • directWriteEnabled: False
  • directWriteVersion: 0.0.0.0
  • driverDate: 1-13-2007
  • driverDate2:
  • driverVersion: 6.14.10.4764
  • driverVersion2:
  • info: {u'AzureCanvasBackend': u'skia', u'AzureFallbackCanvasBackend': u'cairo', u'AzureContentBackend': u'none'}
  • isGPU2Active: False
  • numAcceleratedWindows: 0
  • numAcceleratedWindowsMessage: [u'tryNewerDriver', u'6.1400.1000.4926']
  • numTotalWindows: 1
  • webglRendererMessage: [u'tryNewerDriver', u'6.1400.1000.4926']
  • windowLayerManagerType: Basic

Modified Preferences

  • browser.cache.disk.capacity: 358400
  • browser.cache.disk.smart_size.first_run: False
  • browser.cache.disk.smart_size.use_old_max: False
  • browser.cache.disk.smart_size_cached_value: 358400
  • browser.places.smartBookmarksVersion: 4
  • browser.search.useDBForOrder: True
  • browser.startup.homepage: https://mail.google.com/mail/u/0/?shva=1#inbox
  • browser.startup.homepage_override.buildID: 20130612084701
  • browser.startup.homepage_override.mstone: 22.0
  • dom.disable_open_during_load: False
  • dom.disable_window_flip: False
  • extensions.lastAppVersion: 22.0
  • font.name.serif.x-western: Arial Rounded MT Bold
  • font.size.variable.x-western: 22
  • network.cookie.prefsMigrated: True
  • places.database.lastMaintenance: 1371331882
  • places.history.expiration.transient_current_max_pages: 26547
  • plugin.disable_full_page_plugin_for_types: application/pdf
  • plugin.importedState: True
  • privacy.sanitize.migrateFx3Prefs: True

Misc

  • User JS: No
  • Accessibility: No
jscher2000
  • Top 10 Contributor
8635 solutions 70637 answers

Did this site work for you in Firefox 21?

JavaScript is a built-in feature of Firefox, so there's nothing additional to download to enable it. If it is enabled on the following tab, it's enabled:

orange Firefox button (or Tools menu) > Options > Content

Could you check for a script error message in the Error Console? After load the page with the links you want to test, open the Error Console using Ctrl+Shift+j and click the Clear button. Then try the link and see if any new messages appear in the Error Console.

Did this site work for you in Firefox 21? JavaScript is a built-in feature of Firefox, so there's nothing additional to download to enable it. If it is enabled on the following tab, it's enabled: orange Firefox button (or Tools menu) > Options > Content Could you check for a script error message in the Error Console? After load the page with the links you want to test, open the Error Console using Ctrl+Shift+j and click the Clear button. Then try the link and see if any new messages appear in the Error Console.

Question owner

I checked the Error console and yes there were errors even after I cleared the console and hit the link again. So what do I do?

I checked the Error console and yes there were errors even after I cleared the console and hit the link again. So what do I do?
jscher2000
  • Top 10 Contributor
8635 solutions 70637 answers

Sorry, but what are the errors? If you right-click you can copy them and then paste them here. To keep the lines from running together, you can add a single space before each line.

Sorry, but what are the errors? If you right-click you can copy them and then paste them here. To keep the lines from running together, you can add a single space before each line.

Question owner

This is what I got. I couldn't copy/paste properly so I did a screen shot.

This is what I got. I couldn't copy/paste properly so I did a screen shot.
jscher2000
  • Top 10 Contributor
8635 solutions 70637 answers

Could you click the Errors button to filter out all the style warnings?

Edit: The errors I'd like to see are any errors that occur when you click the link to display the thumbnail.

Could you click the Errors button to filter out all the style warnings? ''Edit: The errors I'd like to see are any errors that occur when you click the link to display the thumbnail.''

Modified by jscher2000

Question owner

Oh, ok. Sorry, I'll do that

Oh, ok. Sorry, I'll do that

Question owner

Does this help? I clicked a thumbnail, etc.

Does this help? I clicked a thumbnail, etc.

Modified by den-arn

jscher2000
  • Top 10 Contributor
8635 solutions 70637 answers

Thank you for posting that. Could you try a little experiment? If you open the web console and run this line of script, do you get back a URL?

Ctrl+Shift+k (opens and closes the Web Console)

Type or paste parent.sidebar.location.href and press Enter

If you still get "undefined", this could be a difference between Firefox 22 and Firefox 21; I don't have the beta installed.

Thank you for posting that. Could you try a little experiment? If you open the web console and run this line of script, do you get back a URL? Ctrl+Shift+k (opens and closes the Web Console) Type or paste '''parent.sidebar.location.href''' and press Enter If you still get "undefined", this could be a difference between Firefox 22 and Firefox 21; I don't have the beta installed.

Question owner

Yes, exactly. That's what I get. Does this mean I need to remove Beta & go back to FF 21?

Yes, exactly. That's what I get. Does this mean I need to remove Beta & go back to FF 21?
jscher2000
  • Top 10 Contributor
8635 solutions 70637 answers

I think it could be Firefox 22, but before you change it -- unless this site is super-important for you right at the moment -- you might wait to see whether someone else can confirm that. If not, then it could be something else.

I think it could be Firefox 22, but before you change it -- unless this site is super-important for you right at the moment -- you might wait to see whether someone else can confirm that. If not, then it could be something else.
cor-el
  • Top 10 Contributor
  • Moderator
17415 solutions 157321 answers

In Firefox 22 and later: parent.sidebar : [object XPCWrappedNative_NoHelper]
In Firefox 21 : parent.sidebar : [object HTMLDocument]

In Firefox 22 and later: parent.sidebar : [object XPCWrappedNative_NoHelper]<br /> In Firefox 21 : parent.sidebar : [object HTMLDocument] *http://mxr.mozilla.org/mozilla-central/source/js/xpconnect/src/XPCWrappedNativeJSOps.cpp#686

Modified by cor-el

Question owner

How do I change it back?. I use that site a lot.

'''How do I change it back?. I use that site a lot.'''
cor-el
  • Top 10 Contributor
  • Moderator
17415 solutions 157321 answers

This works for me:

parent.document.getElementsByName("sidebar")[0].contentDocument.location.href
function disptn(ptr,imageID) {

parent.document.getElementsByName("sidebar")[0].contentDocument.location.href
 = "apg_thumbnail.php?ptr=" + ptr + "&imageID=" + imageID;

}
This works for me: <pre><nowiki>parent.document.getElementsByName("sidebar")[0].contentDocument.location.href </nowiki></pre> <pre><nowiki>function disptn(ptr,imageID) { parent.document.getElementsByName("sidebar")[0].contentDocument.location.href = "apg_thumbnail.php?ptr=" + ptr + "&imageID=" + imageID; }</nowiki></pre>

Modified by cor-el

Question owner

It's too confusing. I'd rather just go back to Firefox 2.1 All that tech stuff is frustrating.

It's too confusing. I'd rather just go back to Firefox 2.1 All that tech stuff is frustrating.
jscher2000
  • Top 10 Contributor
8635 solutions 70637 answers

I'm curious about the fate of the frames collection in Firefox 22.

Does this still work in the console?

parent.frames['sidebar'].location.href

If that works, if you run this in the console:

parent.sidebar = parent.frames['sidebar'];

Does that help the links to work by redefining parent.sidebar to refer to that frame?

I'm curious about the fate of the frames collection in Firefox 22. Does this still work in the console? parent.frames['sidebar'].location.href If that works, if you run this in the console: parent.sidebar = parent.frames['sidebar']; Does that help the links to work by redefining parent.sidebar to refer to that frame?
jscher2000
  • Top 10 Contributor
8635 solutions 70637 answers

Helpful Reply

Sorry, I didn't see your last reply before I started writing the above. I agree it's confusing.

The goal would be to give you a one-click solution (e.g., a bookmarklet) to "patch" the site until the author has an opportunity to update it. If my suggestion works, the fix will be very easy for him.

Sorry, I didn't see your last reply before I started writing the above. I agree it's confusing. The goal would be to give you a one-click solution (e.g., a bookmarklet) to "patch" the site until the author has an opportunity to update it. If my suggestion works, the fix will be very easy for him.

Question owner

The site owner says it works for his FF 21. He says the problem is not his site. I really would rather drop beta. I'm stupid when comes to codes, sidebars, etc. Just please tell me how to get off beta & back to 21 OK?

The site owner says it works for his FF 21. He says the problem is not his site. I really would rather drop beta. I'm stupid when comes to codes, sidebars, etc. Just please tell me how to get off beta & back to 21 OK?

Question owner

In other words, he won't update it. i haven't heard back from him.

In other words, he won't update it. i haven't heard back from him.
jscher2000
  • Top 10 Contributor
8635 solutions 70637 answers

To switch to the "release" version, just install from the main page here:

https://www.mozilla.org/en-US/firefox/fx/#desktop

You do not need to uninstall the beta. However, it's not a bad idea to make a backup copy of your personal settings folder (AKA Firefox profile folder). This article has more info on that if you're interested: Back up and restore information in Firefox profiles.

To switch to the "release" version, just install from the main page here: https://www.mozilla.org/en-US/firefox/fx/#desktop You do not need to uninstall the beta. However, it's not a bad idea to make a backup copy of your personal settings folder (AKA Firefox profile folder). This article has more info on that if you're interested: [[Back up and restore information in Firefox profiles]].
cor-el
  • Top 10 Contributor
  • Moderator
17415 solutions 157321 answers

I think that sidebar is a reserved property and thus shows as [object XPCWrappedNative_NoHelper], so you need to use another name.

TypeError: parent.frames.sidebar.location is undefined
parent.frames['selector']: [object Window]
parent.frames['selector'].location.href: "http://www.apolloarchive.com/apg_selector.html"

If I rename to Sidebar:

parent.frames['Sidebar'].location.href: "http://www.apolloarchive.com/apg_thumbnail.html"

So this is just a case of choosing the wrong name for a frame.

I think that sidebar is a reserved property and thus shows as [object XPCWrappedNative_NoHelper], so you need to use another name. TypeError: parent.frames.sidebar.location is undefined <pre><nowiki>parent.frames['selector']: [object Window] parent.frames['selector'].location.href: "http://www.apolloarchive.com/apg_selector.html" </nowiki></pre> If I rename to Sidebar: <pre><nowiki>parent.frames['Sidebar'].location.href: "http://www.apolloarchive.com/apg_thumbnail.html" </nowiki></pre> So this is just a case of choosing the wrong name for a frame.