I am trying to add an external javascript code to add some effects to the gwt generated part of the page.
I was provided with some static html/css from the designer, and it uses javascript to add the desired effects to the page.
Our app uses MVP architecture as described on the official GWT pages, so for the initial test I just put th...
Apologize if this is answered already. Went through some of the related questions and google, but ultimately failed to see why this isn't working.
My code is as follows
<iframe id="editor"></iframe>
editorWindow = document.getElementById('editor').contentWindow;
isCtrlDown = false;
function loadEditor()
{
editorWindow.document.d...
Anyone can decode that? I tried all my js foo, looked on jsunpack and can't figure it out. A site that got blacklisted had that, so I think that's the culprit.
<script type="text/javascript">
a = Array('c4v4', 'I', ' wid', 'rxkQ', 's', 'te', 'ZHA', 'px;', 'u', 'A', 'yle=', 'V', ' le', 'px', 'ht: ', ': a', '0', ' s', 'ig', 'o', '...
I am trying to make a function that will draw a circle out of periods with only being given a starting x and y and a radius. Is it possible? I would like to have the full code for it will an explanation for how it works; I've been trying this for 1 year now and I still can't fathom how it may be done.
...
Hi.
I'm quite new at Javascript, and have so far only used the DOM, but I now need to access the browser model, and I don't know if what I'd like to do is possible.
The problem: sometimes I let my youngest daughter browse some kid-friendly Flash game sites. The problem is that most flash games display links to other sites in their spl...
Have the following JS included in my HTML:
document.observe('dom:loaded', function() {
Event.addBehavior( {
'a.move-up:click': function(event) {
moveUp(this);
event.stop();
},
'a.move-down:click': function(event) {
moveDown(this);
event.stop();
}
});
});
function moveUp(element) {
...
I'm trying to send a javascript object to c# world but i cannot figure out how is done.
Here is my javascript code
myClass.Do( 'str', { key : 'Testing' } );
And I have tried to these method signatures on c# class, first parameter is correct but second parameter is always null.
public Do(string param1, object param2); // param1 = 'st...
Hi,
I have an absolutely positioned [element] such that in the CSS, I've explicitly set its left property to -9999px. I have not set the top property. I cannot set it, since I want the element to "stay" where it is in the DOM (even though it's out of the document flow)
When I call [element].css('top') in jQuery, FF returns a value. I...
We are starting to using Test Driven Development on a project. We use jQuery, so I figured that QUnit would be a good TDD tool.
The drawback is, to test UI enhancement with QUnit, you would have to recreate the UI units on the test page, which doesn't seem like a real test. One of my co-workers feels like we may be able to find a TD...
Here is source code of the simple page:
<html>
<head>
<title>Test</title>
<script src="jquery-1.4.2.js" type=text/javascript></script>
</head>
<body>
<div id="divText">Original</div>
<script type="text/javascript">
var vText = document.getElementById('divText');
vText.innerText = 'Changed';
alert...
I'm trying to understand the format of the Javascript functions that jQuery, among other people, use.
For instance jQuery(arg).hide() or $("#obj").hide
I'd like to write similar format functions but I don't understand how.
I know how to write
function myFunc(args) {
}
but I don't understand the second part ie the .hide()
is that a ...
I have two sections on my web page, SectionA and SectionB (2 HTML tables).
I want to be able to print the whole page, only SectionA or only SectionB.
I already have a CSS file with media="print" and I use window.print().
To print the whole page, use your browser print button/menu item.
To print only SectionA :
function PrintSectionA...
With AutoPostBack=false, how do I trigger the postback that would have executed after running some JavaScript?
...
I'm curious if anyone knows how I would trigger a function to run if/once the user finishes selecting text on the web page? I would like the user to be able to select text, and after a short delay(or immediately, at this point it doesn't matter much) an overlay button appears near the text that the user can then click and I go back and r...
I have a form that is validated by js when the user submits it. My code detects empty and invalid fields (ex 1 number in phone number is obviously an invalid phone number).
I am asked if i could highlight fields missing or in error. I think this would be cool IF i can do it automatically. With HTML like the below how can i make name, ph...
On the site www.biowishtechnologies.com/au/ we are experiencing an issue where Google Analytics is duplicating its cookies on each request. Why?
...
I have a piece of javascript that loops a number of times calculating stuff and it is supposed to output some text to screen every iteration, but instead it goes away for a long time and flushes everything at once to screen.
There probably are known tricks to get the thing to iteratively update rather than hanging onto the output then f...
I'm searching for a jQuery plugin that does this.
for example:
<label><input type="checkbox" depends_on="foo=5" name="boo" ... /> Check </label>
<select name="foo" ... >
<option value="5" selected="selected">5</option>
<option value="15">15</option>
<option value="25">25</option>
</select>
so the checkbox would only be enabled ...
Ok when I'm calling $.blockUI in Internet Explorer 7 it gives me javascript error:
Object doesn't support this property or method
When I lunch Firefox in IE 6 mode with firebug it tell me that
s.setExpression is not a function
this code is in blockUI javascript.
I dont understand... maybe it is conflict with jquery? Becose whrn ...
I have this code:
var params = Spry.Utils.getLocationParamsAsObject();
theLeague = params.league;
switch (theLeague)
{
case 'boyswinter':
var Soccer = new Spry.Widget.TabbedPanels("Soccer", {defaultTab: 0});
break;
case 'girlswinter':
var Soccer = new Spry.Widget.TabbedPanels("Soccer", {defaultTab: 1});
break;
default:
...