Hot answers tagged javascript
27
Yes, exactly JavaScript. I just met such a worm and tried to decode it.
What the actual problem is:
The recent Facebook worm works by getting users to visit a page, which makes them insert a JavaScript string into their address bar and therefore executing it.
So, DON'T EVER copy some JavaScript code into your address bar. That's the main problem. And ...
11
You shouldn't - allowing JavaScript to run in a e-mail client would be a huge security risk.
I originally said "you can't" but it's been pointed out that some clients will execute the Javascript. So, hopefully Gmail and Yahoomail don't allow scripting for this very reason.
On a personal note, I think HTML in e-mails should be avoided to. What's wrong with ...
5
In short... it's a virus... like any other. The method it uses to replicate itself is to make posts on your account after being executed from someone else's page. Depending on the browser and/or operating system you're using, and vulnerabilities that it has, anything is possible. Basically, once the script is running within your browser (which can start ...
4
JavaScript is not allowed on wordpress.com blogs due to security reasons. This means that the following will not work (among others): <script> tags; javascript: links; and events such as onclick.
In fact, that's the reason I switched from wordpress.com to blogger.com. Your only Wordpress option is to either host it yourself, or find some hosting ...
4
According to the official support documents, no.
http://en.support.wordpress.com/code/
Javascript
Users are not allowed to post JavaScript on WordPress.com blogs. JavaScript can be used for malicious purposes. As an example, JavaScript has taken down sites such as MySpace.com and LiveJournal offline in the past. The security of all the blogs is a ...
4
Firebug or Chrome Developer Tools is probably your best bet.
Chrome Developer Tools has a "pretty print" feature that allows you to deobfuscate JavaScript code, making it easier to read. You can get the same feature in Firebug by installing the JavaScript Deminifier extension, or you can just use JSBeautifier if you want to deobfuscate an individual ...
4
Questions about LibraryThing in general, feature requests and bug reports.
Tim. Founder and Developer. (timspalding; tim{at}librarything.com)
Chris H. Developer. (conceptDawg; christopher{at}librarything.com)
Mike. Developer. (miketopper; mike{at}librarything.com)
From their contact page.
4
For Flash, there are these two sites, both related:
http://wonderfl.net/
http://beautifl.net/
More canvas-related is Aza Raskin's http://azarask.in/projects/algorithm-ink
More JS-related: http://jsdo.it/
3
You cannot add JavaScript directly to your Google Sites page. You can, however add a Google Gadget that has JavaScript in it. You can try the Google Gadget Builder. You may not get the result that you want, however, since your JavaScript is not valid. For example, your statements with (x)html elements will cause the JS engine to error.
var <strong ...
3
Click on View all (in your case) or ...more
Click on 1-50 of XXX
Click on Oldest
In some cases it doesn't work and I don't know why. Also, it doesn't work in Priority Inbox view, you have to go to each category - Important, Starred, Everything else - to be able to sort by Newest/Oldest.
3
If you're using Firefox, install FireBug, and then FireQuery.
Then on any webpage, open FireBug (bottom right), and enable the console (should be a little down arrow by "Console"). From here you'll see a button "jQuerify". Clicking it will inject jQuery into the current page.
You can type whatever jQuery-dependant JavaScript you want into the command-line.
...
3
You can do this using Google Apps Script, which is a new JavaScript-based scripting language developed for Google Apps. According to this description from Google, you can create custom spreadsheet functions.
Google Apps Script is a JavaScript cloud scripting language that provides easy ways to automate tasks across Google products and third party ...
2
When you post via the API the postId will be returned. So you just append /post/{postId} to the blog's URL to get the permalink. This URL will not include the slug but the slug is just for easier reading. If you added a custom slug then just append it to to the URL.
To get the blog's URL do an API call to api/authenticate and it will return the URL for all ...
2
It may sound stupid but removing the content in both windows left and right and saving it as an template creates a blank state.
If you want to have the original template back here's the data:
JS
if (document.getElementById('hello')) {
document.getElementById('hello').innerHTML = 'Hello World - this was inserted using JavaScript';
}
HTML
<!DOCTYPE ...
2
Internet Explorer reports the version of .NET installed in its user agent string. If Google Analytics shows you the user agent strings for the browsers used to connect to your server, you should be able to verify the version of .NET.
Some browsers allow users to change the user agent string used when connecting to web sites; you could think a user has ...
2
I use Addpoll to create online surveys, forms and polls. Offers me great account with detailed reports, unique design, exporting, easy sharing and more.
There is an option that you can enable, so the user sees results, either by percentage or as vote count. Scroll to the end of the Create Poll help page to see an example. I don't know if this is available ...
2
The browsers themselves will have "standard" or reasonably standard keyboard shortcuts (backspace for navigate backwards for example), but I wouldn't expect the actual applications to have keyboard shortcuts - standard or otherwise.
Why? Because the browser gets to handle the input first, so application developers will need to pick shortcuts that don't ...
2
You are correct you do this using JavaScript.
Create a new bookmark and instead of putting the web address in you would use this:
javascript:function LoadPlayer() { return window.open("http://www.bbc.co.uk/iplayer/console/bbc_6music","BBC 6 Music","scrollbars=no,menubar=no,height=721,width=400,resizable=yes,toolbar=no,location=no,status=no");} ...
2
As it has been already pointed out a couple of times Gmail uses a whole bunch of iframes for its interface. You can use Firebug to view the source code of Gmail, however Gmail is known to crash your browser and slow it to a crawl when inspecting the page with Firebug.
Although not only does Gmail use iframes, but it uses quite a lot of obfuscated (well, ...
2
I wouldn't call Tumblr a web framework. It's a social blogging platform that allows customization through an templating engine. You can not insert any JavaScript. They allow you to call certain approved js files like Twitter’s widget.js but that's about it.
Basically you have control of how your content is displayed via HTML and some custom CSS along pre ...
2
I did a bit more digging and found that the orange loader image is injected with JavaScript in a JS file classic.js.
In that file the code loads HTML templates and compiles them with a templating engine:
blogger.templates().compile('{template:BasicCSS}\n{CoreCSS}\n{ButtonCSS}...
In one of the templates is the animated orange image as a CSS base 64 ...
2
In terms of a "web app that comes closest to the sketch and or description", my first thought was Google Squared - but alas, it no longer exists (I thought it was an amazing innovation).
But here's something to try: http://www.wolframalpha.com. Enter a search term such as mammals or presidents.
1
Unless Github makes this possible (perhaps with a feature request/service hook), one easy way would be to simply display the contents of the gist using its complete url along with the commit hash, such as https://gist.github.com/1522901/0f74d53b18060f6292db9dc4d6c1922f72aa2aaf, and then just use some third party code highlighting library for displaying it.
1
You can also use CodeWrapper. It's a gadget that allows you to paste your javascript into it and run it as a google gadget, basically allowing you to enter the javascript into the html without it being blocked. Go to Insert > more gadgets > search for codewrapper.
It should solve your problem. It's solved a few of mine already.
1
I am not sure what you are trying to do with your script, but have you looked too see if you can accomplish what you want with a Google Apps Script? It looks like using Google App Scripts within Google Sites is pretty easy. Here is a tutorial - Getting Started with Apps Script and Google Sites.
1
Im not sure about JS Bin been able to do so however I can offer you an alternative
jsfiddle.net
Example
http://jsfiddle.net/ZRvJG/
Edits:
http://jsfiddle.net/ZRvJG/1/
Hope this helps
EDIT:
If you sign up to js fiddle you can set the "base revision"
http://doc.jsfiddle.net/basic/introduction.html?highlight=head#setting-base-version
Meaning if you dont ...
1
Snipshot & Webresizer are basic online image editors that also provide an API to manage their service programmatically for your website. There is also a free jQuery plugin called jCrop that you can use to implement the image cropping functionality.
1
Google doesn't support any special API for the GMail. All you can do is to enable POP/IMAP from the settings and taking it over from there it whatever language you want.
1
I believe Google has a Gmail gadget for your iGoogle page available at this link - http://www.google.com/ig/adde?moduleurl=builtin_gmail.xml&source=imag
you can also search for gadgets with the term "check email"
Be warned, that there might be some unscrupulous / malicious code out there.
Ideally, if it's only notification you want, use official ...
Only top voted, non community-wiki answers of a minimum length are eligible