Friday, May 17, 2024
 Popular · Latest · Hot · Upcoming
50
rated 0 times [  54] [ 4]  / answers: 1 / hits: 7832  / 10 Years ago, wed, march 19, 2014, 12:00:00

I have problem with Cake PHP delete javascript confirmation dialog.



I am using this code:



<td><?php echo $this->Html->link('Delete',
array('controller' => 'RealEstate', 'action' => 'delete',$r['RealEstate']['id']),
array('onclick'=>'return confirm(Are you sure?);'))?> </td>


and this produce html:



<td><a onclick='return confirm(Are you sure?);' href=/cake1/RealEstate/delete/65>Delete</a> </td>


as you can see this produce wrong Html.



How to fix this ?



FIXED:
Problem was in back slashes Are you sure?, just removed and this works well Are you sure?


More From » php

 Answers
2

FIXED: Problem was in back slashes Are you sure?, just removed and this works well Are you sure?


[#46699] Wednesday, March 19, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
janjadonb

Total Points: 4
Total Questions: 114
Total Answers: 118

Location: Mali
Member since Fri, Dec 3, 2021
3 Years ago
;