hide: function(){
var win = this;
parent.frames[win.name].$('id_of_container').setStyle('display','none'); // This is the line throwing the error.
win.popup.addClass('hidden');
}
--
---
You received this message because you are subscribed to a topic in the Google Groups "MooTools Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mootools-users/MG6-fp0a6ZI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mootools-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
---
You received this message because you are subscribed to the Google Groups "MooTools Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mootools-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
var modalWin = new Class({
Implements: [Events,Options],
options: {
//defaults width, height, closeable, draggable, title, etc.
},
initialize: function(options){
var win = this;
//sets name, options, creates modal but hides it
},
show: function(){
var win = this;
win.fireEvent('beforeshow', {target: win.popup});
var url = win.options.url;
if(typeof(parent.frames[win.name]) == 'window'){
//setStyle display; document.location.href = url;
}
else{
win.popupContent.empty().adopt(
//new Element().setStyles();
);
}
win.curtain.removeClass('hidden');
win.repositionWindow();
win.popup.removeClass('hidden');
win.fireEvent('aftershow',{target: win.popup});
return win;
}),
hide: function(){
var win = this;
win.fireEvent('beforehide', {target: win.popup});
parent.frames[win.name].$('idofcontainer').setStyle('display','none');
win.popup.addClass('hidden');
var visibleWindows = win.curtain.getElements('.windowPopup').filter(function(e){ return !e.hasClass('hidden')});
if(visibleWindows.length == 0){
win.curtain.addClass('hidden');
}
else{
visibleWindows.each(function(thisWindow){
thisWindow.setStyle('z-index',(thisWindow.getStyle('z-index').toInt() == 49 ? 51 : thisWindow.getStyle('z-index').toInt() + 1)
);
});
}
win.fireEvent('afterhide', {target: win.popup});
return win;
},
setTitle: function(content){}, // too much code to type
getTitle: function(){}, // too much code to type
setURL: function(newURL){}, // too much code to type
repositionWindow: function(){}, // too much code to type
setHeight: function(newHeight){}, // too much code to type
setWidth: function(newWidth){} // too much code to type
});
To unsubscribe from this group and stop receiving emails from it, send an email to mootools-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and stop receiving emails from it, send an email to mootools-user...@googlegroups.com.