Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
0zzyRocks
Jul 10, 2001

Lord of the broken bong
Quick question... how do I stop the onBeforeUnload event from popping up its default question window (aside from not returning anything in the callback function)?

Adbot
ADBOT LOVES YOU

0zzyRocks
Jul 10, 2001

Lord of the broken bong
I need to have the user decide whether they want to save data on a webapp before navigating away. I wanted to use my own confirm window so I could capture what button was clicked. Is there a way to capture the button clicked on the default beforeunload event popup?

0zzyRocks
Jul 10, 2001

Lord of the broken bong

Skiant posted:

Re: git GUI clients for Windows or Mac, you can grab Sourcetree by Atlassian because it's awesome.

Just wanted to re-iterate this - it's a great program and really should be all you need. Integrates well with already installed versions of Git, and has one-click buttons for initiating Git Workflow (and using its various functionality) all without needing to know the console commands. They do help though, especially for more involved operations like submodules.

0zzyRocks
Jul 10, 2001

Lord of the broken bong
I wrote a jQuery plugin to handle styling of a file input. Check it out, it hasn't been updated in a while but it may be of some use to you. https://github.com/ozzyogkush/jquery.styledFileInput

0zzyRocks
Jul 10, 2001

Lord of the broken bong

Thermopyle posted:

If you use Jetbrains IDE's, they integrate spy.js.

https://www.youtube.com/watch?v=vPIbwxzC5cU

That was really cool, thanks for sharing!

Adbot
ADBOT LOVES YOU

0zzyRocks
Jul 10, 2001

Lord of the broken bong
Going along with the "OO in JS" discussion, anyone ever use JOII? I'm using it on a project (an older version at least) and I don't dislike it, but I'm not sure the overhead is worth it (in favor of more basic native JS). http://joii.harold.info/ and https://github.com/haroldiedema/joii

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply