jquery ui modal 해결이 안되네요

$(document).ready(function(){
 $('a[name=modal]').click(function(event) {
  event.preventDefault();
  var $this = $(this);
  var id = $this.attr('href');

  var dialogOpts = {
   title: ($this.attr('title')) ? $this.attr('title') : '상세보기',
   autoOpen: true,
   width: 670,
   modal: true,
   resizable: true,
   autoResize: true,
   buttons: {
    "닫기": function() {
     $(this).dialog("close");
     }
   },
   open: function() {
          $("#example").load("id");
   }
  };
  
 $("#example").dialog(dialogOpts);
 $('a[name=modal]').click(function(event){
  event.preventDefault();
  $("#example").dialog("open");
  return false;
  }
 );
 
 });
});

리스트의 링크주소를 모달로 가져오는건데요
id를 찾기는 하는데 가져오질 못합니다.
요놈을 지금 몇시간씩이나 쭈물럭거리고 있네요 이제 머리 스팀받을라고 합니다
도와주세요

|

댓글 9개

var id = $this.attr('href');
==>
var id = $this.get(0).getAttribute('href');
작동 안하네요 ㅜㅜ
id대신에 url암꺼나 집어넣으면 잘불러오거든요
해당 페이지 URL 알려 주세요.
http://203.229.197.199/bbs/board.php?bo_table=calendar&mode=m
$("#example").load("id");
혹시
$("#example").load( id );

???
감솨 ㅜㅜ
아~~ 미치고 돌아가시겠네요 이제 잘나옵니다
가볍게? 산책? 이라고 하세요.
이건다 망할 드림위버 jquery플러그인때문 ㅜㅜ
dialogBox 세로 크기는 저장이 되는데 가로 크기는 저장이 안 되네요.

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기
🐛 버그신고