Dynamic Web Design Tutorials Ft Javascript,Ajax,DOM,PHP,MySQL...

Welcome. Please Login, Register, Or Activate! 
type your username and password to login
Date: November 08, 2009, 02:50 AM
423489 members and 291068 Topics
Latest Member: Faizan1988
Nairaland [Nigerian Forum] Home Help Search Who is currently online? Login Register
Nairaland Forum  |  Technology  |  Webmasters (Moderators: OmniPotens, yawa-ti-de)  |  Dynamic Web Design Tutorials Ft Javascript,Ajax,DOM,PHP,MySQL...
Pages: (1) (2) (3) (4) (5) (6) Go Down Send this topic Notify of replies
Author Topic: Dynamic Web Design Tutorials Ft Javascript,Ajax,DOM,PHP,MySQL...  (Read 6758 views)
Honeywell
Re: Dynamic Web Design Tutorials Ft Javascript,Ajax,DOM,PHP,MySQL...
« #128 on: May 12, 2009, 07:53 PM »

good posting, bros, keep it up!


* EBAJ-MicroPlace_Q209-MothersDay-298x270.jpg (18.59 KB, 298x270 )
softnsmart
Re: Dynamic Web Design Tutorials Ft Javascript,Ajax,DOM,PHP,MySQL...
« #129 on: May 13, 2009, 05:03 PM »

I am sorry to interrupt your blog but I wish to inform you about the new Nigerian made Web Development Framework, PHP Freedom Framework. It is a MVC based framework written in object oriented PHP5. I always like saying that you could develop a full database driven website in 15 minute, please pardon me but it is true.

It is flexible and allows developers to imagine more and do much more. I have worked with some frameworks for a few years, this include Zend Framework and Seagull. And lately I have been working with Oracle JDeveloper(ADF etc for JAVA). My favorite framework regardless of the language is ZF. But I always ask my colleagues if these frameworks are what we really needed. We need a framework that would help us understand the reasons for using a framework and the real concepts behind frameworks.

PHP Freedom Framework takes you straight to business and will, with time, make you a framework developer.

Post comments here: http://www.nairaland.com/nigeria/topic-271455.0.html to avoid distracting the purpose of this thread.

Download: http://code.google.com/p/phpfreedom/downloads/list
Issues: http://code.google.com/p/phpfreedom/issues/list
Website: http://www.phpfreedom.org

Thank you and I am sincerely very sorry for distracting you, but I wish you would like to be a part of this young project.
biggjoe (m)
Re: Dynamic Web Design Tutorials Ft Javascript,Ajax,DOM,PHP,MySQL...
« #130 on: May 13, 2009, 06:56 PM »

Thats what I call a cheap shot, your apologies didnt change much  of the way we see your post -- cheap advert!
softnsmart
Re: Dynamic Web Design Tutorials Ft Javascript,Ajax,DOM,PHP,MySQL...
« #131 on: May 13, 2009, 07:06 PM »

@biggjoe

Once again, I am sorry for getting you infuriated, it was not unexpected, though. But I wish to say that I felt that this is the best place to reach Nigerian web developers who might be interested in new developments in the Nigerian technology sector. It was meant for information purpose and not to seek for patronage. And again, I wish to say that the project is free and open source. So I would not think it was an advert, and I am not some who likes controversies that is why I apologized, and I hope you would understand and I sincerely hope that the moderator does as well.

 
*dhtml (m)
Re: Dynamic Web Design Tutorials Ft Javascript,Ajax,DOM,PHP,MySQL...
« #132 on: May 13, 2009, 10:35 PM »

Really, this place is turning to advert zone, where is the mooooooooderator?HuhHuhHuh??
*dhtml (m)
Re: Dynamic Web Design Tutorials Ft Javascript,Ajax,DOM,PHP,MySQL...
« #133 on: May 30, 2009, 03:48 PM »

I want to do a little diversion here, before getting back to the class project topic. . .

Let us talk about javascript/css compression, the implementation and stuffs. . .

