A Lil Help Please

Started on the old forum in October 2007 · view the original in the archive · old links redirect here

6 replies · 520 views · started 19 years ago · 1 min read

3 participants
sparkcom #1

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...

subzero Super moderator Fellow · 3,954 posts #2

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... _______…

blackhowk Senior · 411 posts #3

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>
sparkcom #4

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>

now i get it.. thanks more power!

GumSlone Administrator Principal · 1,690 posts #5
<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>

does it also work with mobiles? i never tried to use a java code for xhtml.

Advertise your mobile site for FREE with AdTwirl

External image (may be gone)

blackhowk Senior · 411 posts #6

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.

gh0st #7

u could put in a requirement if content java can run to use the java addons then u wonthav 2 wori if they can run it or not

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close