Hi All,
why is this not ok?
aContract = function(){};
aContract.prototype = {
someFunction: function() {
alert('yo');
},
someOtherFunction: some$Other$Function
};
var some$Other$Function = function() {
alert('Yo yo yo');
};
var c = new aContract();
c.someFunction();
c.someOtherFunction();
Firebug says c.some...
I'm trying to have a script automatically transform an xml file into several html files using different xslt style sheets. However, whatever I try, I get errors. I've tried it in both VBscript and JScript, and both give me errors. The xml file is 537 KB, and the xsl file is 5 KB.
Here's iteration 1 in JScript. This script works for one ...
Pretty much the opposite of server-side push, also known as Comet. I'm wondering if it is possible to use long lived HTTP connections to push information to the server.
Unlike a simple XHR, the connection would be kept alive and data would be streamed to the server at intervals, as the user completes actions etc.
Using standard techno...
Hello,
I am currently working through this tutorial: Getting Started with jQuery
For the two examples below:
$("#orderedlist").find("li").each(function(i) {
$(this).append( " BAM! " + i );
});
$("#reset").click(function() {
$("form").each(function() {
this.reset();
});
});
Notice in the first example, we use $(this) to app...
So I am trying to invoke methods on a page and I know the values that I want to put inside the methods but I can't seem to get the syntax to work. I feel so, well.. lamerized.
Ok so here is the javascript method on the page
function ReturnValue (sValue, sText)
{
window.focus();
var oForm = document.EditForm;
switch (s...
Is there a way I can piggy back sessions to know is the user is online?
I.e: use logs on, I set a $_SESSION variable, user times out- cookie Garbage collector updates the database to update their status as offline.
EDIT: I want a solution that does not involve times or dates. I want something to ride on sessions or something similar. ...
Is there any way to create or recreate a javascript document Object by calling a function. Something like
<script type="javascript/text">
var document = createDocument("some html");
</script>
I want to do this so I can solve the issue in this question client side xslt with javascript in firefox
...
Hi,
Any tips on combining multiple .js files into 1 (for a build process).
Will yuicompressor do this?
...
I have a page that loads a bunch of scripts to prepopulate dropdowns and has scripts within the html onclick events and etc.
After the page loads and I open the page in the script console I can't do anything. everything is null and functions non-existent.
For example there is an onClick function onclick="Popup('Seattle');".
If I try ...
I am looking for a way to control the playback of some content created via Breeze using JavaScript. Essentially I have the Breeze SWF embedded on a page, and that page is surfaced in another application. The application only communicates via JavaScript, so I have to expose some pause/resume functions to the Breeze content.
With Captivat...
There are quite a few of IRC server codes
I am working on a small IRC client for Adobe AIR, and I started out by supporting only a few of these initially, and then a switch statement didn't seem like a bad idea. But as I support more and more, the switch statement is getting longer and it feels like it's a little out of control. One iss...
I am trying to figure out how to process XML in java script So i googled for it. The problem is , I don't know whether the tutorials I see will work only on IE.
What is the "Standard" way to process Xml data in java script?
Edit:
Thanks for all your answers.
I want to ask another question then. Is there some kind of 3rd party library w...
Hi,
I have an input box
<input type="text" name="search" id="search" />
<img src="icon.png" alt="" id="doSearch" />
I use Jquery and I have onclick event for "doSearch". So when I enter some words like "ab" .. and click on "icon" It sends an ajax request to php file and gets results back appended to dom.
$('#doSearch').click(funct...
I would like to find a javascript parser that can handle and evaluate simple expressions. The parser should be able to evaluate the regular mathematical expressions, and support custom functions with parameters. It also has to support strings handling. String concatenation with || operator support is preferred, but it is okay if + will d...
Hi,
I currently have an iframe within my main page that has a number of checkboxes that need to be actioned prior to leaving the iframe, i.e, if the user commences checking the checkboxes and half way through they then click back on the main page, i.e leaving the iframe, I would like to be able to trap/validate that they have left the i...
I'm calling the following URL using YQL
http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.quotes%20where%20symbol%20in%20(%22UTG.L%22)%0A%09%09&format=json&env=http%3A%2F%2Fdatatables.org%2Falltables.env&callback=cbfunc
this returns the following in JSON
cbfunc({"query":{"count":"1","created":"2...
I've just discovered that when the remove() function is used, the matched elements are not removed from the jQuery object, just the DOM.
According to the remove() documentation:
Removes all matched elements from the
DOM. This does NOT remove them from
the jQuery object, allowing you to use
the matched elements further.
Surel...
A polymorphic inline cache works by caching the actual method by the type of the object, in order to avoid the expensive lookup procedures (usually a hashtable lookup). How does one handle the type comparison if the type objects are mutable (i.e. the method might be monkey patched into something different at run time). The one idea I'v...
Below is the code from a plugin for Joomla. It works on it's own and it's purpose is to detect external links on the page and force them into new browser windows using _blank.
I've tried for about an hour (I don't know javascript well) but I can't seem to figure out how to get an onclick function working.
End result, I want to add to t...
I just started a new project with the Dojo toolkit, and no sooner did I drop my dojo.js script tag in than firebug started telling me
Could not load 'dojo._firebug.firebug'; last tried './_firebug/firebug.js'
I know dojo has a reputation for bad debugging messages, but this is ridiculous....
If anyone has any ideas about this I would...