I'm starting a project that is due to launch in about 4 months and I'll use SproutCore as the front end technology.
There are two ways of installing described here http://wiki.sproutcore.com/Abbot-Setting+Up and I'd like to hear opinions about which version should be better for starting a new project. AFAIK, version 1.0 is starting to g...
I have a index.html file which includes scripts.js
in scripts.js:
function Add(arg1, arg2)
{
if(typeof(arg1) == 'string') arg1 = parseInt(arg1);
if(typeof(arg2) == 'string') arg2 = parseInt(arg2);
return arg1 + arg2;
}
in my C# code:
[Test]
public void Tescik()
{
Assert.AreEqual(sel.GetEval(@"this.browserbot.getUserWindow...
As per my knowledge we can disable ctrl+N key for new window with the following javascript code :
document.onkeydown = function() {
alert(event.keyCode)
if ((event.keyCode == 78) && (event.ctrlKey)) {
alert ("No new window")
event.cancelBubble = true;
event.returnValue = false;
event.keyCode = false; return false;
}
}
In my cas...
The element looks like this:
<li class="blah active"> ... </li>
jQuery.attr('class') will return both classes.
How can I get only the 1st class ('blah' in this case) with jQuery?
...
I have a page with a Ext.form.ComboBox and a TinyMCE Editor, which uses an iframe for its body. The problem is that when the ComboBox has focus and the user clicks on the iframe, the ComboBox's blur event is not fired. If the user clicks back to the ComboBox, the focus event is also not fired. However, document.activeElement does change ...
Hi.
Most jQuery plugins have options like this one for example (cycle):
$("ul").cycle({
fx: 'fade',
startingSlide: 1,
speed: 500,
pause: true});
The plugin will do his thing on all elements with the class/ID you specify, in this case all <UL> elements.
How can I access this <UL>'s child elements from within one of th...
Would the second match a line ending, while the first would not?
...
Hi All,
I have the same problem as :Can SHA-1 algorithm be computed on a stream? With low memory footprint?
I'm looking for a JavaScript implementation which computed block by block of a very large string. The idea is to slice the string into 512 bits block and do it block by block.
Any hint?
[updated]
Thanks sunetos's help, I write ...
I'm wondering if there is a way to load a single less sheet sometime after a page load. This question has an answer that explains how to reload all the sheets, but for my use-case existing sheets never have dependencies on newly loaded sheets, and it would be good to just add the sheet lazily. I'm thinking something like
less.sheets.pu...
Hi
I have a list like this one:
<li> .... </li>
<li> .... </li>
<li> .... </li>
<li class="active"> .... </li>
<li> .... </li>
I want to find out the index (number in the list) of the item with the "active" class element.
in this case the index would be 4 (or 3 if we're starting from 0)
How can I do that?
...
Hi.
I'm face to face with this issue, and I don't know how I can resolve it. I found some similar solutions here but none of them is what I need. Let's say, I have some code that makes a simple wrapper around one-button jQuery UI dialogs. In this case all is simple:
$parent.keypress(function(e) {
switch ( e.keyCode ) {
case 13:...
My IE is IE 6. It's pretty old, but I have to use it.
I just found a strange problem, it doesn't support "document.getElementById()"!
See my test file: test.html
<a id="aaa">xxx</a>
<script>
aaa = document.getElementById("aaa");
alert(aaa);
</script>
When I open this file by IE, there shows an ERROR dialog:
line: 3
char: 1
error: o...
Hey all, title says most of it. Im using Dojo and i want to have a grid (currently using an EnhancedGrid with the DnD plugin) in which i can drag and drop items to change their stored order.
So, if i had items [1][2][3], and dragged [1] behind [3], i would have (in the store) [2][3][1]. Currently with DnD i can move rows about how ever...
What's the fastest way possible to get a string like "fade" from the classes in the element below?
<div class="MyElement fx-fade"> ... </div>
...
Would it at all be possible to show the current applied filter parameter as a descriptive string appended to the main title in the title bar
i.e.
"Customer - [ Field1 = 'ABC' and Field2 = 'CDE' ]"
Can't find an event that could be hooked onto once a filter is applied?
...
<style type="text/css">
.hidden {
display: none;
}
.show {
display: block;
}
</style>
<div class="hidden" id="day">day</div>
<div class="hidden" id="night">night</div>
<script>
<!--
day=document.getElementById("day");
night=document.getElementById("night");
var date = new Date();
if (date.getHours() < 8 || date.getHours() >...
I'm running a loop in javascript that should take about a minute to complete. When I click the link that is supposed to activate the loop, the page makes no effort to load anything but when I comment the loop out, print statements work. Does javascript just know the process is going to take a while and not do it and if it does is there a...
I need to pass html code with QueryString because im using ajax method to send post(i mean comment not the type of method) on my web site. When I write a post like that.
"Hi everybody<br />Whats'up."
its just taking "Hi everybody" removing rest of the content.
Info : Im using GET Method, beacuse i need to get some values back..
...
Hi,
I have this xml file.
I would extract the first child of Status node and alert it.
How I can do it?
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns3:ExecuteResponse xmlns:ns1="http://www.opengis.net/ows/1.1" xmlns:ns2="http://www.w3.org/1999/xlink" xmlns:ns3="http://www.opengis.net/wps/1.0.0" statusLocation="http://r...
http://labs.digg.com/swarm/
...