Hi,
I want to create something similar to Heroku (first I was thinking in EngineYard-like but I prefer Heroku) for node.js (I know they already support node.). However, It's for a personal project so it doesn't need to be anything overcomplicated or super expensive. I believe I can learn a lot creating a product like this.
Before I sta...
I am using a selectbox:
<select name="priority" id="priority">
<option value="4">Low</option>
<option value="3" selected="selected">Normal</option>
<option value="2">High</option>
<option value="1">Emergency</option>
</select>
When user select "Emergency", then a confirmation box opens and if user confirm, then "Emerge...
Currently the web application I am working on loads in a number of script files using jQuery.Load() when the document DOM is ready. However, if those script files have syntax errors, neither Firebug or IE Developer Tool can reliably shows the line with error or give some really huge line numbers.
How can I debug such scripts? Or should ...
I am writing some Javascript/jQuery code that requires me to make lots of requests to various APIs. I have come across this problem many times and this is just a basic example of one instance of it.
The code makes an asynchronous request to a server and then if a condition with the returned data is not met, the code makes another reque...
Hi there,
I am a C/C++ programmer, and I am currently playing with some Javascript code, and I am having problems finding where the documentation is for the standard Javascript libraries that are available in the browser.
Specifically, I am setting an onload callback function on a HTMLImageElement, created with new Image(). I also want...
Hey there guys, Im good with HTML and CSS but have only jsut started to scratch the surface of jQuery. I'm looking to make 3 divs fade in on page load one after another.
So far I have this
<script type="text/javascript">
$('#1').hide().fadeIn(1500);
$('#2').hide().fadeIn(1500);
$('#3').hide().fadeIn(1500);
</script>
I hear...
Hello all,
I was wondering how I'd get an alert of a last child by clicking a link.
<h3 id="comment:5" class="myclass">
This is how far I got:
$('#lastcomment').click(function() {
alert('Handler for .click() called.');
});
My aim is to jump to the last comment by clicking the link. An alert would be fine for the first step I...
I tried to load the string which contains the alert function, into a webview.
The javascript code is working fine in the browser, but when it is executed in emulator, it is not working.
Can any one suggest some ideas for the code to be worked.
A part of my code which I developed in Android is also added below.
Thanks in Advance.
try{ ...
Hello,
I want to use the HTML5 FileApi to read a SWF to an OBJECT (or embed, if it's better to do?).
My current code crashes on Chrome/Iron (the only stable browser which also supports the xmlhttprequest v2 FormData). I got it to read image data into a on-the-fly created IMG. But the object one crashes the current tab in the browser.
...
I am using the following technique to load up Javascript dynamically:
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "file.js";
document.body.appendChild(script);
It's quite a common approach.
It's also discussed here: http://www.nczonline.net/blog/2009/06/23/loading-javascript-without-bl...
Suppose we have a page with the following structure:
<li id="A">
<span class="some class">some content
<a href="http://www.example.com">http://www.example.com</a>
</span>
</li>
<li id="B">
<span class="some class">some content
<a href="http://www.example.com">http://www.example.com</a>
</span>
</li>
<li id="C">
<span...
I'm trying to create a dialog window using the following CSS:
#blackOverlay {
display: block;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #000000;
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
filter: alpha(opacity=80);
-moz-opacity: 0.8;
...
I would like to crawl a website, the problem is, that its full of JavaScript things, such as buttons and such that when they are pressed, they do not change the URL, but the data on the page is changed.
Usually I use LWP / Mechanize etc to crawl sites, but neither support JavaScript.
any idea?
...
I'm working on a jQuery plugin that can be applied to multiple elements. The plugin includes some animation effects and I need to manage the event queue based on if the plugin is used on multiple elements (instead of one).
What's the best way to detect if the plugin has been applied to a single element or to multiple elements?
Edit... ...
I think this question may be fairly evident from the title alone: I am a C# developer who often uses @ before a string literal to make it more readable (e.g. string drive = @"C:\")
I am in the process of scripting out a lot of my processes (using the wonderful V8 for .Net) and I am wondering whether there's a similar feature in JavaScri...
Hi i want to delete the svg element using in javascript ...i didnt made the external file of svg i have done all my svg creation in html file (dynamic creation) ..but i am unale to remove the svg element frm it...i m not able to access the parent node in it...
heree is the code
<div align="center" id="dd" style="border-color: red;borde...
There is a button (actually a lot of them), it has an event handler:
el.onclick = function(){
if(this.className.indexOf("minimized") != -1){
this.firstChild.nodeValue = 'turn back';
this.className = this.className.replace("minimized", 'expanded');
}
else if(this.className.indexOf("expanded") != -1){
t...
Is there a tool to convert javascript to java, so I can handle the project using GWT?
update
For those who don't know, GWT (Google Web Toolkit) is a toolkit to write Java and get Javascript, so my question.
...
hello all, my code is like this:
<%
ArrayList<Item> itemList = new ArrayList<Item>();
itemList = projr.getObjects(projectID);
if (itemList.size() != 0) {
%>
<script type="text/javascript">
window.onload = function() {
for(var i = 0;i < <%=itemList.size()%>;i++){
var azimuth=0;
azimuth = <%=itemList.get(i).getAzimuth()%>;
</scri...
Hi,
I have this string:
2010-09-21T15:48:12.754+02:00
I would transform it in this format:
Tue Sep 21 15:48:12 CEST 2010
How can I do it with javascript or jQuery?
Thanks a lot.
MP.
...