Αναζήτηση στην υποστήριξη

Προσοχή στις απάτες! Δεν θα σας ζητήσουμε ποτέ να καλέσετε ή να στείλετε μήνυμα σε κάποιον αριθμό τηλεφώνου ή να μοιραστείτε προσωπικά δεδομένα. Αναφέρετε τυχόν ύποπτη δραστηριότητα μέσω της επιλογής «Αναφορά κατάχρησης».

Μάθετε περισσότερα

Javascript not working

  • 41 απαντήσεις
  • 65 έχουν αυτό το πρόβλημα
  • 1 προβολή
  • Τελευταία απάντηση από moirraine

more options

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?

Επιλεγμένη λύση

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.

Ανάγνωση απάντησης σε πλαίσιο 👍 1

Όλες οι απαντήσεις (20)

more options

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.

more options

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?

more options

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.

more options

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

more options

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.

Τροποποιήθηκε στις από το χρήστη jscher2000 - Support Volunteer

more options

Oh, ok. Sorry, I'll do that

more options

Does this help? I clicked a thumbnail, etc.

Τροποποιήθηκε στις από το χρήστη den-arn

more options

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.

more options

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

more options

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.

more options

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

Τροποποιήθηκε στις από το χρήστη cor-el

more options

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

more options

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;

}

Τροποποιήθηκε στις από το χρήστη cor-el

more options

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

more options

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?

more options

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.

more options

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?

more options

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

more options

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.

more options

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.

  1. 1
  2. 2
  3. 3