Hi guys,
I'm looking for a visual studio plugin with the following functionality:
On building the project or executing the tool, the plugin looks for all *.js and *.css files in your project and compresses/minimizes them into *.min.js and *.min.css files.
Executing the tool on project build would enable you to keep the references to ...
Hey!
I want to make WMD line dropping always apply - It does this on Stackoverflow but the default WMD doesn't! It requires two spaces after text to make a line drop work unless it is more than 1 line drop.
I've tried understanding WMD but it's all written in obfuscated code and hard to follow
Does anyone know about a fix for this?
T...
This works in Firefox, but not IE. Any help would be much appreciated! Thanks!
var form = document.getElementById('theform')
/* create the event handler */
form.gen.onclick = function( evt ) {
var f = evt.target.form
var y = f.year.value
var m = f.month.value
genCalendar( document, y, m, 'theCal...
How to prevent access to certain URL requested pages?
If i have form.html, processFrom.php and getResults.php in my webapp root, even though processFrom.php does not echo any content, how can i prevent the user from accessing this file by typing in the URL?
...
I saw this years before, but since it was not widely supported, websites are dropping usage of it.
I am currently designing a website which will have scrollbars inside the design and wondering whether CSS2 have any specification on styling browser crossbars because the default colours doesn't fit. If there's no specification, any refere...
I am consuming service of random.org, (I want to get the numbers from random.org site using url). I am fetching data using ajax from my JavaScript. So how to make cross domain ajax call from my domain (and avoid permission error)? I want solution without help of server side code (sever proxy). Example code will be great help for me.
...
Hello,
I am integrating a PayPal "Add to Cart" button into Lightbox 2.
With the help from some kind folks on this site, I was able to get the PayPal button implemented the way I wanted.
However, the problem I have now is when you click the PayPal Add to Cart button, the PayPal shopping cart reports the following error:
"PayPal cannot...
Hi,
I want to trigger a javascript function when one of the elements in a specific form has been changed. Is this possible using jquery?
Does anybody has an example how to do this?
thanks,
Bart
...
As a trivia question, I'm trying to write a javascript function that returns its variable number of arguments in sorted (normal lexicographic) order.
Having never dealt with javascript before, I came across the "arguments" object, which seems to work somewhat like an array but without having the standard array functions -- therefore I s...
Is there an easy way to find parse errors in javascript code?
Last week I was debugging a javascript problem where the first javascript function that was called gave an 'object expected' error. I later determined that this was because the browser wasn't able to parse my javascript code. I eventually solved the problem but it was a pai...
I am trying to create a bookmarklet, so that when you click on it, it will load example.com/yourdata.php in a div box.
How can I make it get the data from example.com?
IFRAME? or is there a better solution?
...
How to disable browser's BACK Button (across browsers)?
...
random question,,...but does anyone know what photo slider is being used here?
http://www.rolandgarros.com/en_FR/index.html
or here:
http://www.theglobeandmail.com/in-photos/best-from-the-past-24-hours/article1169782/
I'm assuming neither was developed in house...(i tried looking at the source but couldn't find any clues)
Andrew
...
I'm using jQuery to append some JavaScript when an item is expanded.
But the JavaScript code inside of the jQuery function is causing the rest of the jQuery code to explode.
$(this).parent('li').find('.moreInfo').append('<script>alert("hello");</script>');
What can I do to solve this problem?
...
Typically, for styles that have to be applied dynamically to HTML objects with JS, we set it as an attribute using "setAttribute()"
What about this "outline" CSS property? How can I set that onto an object with JS? Unless there is a way to dynamically add CSS to the document?
...
I need to make a horizontal accordion these days.
You can see that there is a small "jump" of the color boxes on right hand side when clicking the color box. I don't know why the small "jump" occurs.
I then use animate instead of hide and show to try to solve the problem.
Even if the width animates to 0px, the element still has a ...
I'm looking to deploy a semi-temporary alert box about maintenance on our website. However I don't want anything too aggressive like a browser warning box. I'd also really like it to remember if a visitor has already been to the site and clicked close, so not to display it again.
Essentially I'm looking at how to do the S.O. "First time...
I'm trying to simulate a keyboard event in Safari using JavaScript.
I have tried this:
var event = document.createEvent("KeyboardEvent");
event.initKeyboardEvent("keypress", true, true, null, false, false, false, false, 115, 0);
...and also this:
var event = document.createEvent("UIEvents");
event.initUIEvent("keypress", true, true,...
I want to load contents of a DIV dynamically in javascript.I used this code
var strHtml="<h3>Test</h3>";
var div = $("#divPrice");
div.innerHTML=strHtml
This works in IE. But not in firefox.Whats the alternative of this which works on all browsers ?
...
I need to provide a means for a user to upload photos to their web site in jpeg format. However, the photos are very large in original size, and I would like to make the resize before upload option very effortless for the user. It seems my only options are a client side application that resizes the photos before uploading them via a we...