4
2
[SOLVED] I use to build pages normally without javascript and only then to add javascipt features. This way, I can set all divs with tools that require javascript with display:none and then in the first line on javascript to turn it visible: &l...
0
1
I had one page in Views in CakePHP, it have normal javascript block, Just inserted: <script language="JavaScript" type="text/javascript"> ---code--- </script> Inside page, and it was all working okay... But now... It doesn't show.....
2011-01-29
0
5
i need to have some php code inside javascript <script ...> <?php echo " ... "; ?> </script> but this doesnt work. how can u implement php inside javascript that is in a own file javascr...
2009-12-05
0
3
i am working on a project, it need email validation when user enter his email address check for availiblity. i wrote the php code in javascript it works fine but my problem is when some one see my page source it is displaying all user email add...
2010-06-05
0
3
I am new to JS & JSON.I am struggle with converting JSON array to JavaScript array.How to do that? Here is my code: var data = { items: [ <? $i=1; foreach($query->result() as $row){ ?> <? if($i!=1){ ?>,<? } ?> {label: '...
2011-06-15
0
2
I am trying to send a variable from a Javascript to a php script but what gets sent is just the first string and the rest is discarded.Dont know what i would be doing wrong. Here is my code: <script type="text/javascript"> document.write(&...
2010-05-10
1
2
I need to solve a problem with javascript injection in a form textarea and fields script type='text/javascript' window.location='http:site.com'; /script or a href='javascript:...' or form action... or input name... but i preserve som...
-1
3
this is substr() function in PHP and JavaScript JavaScript syntax: string.substr(start,length) PHP syntax: substr(string,start,length) in PHP to create this function, we do this PHP: function substr(string,start,length){} how to create fun...
2011-02-16
1
4
How can we send mail using JavaScript? ...
2010-09-11
3
2
Are there any libraries or tools specifically designed to help PHP programmers write Javascript? Essentially, converting the PHP logic into Javascript logic. For instance: $document = new Document($html); $myFoo = $document->getElementById("f...
2010-03-21