I am waiting for comments here before i continue. . .
coolnature
Re: Dynamic Web Design Tutorials Ft Javascript,Ajax,DOM,PHP,MySQL...
« #135 on: May 31, 2009, 11:15 AM »

08035178347
coolnature
Re: Dynamic Web Design Tutorials Ft Javascript,Ajax,DOM,PHP,MySQL...
« #136 on: May 31, 2009, 11:18 AM »

I need a website in one week, pls call my number if u can do it good.08035178347
*dhtml (m)
Re: Dynamic Web Design Tutorials Ft Javascript,Ajax,DOM,PHP,MySQL...
« #137 on: June 01, 2009, 07:56 AM »

Well, compressing javascript and css can help reduce there download size by 50%, immagine a 50KB jscript file reduce to say 20KB, that improves the speed of your website 'cos scripts tend to download faster that way. . . .

Comments please. . .
osmaah (m)
Re: Dynamic Web Design Tutorials Ft Javascript,Ajax,DOM,PHP,MySQL...
« #138 on: June 03, 2009, 08:42 PM »

hello dhtml. i think am interested in your phpmysql class.  can we meet? pls leave a forwarding address 2 mail u. thank u.
*dhtml (m)
Re: Dynamic Web Design Tutorials Ft Javascript,Ajax,DOM,PHP,MySQL...
« #139 on: June 04, 2009, 02:24 AM »

well, you can call me on 07030290746 or email: support@mwebng.net or contact me directly through my website.
At the moment, i am tryin to clear my virtual desk, i seem to be collected more work than i can handle at a time. And i dont do
one on one tutorials, too time consuming, but let's still see what you have to say anyway.

Lemme see if i can upload the javascript compression utility tonight, and continue discussions from there


*dhtml (m)
Re: Dynamic Web Design Tutorials Ft Javascript,Ajax,DOM,PHP,MySQL...
« #140 on: June 06, 2009, 05:32 PM »

Wait a minute, how is it that i am not getting any comments here? no encouragement or even discouragement. . .
Maybe i should just sit on the fence for awhile and see if anything happens
*dhtml (m)
Re: Dynamic Web Design Tutorials Ft Javascript,Ajax,DOM,PHP,MySQL...
« #141 on: June 07, 2009, 07:20 PM »

Well, like them say, seeing is believing. So lemme post it already. http://mwebng.net/utils/jscompress

There are a few rules that apply to the usage.

A valid source code can be seen below:
Quote
var mclear=new jpage();
var post_timer=null;

var mpost=new jpage();


mclear.ondownloadFailure=function() {
   msgbox.show("You have been disconnected from the internet. Please check your connection.",'critical',"Internet Connection Lost","action=Close|modal=true|drag=true");
};

mclear.ondownloadSuccess=function() {
document.getElementById("stat_msg_holder").style.display="none";
};



function clearstat() {
var request="post/status.clear.php";
mclear.download(request);
};

var prompt;
var post;
var post_txt;
var post_btn;
var msg_holder;
var saver;
function load_events() {
prompt=document.getElementById("action_prompt");
post=document.getElementById("action_post");
post_txt=document.getElementById("action_post_text");
post_btn=document.getElementById("action_post_btn");
msg_holder=document.getElementById("stat_msg_holder");
saver=document.getElementById("saver_msg");

//alert(saver.innerHTML.trim());
if(saver.innerHTML.trim()=="") {msg_holder.style.display="none";}
else {msg_holder.style.display="block";};

document.getElementById("action_cell").onclick=function() {
if(prompt.style.display=='block')  {
prompt.style.display='none';post.style.display='block';post_txt.focus();post_txt.select();
}

};

post_txt.onblur=function() {
try {clearTimeout(post_timer);} catch(err) {void(0);};
post_timer=setTimeout(function() {prompt.style.display='block';post.style.display='none';},1000);
};

post_txt.onfocus=function() {
try {clearTimeout(post_timer);} catch(err) {void(0);}
};

post_btn.onclick=function() {post_data();}

};




