Welcome Guest, Not a member yet? Register   Sign In
problem with JAVASCRIPT!
#1

[eluser]husni[/eluser]
hey guys.. i am experiencing trouble for quite a long time to put a javascript in my application.. can anyone help me with this problem??..

this is my view file..

Code:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<xxscript language="JavaScript" src="&lt;?php echo base_url();?&gt;/javascript/date_picker.js"><xx/script>
<xxscript language="JavaScript" src="&lt;?php echo base_url();?&gt;/javascript/overlib_mini.js"></xxscript>
&lt;/head&gt;

&lt;body&gt;
&lt;form name="sample" method="post" action="popupcalsample.html"&gt;
    <p>Beginning date: &lt;input type="text" name="T1" size="20"&gt;  
    &lt;!-- ggPosX and ggPosY not set, so popup will autolocate to the right of the graphic --&gt;
    <a status='Date Picker'>&lt;?php
    
    $image_properties = array(
                              'src' => 'img/calendar.jpg',
                              //'alt' => 'Me, demonstrating how to eat 4 slices of pizza at one time',
                              //'class' => 'post_images',
                              'width' => '15',
                              'height' => '15',
                              //'title' => 'That was quite a night',
                              'rel' => 'lightbox',
                    );
                    echo img($image_properties); ?&gt;</a>

&lt;/body&gt;

the problem is when i put the cursor on the calendar pic,it doesnt show the message ('Click here to choose a date from a one month pop-up calendar.') at all.. so i think maybe the javascript didnt load successfully..

anyone can help me??
#2

[eluser]John_Betong[/eluser]
&nbsp;

Why is your javascript script prefixed with xx?

If you take a look at your source using your browser then you should be able to see the links to your javascript. Copy and paste and opem the links in another browser window.
&nbsp;
&nbsp;
&nbsp;
#3

[eluser]husni[/eluser]
[quote author="John_Betong" date="1268650858"]&nbsp;

Why is your javascript script prefixed with xx?

If you take a look at your source using your browser then you should be able to see the links to your javascript. Copy and paste and opem the links in another browser window.
&nbsp;
&nbsp;
&nbsp;[/quote]

done..i got the .js code in the file.. but my js still didnt work..
#4

[eluser]danmontgomery[/eluser]
[quote author="John_Betong" date="1268650858"]&nbsp;

Why is your javascript script prefixed with xx?

If you take a look at your source using your browser then you should be able to see the links to your javascript. Copy and paste and opem the links in another browser window.
&nbsp;
&nbsp;
&nbsp;[/quote]

EE forums strip script tags and replace them with [removed]

In firefox, open the error console to see javascript errors.




Theme © iAndrew 2016 - Forum software by © MyBB