PDA

View Full Version : RJAX Subdreamer - In Development


roosevelt
12-11-2006, 04:03 AM
Hello everyone,
The time has come to take Subdreamer for a spin and add the power of AJAX to it :). Yes you heard me right, I am making some modification to Subdreamer CMS by which it will gain the power to do this using the combination of different languages called AJAX. Here are some the features I've already implemented and will be posting some screenshot shortly.
The Contact form will validate different fields using AJAX. For example like here: http://www.rcms-pro.com/pages/contactus.html. Click on a text field, but without typing anything click on the other field. You will see X, and now type something and click on the other field and you will see check.
Clicking on a Category Link will load the contents of that category right away without reloading the web page.
Some of the options in the administrator panel will be powered by ajax. So that means you submit the form and it will update the settings without re-loading the pages.
RJAX Framework can be used in your own plugins as well ;). That means your plugins can be ajaxified.
Turn on/off RJAX from admin panel. So all ajax function will be deactivated if it is turned off.The biggest feature is the ability to ajaxify your plugins. However if you have suggestions please let me know. RJAX is created in combination of XAJAX and my own plugins.

Since this ajax feature is not really a plugin, I got confused where to post this news. So move it to the proper category if it isn't the right one.

*Subdreamer you should give me a job ;).

Previews

RJAX Subdreamer Contact Form (http://www.rcms-pro.com/rjax_sd/rjax_contactform/)
Same form but with real time verification.

abcohen
12-11-2006, 04:38 AM
this is fine - or if the edit are just overwrites for single plugin then in plugin mods... really depends on how you're packing it up... (like you need to install a libaray file - and you need to have checks thats a plugin)

abcohen
12-11-2006, 04:42 AM
I do like ajax on auto-complete forms (like on ofoto it pulls up commonaly used emails I forward my pics too)

TheMasterG
12-12-2006, 11:44 AM
Clicking on a Category Link will load the contents of that category right away without reloading the web page.
Sound good, especially this part!

RandomNinjaAtk
12-12-2006, 12:51 PM
Yeah, I agree totally with TheMasterG, That would be one great feature.

Tobias
12-12-2006, 03:42 PM
Roosevelt,

before I get too excited about it, some important questions:
* will these enhancements require a lot of SD-core filechanges and/or the skinfiles?
* do you consider contributing your development here on SD.org or - hopefully not - offer it for "lease"? In case of it being a kind and generous contribution, you'd surely win a price for any next contest IMHO. :)

kboy_16
12-12-2006, 04:58 PM
Excellent job!! ;) sounds to me that it would be the next revolution :P

roosevelt
12-12-2006, 07:48 PM
Roosevelt,

before I get too excited about it, some important questions:
* will these enhancements require a lot of SD-core filechanges and/or the skinfiles?
* do you consider contributing your development here on SD.org or - hopefully not - offer it for "lease"? In case of it being a kind and generous contribution, you'd surely win a price for any next contest IMHO. :)

This mod will be completely FREE but won't be opensource or GPL ;). So that means you can't copy the framework and use it for your own software. its just for Subdreamer CMS. In the future the plugins I will make (e.g. R-Arcade) using this AJAX framework for SD won't be free.

The code won't need much modification unless you choose to convert all of your plugins. Please beware that AJAX pages are fetched directly from the database. And the links are something like:

<a href='javascript:void(null);' onclick='fetch_page();'>Show Page</a>. So that means search engines can't follow this kind of URLS and can't index. This is why you might not want to convert all the plugins on your subdreamer to ajax if you think Search Engine is very important. The only changes so far I've done is add a code to fetch some javascript before the </head> tag and the rest is just making ajax links and use some onblur() or onclick() condition.

robert_p_skold
12-12-2006, 08:05 PM
Starting to inject subdreamer with encrypted code is a poor idea.
How can anyone verify what this code does and does not do?
How could we even check for vulnerabilities? I would never attach a piece of encrypted code to my website. I'm sure your aware of this.

If SD was encrypted you wouldn't be able to do what your doing now :)
Free or not sharing is caring. Non-encrypted code helps people learn. I'm glad SD is not encrypted. Perhaps these descions will cause SD to encytpt their next version along with some changes that would not allow our plugins to run...

roosevelt
12-12-2006, 09:09 PM
robert I believe you are mistaking. The script won't be encrypted. I am just saying that you can't use the same code in your own CMS system like PHP-NUKE or something.

For example Subdreamer is a copyrighted script and its illegal to copy any part of its code. So same with the framework, you can see the code, enhance it for Subdreamer CMS but can't take it for some other cms or scripts.

*Something not Opensource means that it doesn't come with the General Public License and it can't be used for anything you want.

Tobias
12-12-2006, 09:24 PM
Roosevelt,
thanks for clarifying this, appreciated. I had initially the same concerns about the encryption.
Thanks for working on this and keeping us aware.

robert_p_skold
12-12-2006, 10:12 PM
robert I believe you are mistaking. The script won't be encrypted. I am just saying that you can't use the same code in your own CMS system like PHP-NUKE or something.

For example Subdreamer is a copyrighted script and its illegal to copy any part of its code. So same with the framework, you can see the code, enhance it for Subdreamer CMS but can't take it for some other cms or scripts.

*Something not Opensource means that it doesn't come with the General Public License and it can't be used for anything you want.

My mis-understanding Roosevelt.

roosevelt
12-12-2006, 10:29 PM
No problem bro, later I actually realized myself that saying opensource probably confused many others too. My apologies as well. Anyways here's the first preview of RJAX capabilities, the contact form verification video.

http://www.rcms-pro.com/rjax_sd/rjax_contactform/

It might look like that its javascript but matter of fact through AJAX and the javascript's onblur() event the field is calling up a PHP function I wrote in the RJAX class.

Oh if you are not comfortable with classes and objects then don't worry I will release a handy manual with which you can easily use the methods under RJAX class easily in your functions.

robert_p_skold
12-13-2006, 12:03 AM
I don't know what was better the video or the form itself. Nice, very nice.

mongeron
12-13-2006, 05:55 AM
<a href='javascript:void(null);' onclick='fetch_page();'>Show Page</a>. So that means search engines can't follow this kind of URLS and can't index. This is why you might not want to convert all the plugins on your subdreamer to ajax if you think Search Engine is very important. The only changes so far I've done is add a code to fetch some javascript before the </head> tag and the rest is just making ajax links and use some onblur() or onclick() condition.

You should use Javascript inside <script> -tags to print those AJAX -URLs, and then have <noscript> tag after which contains the regular URL.

And even better, you can check if AJAX is available before printing out the AJAX URL. If it is not available, print out the regular URL.

This way you can have spiderable URLs in your page, support for browsers that do not have AJAX functionality etc. One example of such browser is Opera Mini, the browser for mobile phones.

- mongeron