TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Javascript, AJAX, E4X (http://www.talkphp.com/javascript-ajax-e4x/)
-   -   Framework (http://www.talkphp.com/javascript-ajax-e4x/2446-framework.html)

Rendair 03-09-2008 10:07 PM

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



Alan @ CIT 03-09-2008 10:28 PM

Dam you IE haters! :-D

You are right, it really doesn't like IE :-( Good luck though and when it's working in IE, give me a yell - I'm always looking for new frameworks to play with :-D

Alan


All times are GMT. The time now is 11:40 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0