function post_data() {
post_txt.disabled=true;
post_txt.readonly=true;

var request="post/status.php?text="+escape(post_txt.value);
mpost.xdownload(request,
function() {
if(responseText2=="gmode") {

post_txt.disabled=false;
post_txt.readonly=false;

prompt.style.display='block';post.style.display='none';
document.getElementById("stat_msg_holder").style.display="block";
  alert("Your login session has expired, please login to continue.");
} else {
var text=responseText;

post_txt.disabled=false;
post_txt.readonly=false;

prompt.style.display='block';post.style.display='none';

var ctime=text.param('ctime').urldecode();
var ctext=text.param('ctext').urldecode();

document.getElementById("saver_msg").innerHTML=ctext;
document.getElementById("saver_msg_time").innerHTML=ctime;

document.getElementById("stat_msg_holder").style.display="block";
}

},
function() {
   msgbox.show("You have been disconnected from the internet. Please check your connection.",'critical',"Internet Connection Lost","action=Close|modal=true|drag=true");
}
);


return false;
};

which was compressed to:
Quote
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('2 j=s t();2 i=1u;2 x=s t();j.1c=6(){Z.12("13 X L M N K J. G H I O.",\'P\',"V W U","T=Q|R=c|S=c")};j.1b=6(){7.5("f").1.3="b"};6 1e(){2 g="9/B.1f.y";j.1i(g)};2 a;2 9;2 4;2 n;2 h;2 r;6 1h(){a=7.5("1a");9=7.5("1j");4=7.5("15");n=7.5("14");h=7.5("f");r=7.5("10");p(r.m.16()==""){h.1.3="b"}A{h.1.3="8"};7.5("18").z=6(){p(a.1.3==\'8\'){a.1.3=\'b\';9.1.3=\'8\';4.17();4.1g()}};4.1C=6(){u{E(i)}v(C){D(0)};i=1k(6(){a.1.3=\'8\';9.1.3=\'b\'},1w)};4.1v=6(){u{E(i)}v(C){D(0)}};n.z=6(){w()}};6 w(){4.q=c;4.o=c;2 g="9/B.y?e="+1p(4.1s);x.1q(g,6(){p(1x=="1r"){4.q=d;4.o=d;a.1.3=\'8\';9.1.3=\'b\';7.5("f").1.3="8";1o("1l F 1m 1n 1t, 1A F 1B 1z.")}A{2 e=1y;4.q=d;4.o=d;a.1.3=\'8\';9.1.3=\'b\';2 l=e.Y(\'l\').11();2 k=e.Y(\'k\').11();7.5("10").m=k;7.5("19").m=l;7.5("f").1.3="8"}},6(){Z.12("13 X L M N K J. G H I O.",\'P\',"V W U","T=Q|R=c|S=c")});1d d};',62,101,'|style|var|display|post_txt|getElementById|function|document|block|post|prompt|none|true|false|text|stat_msg_holder|request|msg_holder|post_timer|mclear|ctext|ctime|innerHTML|post_btn|readonly|if|disabled|saver|new|jpage|try|catch|post_data|mpost|php|onclick|else|status|err|void|clearTimeout|login|Please|check|your|internet|the|been|disconnected|from|connection|critical|Close|modal|drag|action|Lost|Internet|Connection|have|param|msgbox|saver_msg|urldecode|show|You|action_post_btn|action_post_text|trim|focus|action_cell|saver_msg_time|action_prompt|ondownloadSuccess|ondownloadFailure|return|clearstat|clear|select|load_events|download|action_post|setTimeout|Your|session|has|alert|escape|xdownload|gmode|value|expired|null|onfocus|1000|responseText2|responseText|continue|please|to|onblur'.split('|'),0,{}))


Reducing the size from 3kb to about 1.9 KB

Notice the syntax of the source that at the end of most } i added ; now that is very important, i will continue the documentation later. Enjoy!
segsalerty (m)
Re: Dynamic Web Design Tutorials Ft Javascript,Ajax,DOM,PHP,MySQL...
« #142 on: June 07, 2009, 11:04 PM »

