2012-10-22 7 views
0

jQuery Mobile과 CodeIgniter를 사용하고 있습니다. 색인 페이지에서jquery Mobile에서 LINK가 작동하지 않습니다.

http://localhost:8888/hwezemail2/index.php/welcome/student/index 

다른 페이지로 연결되는 링크가 있습니다.

http://localhost:8888/hwezemail2/index.php/welcome/student/myhomework/56 

하지만 링크를 클릭하면 다음으로 이동하여 표시되지 않습니다. URL이

http://localhost:8888/hwezemail2/index.php/welcome/student/myhomework/56 

된다 그러나이 내용을 표시하지 않는 한 번

http://localhost:8888/hwezemail2/index.php/welcome/student/index#/hwezemail2/ 
index.php/welcome/student/myhomework/56 

는 다음 나는 페이지를 새로 고칩니다. 그래서 나는 그것을 다시 새로 고친 다음 내용을 보여줍니다.

표시되면 문제가 없습니다. 그것은 단지 처음입니다.

내 PHP 코드는 다음과 같습니다.

echo '<a href="'. base_url().'index.php/welcome/student/myhomework/' 
.$userid.'" data-role="button" data-inline="true" data-transition="pop" 
data-icon="star" data-mini="true" data-theme="c">Missed Homework</a>'; 

답변

2

data-ajax = "false"를 링크에 추가하여 문제가 해결되었습니다.

+0

감사합니다. 매우 유용합니다. – Gavin

관련 문제