Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How destroy definitely a modal windows
10th January, 11:10 (This post was last modified: 10th January 11:40 by ronnie1985hk.)
Post: #1
How destroy definitely a modal windows
hi,
every time the user clicks on link related to a qtip modal window, qtip allocate memory for the modal, but when the modal is closed (by user) the object $('#some_id').qtip() exits anyway.

My situation:

JS Code
$('#some_id').qtip(
   {
      content: {
         title: {
            text: "Category: "+$('#category').value(),
            button: 'Chiudi'
         },
         text: ' TEXT OF MODAL '
      },
 
)} // end



In the DOM there is a select box:
JS Code
<select id="category"> ... option here ... </select>


I want to display a dynamic text in the modal windows according to the value selected in the select box.
Make it simple, in the code upon, the "dynamic text" is: Category: <option selected>

The problem is that when user allocate the first modal windows, the next modals mantain the values of the first modal windows becuse qtip don't free memory when the modal is closed.......

can you help me, please.... sorry my english Smile
Find all posts by this user
Quote this message in a reply
10th January, 12:44 (This post was last modified: 10th January 12:50 by ronnie1985hk.)
Post: #2
How destroy definitely a modal windows
how to destroy last qtip window instance loaded in memory or unbind the element related?

Thanks!

EDIT

solved ..

...
onHide: function()
{
$('#id').qtip('destroy');
}

...
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)