Welcome Guest, Not a member yet? Register   Sign In
problem with java script
#1

[eluser]lordoffriends[/eluser]
i m trying to add date time picker javascript in my page but somehow javascript isnt executing ..i m saving jscript and image file in the view folder...
this is the simple code which when saved as html runs without problem but when saved as php file under view then calendar doesnt appears!

this is the code !

<html>
<head>

[removed]

[removed]

</head>
<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
<table width="700" cellspacing=0 border="0" cellpadding="0" align="center" summary="">
<tr>
<td>
<div class="subtitle">Demo Date Time Picker</div>

</td>
</tr>
<tr>
<td>
&lt;input type="Text" id="demo1" maxlength="25" size="25"&gt;&lt;a href="[removed]NewCal('demo1','ddmmmyyyy',true,24)"><img src="images/cal.gif" width="16" height="16" border="0" alt="Pick a date"></a>
<span class="descriptions">pick a date..</span>
</td>
</tr>
<tr>
<td>
<br>
<div class="descriptions">Find user guide and learn how to customise your date time picker at <a href="http://www.rainforestnet.com/">rainforest<font color="red"><b>NET</b></font></a>
</td>
</tr>
<tr>
<td>
<hr noshade width="100%" align="left" size="1">
</td>
</tr>
</table>

&lt;/body&gt;
&lt;/html&gt;

any help would be appreciated in this regard !
#2

[eluser]lordoffriends[/eluser]
the place where the code says [removed] has to be replace with this ..

[removed]

[removed]

i dont know why it is showing [removed] in this thread !
#3

[eluser]pistolPete[/eluser]
[quote author="lordoffriends" date="1237166504"]i dont know why it is showing [removed] in this thread ![/quote]

This forum removes all javascript occurrences in order to avoid cross site scripting.
You could use something like pastebin.com/ or attach the file.

Regarding the javascript issue:
Use Firebug to debug javascript code.
#4

[eluser]TWP Marketing[/eluser]
lordoffriends,

I have/had a similar problem when using the js (Mootools) used in the CI UserGuide. When I attempted to integrate the opensource datepicker from Epoch ( http://www.meanfreepath.com/javascript_c.../docs.html ) there was a conflict, either I could get the datepicker to work and the mootools pulldown menu failed or vice-versa, depending on which script was declared first in the doc header. Epoch's freeware also did not allow multiple datapicker instances in the same document. Their commercial product is claimed to allow multi datepicker installation, but my project has no budget for that version.

I could not resolve it and switched to the Tigra calendar ( http://www.softcomplex.com/products/tigra_calendar/ ), it is open source and DOES allow multiple instances in the same document. It's also MUCH easier to install...
FYI
TWP




Theme © iAndrew 2016 - Forum software by © MyBB