Jackura
(Jacky Won)
March 25, 2014, 12:45pm
1
Help.
The problem was on the CHtml::ajaxLink.
When the page loaded first time in browser, there have no jquery code generated for this ajax link.
But the jquery code generated correctly after I refresh the page.
The problem still not resolve tho.
ahmed201
(Rifajas)
March 25, 2014, 12:50pm
2
Help.
The problem was on the CHtml::ajaxLink.
When the page loaded first time in browser, there have no jquery code generated for this ajax link.
But the jquery code generated correctly after I refresh the page.
I think it’s also related to this ticket
Ticket
The problem still not resolve tho.
this might happened due to browser cache
Jackura
(Jacky Won)
March 26, 2014, 12:25am
3
Too bad, its not the cache problem. It was still the same thing happened. The js script for ajaxLink did not generate in the first time but it generated after I did a refresh in browser.
Here is my code. HELP.
View.php
<UL id="listview">
</<UL>
<?php
echo CHtml::ajaxLink('Next 20', array('getMoreRestaurant',),
array('type' => 'GET',
'success' =>'js:function(data){
jQuery("#listview").append(data)
}',), array('id'=>'link_id_0')); ?>
_ajaxPage.php
<?php
echo "<LI>AJAX</LI>";
?>
Jackura
(Jacky Won)
March 26, 2014, 3:19am
4
Found out why. Jquery mobile will not load the body tag content instead it loads only the id page element.