fancybox傳遞參數

<a href="javascript:edit('${d.id }')">編輯</a>

function edit(id){
		/**編輯   **/
	    $("#showTips").fancybox({
	    	'href'  : '<%=basePath %>driver/toEdit?id='+ id,
	    	'width' : 500,
	        'height' : 400,
	        'type' : 'iframe',
	        'hideOnOverlayClick' : false,
	        'showCloseButton' : false,
	        'onClosed' : function() { 
	        	window.location.href = '<%=basePath %>driver/getAll';
	        }
	    });
		$("#showTips").click();
	}

<input type="button" value="" id="showTips" style="display: none;">

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章