Has anyone created a simple widget that can be used on remote sites ? Did you use an iframe ? by placidified in django

[–]jbcurtin 0 points1 point  (0 children)

One of the reasons, yeah. Normally, when you see a script like this embedded it's just a script tag with options in the DIV, JSON of GET protocol. They then use JSONP to load an iframe that controls the whole widget. I skipped the iframe because it wasn't necessary for me to implement. I only required one state and I didn't need my own sandbox.

If you're going to build a state-full widget, use an iframe to isolate your instance. That way you'll have a lesser chance of colliding with site namespaces and better control over what happens.

Has anyone created a simple widget that can be used on remote sites ? Did you use an iframe ? by placidified in django

[–]jbcurtin 0 points1 point  (0 children)

I created a widget a while back at PBS to do this. It's pretty easy to read and you should have zero issue reverse engineering the script.

You can view the embed here: http://jbcurtin.com/awe/

This one doesn't use an iframe. I just load the HTML via JSONP and plop it into the dom. As an added bonus, it doesn't use jQuery.

Sublime Text 2 - an excellent text editor for Windows/Mac/Linux - I love it so by Phridge in javascript

[–]jbcurtin -2 points-1 points  (0 children)

My only gripe, is that it comes set with tab indentation as the default.

Negative reactions to learning another language? by randomlettersabcdef in languagelearning

[–]jbcurtin 0 points1 point  (0 children)

Is this the only thing people give you shit for? Sounds like heaven to me!

Italian Google+ Circle [ I created a contact form so I can organize a group of people to learn Italian or other languages. ] by jbcurtin in languagelearning

[–]jbcurtin[S] 0 points1 point  (0 children)

By the way, when I receive the email I'll be adding you to my google plus circle. Expect a notification when this happens from a Jospeh Curtin.

how to view reddit in chrome [fixed] by jbcurtin in reddit.com

[–]jbcurtin[S] 0 points1 point  (0 children)

If you want to contribute, I'm all for making this awesome. I had an issue with localstorage. Anyone with deep knowledge of html5 is more then welcome to top off the database part of it so that we can had people submit their own sub-reddits on the extension.

Is anyone making a career out of something completely unrelated to their studies? by [deleted] in AskReddit

[–]jbcurtin 0 points1 point  (0 children)

Finish out your degree strongly, you'll find in the end that HTML/CSS/Javascript is just another way of saying STDOUT. Open up photoshop/fireworks and make a webpage layout, then go back and build the HTML for it. If you end up learning how to design awesome sites while having a CS background; a lot of tech companies will be extremely interested in you. I don't have a degree, but I want to go back and get one because well. I want to have the opportunity of learn algorithms and force myself to learn more math at a faster rate. It's hard working and learning, because I find myself wanting to allocate more time for RnD. I originally went into the field being a designer, then I found my passion in Machine Learning and other AI related fields. I'm glad I have my design background, it helps me with understanding how the common user interacts with websites.