Nice one,  but , what compressed that code and how was it compressed sir ?
*dhtml (m)
Re: Dynamic Web Design Tutorials Ft Javascript,Ajax,DOM,PHP,MySQL...
« #143 on: June 08, 2009, 03:37 AM »

Now that is a very interesting question. . .but it was compressed using php, used the p-a-c-k-e-d method which i have only slightly modified.
*dhtml (m)
Re: Dynamic Web Design Tutorials Ft Javascript,Ajax,DOM,PHP,MySQL...
« #144 on: June 09, 2009, 07:00 AM »

Now i am seriously begining to wonder if anybody has tried this, i do not seem to be getting any comments and questions. . .
I can even help you debug your code sef if you get stuck. . .

No problems, lemme start preparing the css compression stuff, that one seem to be more easier. . .
dearstan (m)
Re: Dynamic Web Design Tutorials Ft Javascript,Ajax,DOM,PHP,MySQL...
« #145 on: June 09, 2009, 07:20 AM »

Quote from: dhtml on June 09, 2009, 07:00 AM
Now i am seriously begining to wonder if anybody has tried this, i do not seem to be getting any comments and questions. . .
I can even help you debug your code sef if you get stuck. . .

No problems, lemme start preparing the css compression stuff, that one seem to be more easier. . .

Like you rightly mentioned, i dont think anyone may have tried compressing javascript or css files on their website because most people would see it as irrelevant. But if i may ask, cant the script be used to compress other file extensions? Also would the compressed version function properly?
*dhtml (m)
Re: Dynamic Web Design Tutorials Ft Javascript,Ajax,DOM,PHP,MySQL...
« #146 on: June 09, 2009, 09:05 AM »

The compression makes your website load faster, by reducing the size of your javascript/css to less than half of their original size.

And by the way, jquery plugin uses just exactly this same kind of compression algorithm! as in the prototype.js!

And as for compressing other scripts like php, it is done, i even have the algorithm but the differences is not so marked like that

fxmaxony (m)
Re: Dynamic Web Design Tutorials Ft Javascript,Ajax,DOM,PHP,MySQL...
« #147 on: June 10, 2009, 03:20 PM »

@dhtml, i like what is going on here, do you have a comprehensive e book or tutorial, let me know
*dhtml (m)
Re: Dynamic Web Design Tutorials Ft Javascript,Ajax,DOM,PHP,MySQL...
« #148 on: June 10, 2009, 03:26 PM »

E-book on what topic pleaze? I have ebook, but most of what i post here in webmasters are based on experience and also part
of some of the work i have done in the past mostly, and some of present.
*dhtml (m)
Re: Dynamic Web Design Tutorials Ft Javascript,Ajax,DOM,PHP,MySQL...
« #149 on: June 12, 2009, 06:14 AM »

While i am still sorting out the css compressor utility and other stuffs, dont forget to join the javascript class:
http://www.nairaland.com/nigeria/topic-279198.0.html

*dhtml (m)
Re: Dynamic Web Design Tutorials Ft Javascript,Ajax,DOM,PHP,MySQL...
« #150 on: June 12, 2009, 06:28 AM »

Well, this is the spoiler:

That is the main engine behind the csss compression stuff. . .

Quote
<?php
function readfile2($file="",$buffer="") {
$buffer=file_get_contents($file);
    // remove comments
    $buffer = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $buffer);
    // remove tabs, spaces, newlines, etc.
    $buffer = str_replace(array("\r\n", "\r", "\n", "\t", '  ', '    ', '    '), '', $buffer);
    return $buffer;
}
?>

See you guyz later. . .
*dhtml (m)
Re: Dynamic Web Design Tutorials Ft Javascript,Ajax,DOM,PHP,MySQL...
« #151 on: June 13, 2009, 04:27 PM »

