Page 1 of 1

PHP client side or background running for server side ?

Posted: Wed Dec 03, 2008 8:38 pm
by phpbaby2009
Ok. Here is my problem. I got a nice javascript that can output UTF-8 [foreign] characters when clicked on the form buttons. it usages a simple javascript that displays the UTF-8 writen on the value of the button being pressed. I am not worried that others will use my javascript but was wondering if there is a way to do this. Javascript seems to be interacting with the user and all other element where as php just does everything once and sleeps... lol !!

What do you suggest to SECURE their web pages for those who use javascript since they have no choice or is there a PHP alternative to form elements etc ?

I read about a few tips on javascript and wanted to gather them but none of them seem to make sense.

(a) optimize JAVASCRIPT it, i.e. remove lines and crap. but make sure it works before you think its okay not to TEST... Testing after changes is good so you can undo immediately, i.e if you can get back with CTRL Z (I wish i had done it.... :banghead: ) I did optimizer. slept that day. open the file next day. java goes to sleep... why ?? :banghead: well, all those [;] were not there and line breaks made two lines to one three lines to one and you name it.. all javascript was in one line and i thought that looked awesome. The optimizer did it. I wish i had one of these... :drunk: :drunk: then later i went back and hit enter every where i thought i had the [;] gosssssssssssss it was 500 lines of codes and whole day i was just doing nothing but typing ; and hitting enter key. my message. DO NOT OPTIMIZE your JAVASCRIPT. Period !

(b) put the javascript away from you html files.... everyone gives this solution as if they are god. my god, how many of us have this facility ? my host don't do this. they just say... you clicked that ECONO package and this is where you will sleep..... a dead flat floor.... upload or sit or sleep hereeeeeee !!!!!!!!!!!! :dubious:


well, hit me with something either i already know don't know. thanks guys..... muaha... doesn't any one know what this means... i turns out that word means the same in two different language. wow!!!

c ya

Re: PHP client side or background running for server side ?

Posted: Tue Dec 16, 2008 10:19 pm
by John Cartwright
I read your topic and have no idea what your asking. :(