Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 969993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T02:43:58+00:00 2026-05-16T02:43:58+00:00

I wrote a bookmarklet, when the user will click on it in his browser

  • 0

I wrote a bookmarklet, when the user will click on it in his browser it will do some actions on the current website and show some results in a popup.

In some websites my bookmarklet fails to load because problems may exist in the current website.

My bookmarklet code is using the jquery library.

In some cases the errors happens in the jquery library because some conflicts or something i don’t know.

My Question is:
Can i surround all my bookmarklet code with one try catch which will catch any error happen in all my code and redirect the user to another page ‘error page’?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T02:43:59+00:00Added an answer on May 16, 2026 at 2:43 am

    Errors will bubble down the stack towards the original calling function, so if you wrap your entire top-level code with a try…catch then jQuery errors will be caught.

    http://jsfiddle.net/NcEpe/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wrote a page Page method in my aspx page. in web service method
I wrote a plugin that needs to set a property on the controller that's
I wrote this code to overload the unary operator- on a matrix class: const
I wrote a Simple Control, that implements ScriptControl. This is holder for JQuery framework:
I wrote the following stored procedure, in which I use a local variable 'syncParam':
I wrote a few assumptions regarding Entity Framework, then a few questions (so please
I wrote a test program like this: #include <sys/socket.h> int main( void ) {
I wrote this code: <?php mysql_connect(localhost, root, root) or die(Could not connect: . mysql_error());
I wrote a small application and tried running it on my device. I had
I wrote a python script that: 1. submits search queries 2. waits for the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.