Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
Javaskripta ne radi u php dokumentu?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side
View previous topic :: View next topic  
Author Message
PsychoPod



Joined: 05 Oct 2003
Posts: 166

PostPosted: 24.01.2004 14:32    Post subject: Javaskripta ne radi u php dokumentu? Add user to your forum ignore list Reply with quote

Code:
<script language="javascript">
                  <!--
         
                     if (!document.layers) {
         
                        document.write("<input type=\"button\" onclick='showCalendar(this, addcw.datum, \"dd.mm.yyyy\",null,0,15,150)' value=\"select\" style='font-size:11px'>")
         
                     }
         
                  //-->
         </script>

evo, ovaj kod ne radi kada mi je file php, a kada je html onda radi. dokumenti su identicni.
na mojoj stranici mi radi, ali lokalno ne radi u php dokumentu.
sta i gdje bi morao php.ini mjenjati ili nesto drugo treba namjestiti?
Back to top
View user's profile Send private message
_butch



Joined: 10 Sep 2003
Posts: 870
Location: Maichno, Krlovc

PostPosted: 24.01.2004 23:37    Post subject: Add user to your forum ignore list Reply with quote

ajjmo ovako probati

ili

Code:

<?php
echo "
<script language=\"javascript\">
                  <!--
         
                     if (!document.layers) {
         
                        document.write(\"<input type=\"button\" onclick=\"showCalendar(this, addcw.datum, \"dd.mm.yyyy\",null,0,15,150)\" value=\"select\" style=\"font-size:11px\">\")
         
                     }
         
                  //-->
         </script>
";
?>


ili
Code:

<?php
// tu si stavi php kod, a kada ti dodje da stavis ovaj javascript onda zatvori
// sa ?> i gdje treba ti se nastaviti php kod otvori ponovno php <?php
if ($javaskripta) {
?>
<script language="javascript">
 
                 <!--
         
                     if (!document.layers) {
         
                        document.write("<input type=\"button\" onclick='showCalendar(this, addcw.datum, \"dd.mm.yyyy\",null,0,15,150)' value=\"select\" style='font-size:11px'>")
         
                     }
         
                  //-->
         </script>
<?php
}
?>


ako ides na 2. rjesenje onda izbaci " \" " i stavi si ' . [/code]

_________________
FRENCH GUARD: No chance, English bed-wetting types.
I burst my pimples at you and call your door-opening request a silly thing, you tiny-brained wipers of other people's bottoms!
Flikrac
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
PsychoPod



Joined: 05 Oct 2003
Posts: 166

PostPosted: 26.01.2004 23:29    Post subject: Add user to your forum ignore list Reply with quote

to sam bio napravio vec i prije i nije radilo..
mislim da treba nesto u php.ini-u namjestiti jer mi na gameru radi kako treba..
Back to top
View user's profile Send private message
zytzagoo
mi3.crew


Joined: 25 Aug 2003
Posts: 1842
Location: Zagreb, Hrvatska

PostPosted: 27.01.2004 10:21    Post subject: Add user to your forum ignore list Reply with quote

quick 'n' dirty:
Code:
<?php
echo <<<EOD
<script language="javascript">
                  <!--
         
                     if (!document.layers) {
         
                        document.write("<input type=\"button\" onclick='showCalendar(this, addcw.datum, \"dd.mm.yyyy\",null,0,15,150)' value=\"select\" style='font-size:11px'>")
         
                     }
         
                  //-->
</script>
EOD;
?>

_________________
[+]I[+]am[+]my[+]own[+]religion[+]
Back to top
View user's profile Send private message Visit poster's website Twitter profile
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group