A Lil Help Please
Started on the old forum in October 2007 · view the original in the archive · old links redirect here
making a site
php java wml html xhtml
you wont to make for phones or web computers ???
Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!
SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…
hello i am a newbie in making wap site.. my problem is i dont get it.. where to put the java scripts or the php if it will put inside the .wml or you make a new file.. anyone can help me please? thanks...
dont use java script in wml, if you use java script in php only 1-2% phones read correct java script that is one big issue of day. if you use javascript in php use xhtml headers like:
<blockquote><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <title> </title> <link rel="stylesheet" type="text/css" href="style/stil.css" /> </head> <?php include ('date.php'); ?> </body> </html></blockquote>where date.php is
<blockquote> <script language="Javascript" type="text/javascript"> dayName = new Array ("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
monName = new Array ("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December")
now = new Date
</script>
<script language="Javascript" type="text/javascript">
document.write("" + dayName[now.getDay()] + ", " + monName[now.getMonth()] + ", " + now.getDate() + ",")
</script>
</blockquote>
dont use java script in wml, if you use java script in php only 1-2% phones read correct java script that is one big issue of day. if you use javascript in php use xhtml headers like:
<blockquote><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <title> </title> <link rel="stylesheet" type="text/css" href="style/stil.css" /> </head> <?php include ('date.php'); ?> </body> </html></blockquote>where date.php is
<blockquote> <script language="Javascript" type="text/javascript"><script language="Javascript" type="text/javascript"> document.write("" + dayName[now.getDay()] + ", " + monName[now.getMonth()] + ", " + now.getDate() + ",") </script> </blockquote>dayName = new Array ("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday") monName = new Array ("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December") now = new Date </script>
now i get it.. thanks more power!
<blockquote> <script language="Javascript" type="text/javascript"><script language="Javascript" type="text/javascript"> document.write("" + dayName[now.getDay()] + ", " + monName[now.getMonth()] + ", " + now.getDate() + ",") </script> </blockquote>dayName = new Array ("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday") monName = new Array ("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December") now = new Date </script>
does it also work with mobiles? i never tried to use a java code for xhtml.
Advertise your mobile site for FREE with AdTwirl
does it also work with mobiles? i never tried to use a java code for xhtml.
yes, some mobiles.... some LG have special pharsers included and dont run the script...anyway the java code for mobile is doubtful for non java phones and for wml strict phones (wml 1.1) windows mobile , smartphones like nokia, opera ,etc, are ok. what matter is the user, what phone have and what you want to show with java code. if you show the date... that is more evident with php.