Thread: Framework
View Single Post
Old 03-09-2008, 10:07 PM   #1 (permalink)
Rendair
The Addict
Upcoming Programmer Top Contributor 
 
Rendair's Avatar
 
Join Date: Nov 2007
Location: UK
Posts: 319
Thanks: 18
Rendair is on a distinguished road
Default Framework

Hey all

Over the past couple weeks i have been working on a JavaScript framework. I always wanted to give it a try and i have had good results so far, but a lot more work to do.

At the moment it only currently works with FireFox, but i am sorting it out to work with all.

One of the best things about the framework is that it allows you to send Ajax requests easily without knowing a lot about it.

Infact if you want to send a form say with my framework you simply use the following code.

PHP Code:
Framework.Ajax.get(document.getElementById('myForm')) 
Using that will then automatically send all all the fields in that form to a page you wish.

This code can be extended though

PHP Code:
Framework.Ajax.get(document.getElementById('myForm'),function(){
  
url "process.php";
  
type "GET";
}
); 
Other such features are in development like "Pop ups", but some other things like Sliding Divs.

PHP Code:
    Framework.Effects.add('box''shrink',function()
        {
        
            
height=500;     //height of the div
            
speed=10;         //I suggest between 5 - 20
        
        
}
    ); 
The function parameter allows you to set some variables like speed, height, width and so on.

PHP Code:
add('divId''type',function(){}); 
Things within the function() will be run aswell so this allows you to perform other things for the same object.

ANY suggestions on other features that i could add to the Framework would be great or if anyone is interested in helping with it. Please let me know

You can view 2 of the features in use here


__________________
www.jooney.co.uk - the online portfolio
Send a message via MSN to Rendair
Rendair is offline  
Reply With Quote