( ! ) Warning: session_start(): open(/tmp/sess_ebc759c0b5ff21acdbb01899532e11a0, O_RDWR) failed: Disk quota exceeded (122) in /www/noahlabs/jwee/init.php on line 7
Call Stack
#TimeMemoryFunctionLocation
10.0033383928{main}( ).../index.php:0
20.0058397200include( '/www/noahlabs/jwee/init.php' ).../index.php:3
30.0064397200session_start ( ).../init.php:7
Variables in local scope (#2)
$Browser =
/www/noahlabs/jwee/init.php:7:*uninitialized*
$Session =
/www/noahlabs/jwee/init.php:7:*uninitialized*

( ! ) Warning: session_start(): Failed to read session data: files (path: /tmp) in /www/noahlabs/jwee/init.php on line 7
Call Stack
#TimeMemoryFunctionLocation
10.0033383928{main}( ).../index.php:0
20.0058397200include( '/www/noahlabs/jwee/init.php' ).../index.php:3
30.0064397200session_start ( ).../init.php:7
Variables in local scope (#2)
$Browser =
/www/noahlabs/jwee/init.php:7:*uninitialized*
$Session =
/www/noahlabs/jwee/init.php:7:*uninitialized*
Jwee API >> Dom [wee.dom] - Noah Ellman - Javascript Toolkit
mrspoonzy at gmail Cube by Noah Ellman A powerful javascript toolkit, in research © by Noah Ellman

Jwee API > Dom wee.dom

wee.dom id(...)
tag(...)
select(...)
body()
head()
clientHeight()
clientWidth()
scrollTop()
scrollLeft()
loaded

The wee.dom toolkit contains functions related to the document.




function wee.dom.id(...)( string element_id )
Get element by ID. This is the same as wee() and the $() function if enabled.
Args
  1. An HTML element's ID, such as "#header". The # sign is NOT required.
Returns{element} The single element or false if invalid
function wee.dom.tag(...)( string tag )
Get elements by HTML tag name.
Args
  1. HTML tag, such as "div" or "p".
Returns{array} The selected elements

var divs = Dom.tag('div');
// This would get all the DIV elements
//  on the page in an array.
function wee.dom.select(...)( string selector )
Get elements by CSS selector, the same as jQuery() way.
Args
  1. {string} Valid CSS selector, using #id, .class, and tag names.
Returns{array} The selected elements
ExampleDom.select("form#myForm input"); Dom.select("#header a.navLink");
NotesSelecting is processed by the browser, which is much more effecient. However, CSS3 or non-compliant selectors will not work reliably.

This is one of the most fundamental functions. You need to be knowledgable of CSS selector syntax to use this function and its benefits.

// Access only the list items 
// inside a div with the id of "tabs"
Dom.select( "div#tabs li" );

// Access all A links inside paragraphs
// that are within a box with id="content"
Dom.select("#content p a")


// This code below shows resets the value
// of every INPUT box with the class of "textbox"

$( Dom.select("form input.textbox") ).each(
	function() {
		this.value = '';	
	}
);


Tech Note:
Until the most recent generation of browsers, this feature required massive code libraries to be loaded, such as one called sizzle, which is what jQuery uses. Now, with browsers supporting the function natively (called document.querySelectorAll() ), these libraries are not needed. Using native query selecting means thousands of lines of code can be avoided. JWee uses native query selecting because of these new benefits. However, for user's with older browsers, Jwee will dynamaically load the Sizzle engine behind the scenes and use it instead.

>> The Sizzle library (http://www.sizzlejs.com) was created by the Dojo Foundation.

function wee.dom.body()
Get the document's BODY tag
Returns{element} BODY element

Dom.body();

// Usage Example
Dom.body().setStyle( 'fontsize', 15 )
function wee.dom.head()
Get the document's HEAD tag
Returns{element} HEA element

Dom.head();

// Usage Example
var el = Eleml.create( 'script' );
Dom.head().appendChild ( el );
function wee.dom.clientHeight()
Get document (page) height
function wee.dom.clientWidth()
Get document (page) width
Returns{number}
function wee.dom.scrollTop()
Get the window's scroll position
Returns{number}
function wee.dom.scrollLeft()
Get the window's scroll position
Returns{number}
boolean wee.dom.loaded
Status (or readyState) of the page. Greater then 0 means DOM is rendered.
Returns{number}

Possible values:

  • 0 - If page is not loaded at all
  • 1 - If page is ready but images still downloading
  • 2 - If page is completely loaded
  • 3 - If page has been loaded for several seconds

Discussion on /learn/api/wee-dom




itoa('1135173802') 10/06/16 :  

Post a message


Xymon 11/05/14 :  

Jwee comes in handy on the javascript/html5 gaming framework i'm working on. Specifically wee.dom.


Xymon 11/05/14 :  

That's because I moved it to the /resource/ folder.


Xymon 11/05/14 :  

$( Dom.select("div.content") ).each( function() { this.innerHTML='This handles all div tags with the class of "content". '; } );


Xymon 11/05/14 :  

You can also just copy/paste the javascript documents to your computer by visiting the index of xws.t35.org/resource/jwee/


Xymon 11/05/14 :  

TheDoctor: I'd say he's probably fully aware of the downloader not working. I'll help you out though, go to xws.t35.com/resource/jwee/sources.txt In this text document you'll find a list of script tags, add these to the head tag of your document to use them, you can also download them all manually by visiting each source.