Skip to main content
Question

Want a dialog box to be collapsible .

  • September 25, 2017
  • 0 replies
  • 34 views

<div id='CS'></div><a $('#CS').dialog({title:'CS',modal:false,position:[1000, 100],create: function (event) { $(event.target).parent().css('position', 'fixed');$(event.target).parent().css('top', '1000');},width:850,height:600,padding:0,\nbuttons: {Cancel: function() {$(this).dialog('close');}},\nopen: function(event, ui) {$(this).html(markup);},\nclose: function(event, ui) {}});\">Add</a>"

I want this dialog to be collapsible.  
This topic has been closed for replies.

  • Registered
  • September 25, 2017
That is not valid anything (Formula, JavaScript, HTML or CSS).

What is this fragment supposed to be?
<a $('#CS').dialog
You seem to have this fragment of JavaScript (which I extracted) that generates a jQueryUI dialog but I have no idea what you want to accomplish or what you mean by "collapsible":

$('#CS').dialog({
  title: 'CS',
  modal: false,
  position: [1000, 100],
  create: function(event) {
    $(event.target).parent().css('position', 'fixed');
    $(event.target).parent().css('top', '1000');
  },
  width: 850,
  height: 600,
  padding: 0,
  buttons: {
    Cancel: function() {
      $(this).dialog('close');
    }
  },
  open: function(event, ui) {
    $(this).html(markup);
  },
  close: function(event, ui) {}
});


It is best not to not co-mingle JavaScript in formulas. Please clarify your question.