Thảo Trịnh -
  • Chuyện đọc
  • Lập trình
    • Học nghề
    • Làm thợ
    • Agile Mindset
      • Agile Project Management (APM)
      • Tư duy linh hoạt
  • Nói chuyện vui
Thảo Trịnh -
Chuyện đọc
Lập trình
    Học nghề
    Làm thợ
    Agile Mindset
    Agile Project Management (APM)
    Tư duy linh hoạt
Nói chuyện vui
  • Chuyện đọc
  • Lập trình
    • Học nghề
    • Làm thợ
    • Agile Mindset
      • Agile Project Management (APM)
      • Tư duy linh hoạt
  • Nói chuyện vui
Lập trình

Xử lý lỗi không hiển thị icon close trong jquery dialog

Trong quá trình làm việc với Jquery dialog có lần mình đã gặp trường hợp khi hiển thị dialog box thì thiếu mất icon close
jquery-dialog-box-error

Sau khi debug thì mình thấy code của mình sau khi generated bởi jquery khác với demo trên trang chủ

Code của mình

<div class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix"><spanid="ui-id-2" class="ui-dialog-title">Title
<button class="ui-dialog-titlebar-close"></button></div>

Code trên trang chủ jquery

<div class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix"><span id="ui-id-1" class="ui-dialog-title">Basic dialog</span>
<button class="ui-button ui-widget ui-state-default ui-corner-all ui-button-icon-only ui-dialog-titlebar-close" title="close">

<span class="ui-button-text">close</span>
</button></div>

Lỗi này là do bạn đã sử dụng thư viện jquery-ui trước thư viện boostrap
Nguyên văn “The reason this is happening, is because you are calling bootstrap in, after you are calling jquery-ui in” Xem thêm

October 1, 2016by thaotrinh

Tìm kiếm

Tags

5whys Agile Apache blockchain C# CQRS Daily Scrum database DDD deadlocks Dependency Injection Dependency Inversion Design Pattern docker ebook git Good Developer growth mindset kinh tế Pair programing Repository Retrospective Risk Management Scrum Scrumban Scrum Guide Scrum Master Senior Senior Developer singleton solid sống Technical debt UI UnitOfWork UX Viết Động lực

Bài viết mới

Hãy agile đi

Hãy agile đi

Nói chuyện về vấn đề

Nói chuyện về vấn đề

Hỏi 5 lần tại sao

Hỏi 5 lần tại sao

Tư duy linh hoạt là gì

Tư duy linh hoạt là gì

Không phải làm bao nhiêu mà là tạo ra bao nhiêu

Không phải làm bao nhiêu mà là tạo ra bao nhiêu

Một cuộc đời đáng sống

Một cuộc đời đáng sống

Chuyên mục

  • Chuyện đọc
  • Lập trình
    • Agile Mindset
      • Agile Project Management (APM)
      • Tư duy linh hoạt
    • Công nghệ
      • .NET
      • Blockchain
      • Database
    • Học nghề
    • Làm thợ
  • Uncategorized
    • Gã
    • Nói chuyện vui
    • Product
      • Design