Whilst i have not yet been able to sort out the full css compression module, you can check some dhtml reference materials on
http://www.nairaland.com/nigeria/topic-279198.32.html . . .later
lannre (m)
Re: Dynamic Web Design Tutorials Ft Javascript,Ajax,DOM,PHP,MySQL...
« #152 on: June 18, 2009, 04:29 PM »

dhtml how can I talk to U online my ID is lannre@yahoo.com
*dhtml (m)
Re: Dynamic Web Design Tutorials Ft Javascript,Ajax,DOM,PHP,MySQL...
« #153 on: June 18, 2009, 04:32 PM »

Class is temporarily taking a break, i will be back sometime later. . . .
*dhtml (m)
Re: Dynamic Web Design Tutorials Ft Javascript,Ajax,DOM,PHP,MySQL...
« #154 on: June 19, 2009, 07:12 AM »

CSS Compression utility: http://www.mwebng.net/utils/css.compress/index.php
That one is more straight forward compared to the javascript compression.

The efficiency however is around 95%, and it compresses the file sometimes up to 50%
which will reduce the time they will take to download from your website.



I think that ends the diversions part for now. I will get right back on the main topic
on my next post, and will tolerate any questions concerning the css and javascript compressions.
remoranger (m)
Re: Dynamic Web Design Tutorials Ft Javascript,Ajax,DOM,PHP,MySQL...
« #155 on: June 20, 2009, 04:13 PM »

@dhtml
I will remove this post by evening. i am chatting through my yahoomail not my messenger. and the chat server get wahala. pls you can communicate with me by mail in the main time. webextremeconcept@gmail.com. thanks
*dhtml (m)
Re: Dynamic Web Design Tutorials Ft Javascript,Ajax,DOM,PHP,MySQL...
« #156 on: June 20, 2009, 04:21 PM »

No problemo, i will talk to you later then. Dont wory about removing the post. . .
*dhtml (m)
Re: Dynamic Web Design Tutorials Ft Javascript,Ajax,DOM,PHP,MySQL...
« #157 on: June 22, 2009, 03:14 AM »

News Flash: How Flash Ruined My DHTML Effect

I had dhtml effect that displays a pop-over window over a page, and on that same page, i later introduced flash.
There is this problem of flash not allowing objects like DIV to display over it, even if you make use of position:absolute;z-index:1000

Well, i was able to sort it out by visiting: http://www.communitymx.com/content/article.cfm?cid=e5141
You will get better explanation there of what the problem was all about and how to solve it too.
kliverpool (m)
Re: Dynamic Web Design Tutorials Ft Javascript,Ajax,DOM,PHP,MySQL...
« #158 on: July 22, 2009, 11:07 AM »

i need to talk to u
i want somebody to build a website for me?
08063423736
yawa-ti-de (f)
Re: Dynamic Web Design Tutorials Ft Javascript,Ajax,DOM,PHP,MySQL...
« #159 on: July 22, 2009, 11:26 AM »

Quote
News Flash: How Flash Ruined My DHTML Effect
dhtml:
Your link didn't come up but this is a common problem.  I have solved this by using either z-index or an iframe or in some instances both.  Whereby what is bleeding through is very "tiny", I usually fix the problem via javascript by setting visibility of the element to hidden.

I believe I even have a tutorial or quiz on this here somewhere.
 Nudist Camp Nude Celebrity  The Million Dollar Homepage idea, by Alex Tew  What's Your Own Website Address?  Page 2
Pages: (1) (2) (3) (4) (5) (6) Go Up Send Topic to Friend by E-mail Reply 


Sections: Autos/Cars (2) Jobs/Vacancies (2) (3) Career Talk Education General(2) Politics Romance Computers Phones Travel
Sports Fashion Health Religion Celebrities TV/Movies (2) Music/Radio (2) Books Webmasters Programming

Links: Page1 Page2 Page3 Page4 Page5 Page6 Page7 Page8 Page9 Page10

Nairaland is owned by Oluwaseun Osewa. See also: Nairalist Classified Ads
Nairaland Forum | Powered by SMF 1.0.12.
© 2001-2005, Lewis Media. All Rights Reserved.