You are not logged in.
Pages: 1
Hi,
I'm wondering if there is a setting to open the dialogs (e.g. create link, insert image) in a CSS layer instead in a separate browser window? If not, has anybody tried to do this and eventually some code changes on how to achieve this?
Thank you very much
Stefan
Offline
I've actually just had a thought that would make the conversion so much quicker, and would sort of be a temporary way of doing it.....rather than have it in a floating DIV it can be in a floating (probably borderless) IFRAME instead - this means the plugins need little or no editing, and can instead trigger the contents of the IFRAME with a change of the style.display property.
David G. Paul
[url]http://www.newearthonline.co.uk[/url]
Offline
That's along the lines I thought it should work. Create an IFRAME (perhaps inside a DIV) and trigger the "visibility" CSS attribute as soon as the dialog is opened (and set it back to "hidden" if it is closed). Resizing should also be easy by changing the CSS attributes.
As soon as you have something, please let me know, I would be very interested in such a solution.
Offline
So far not had much luck with the IFRAME method, I was trying to bypass the use of popup.js though that stops the _insertImage() prototype from being fired when clicking OK (was using InsertImage module as a test case). I'm going to have a go at rewriting popup.js to use the IFRAME, though I'm not looking forward to it - I think it's all going to go wrong.
David G. Paul
[url]http://www.newearthonline.co.uk[/url]
Offline
The problem I'm getting is the close functions....it doesn't know where Dialog is. I've tried window.parent.Dialog and Xinha.Dialog but to no avail, any suggestions?
David G. Paul
[url]http://www.newearthonline.co.uk[/url]
Offline
window.top.Dialog should be it
Maybe you have a look at this (rather old) branch that has some work in this direction http://xinha.python-hosting.com/browser … w-dialogs/
Offline
Offline
window.top.Dialog should be it
Maybe you have a look at this (rather old) branch that has some work in this direction http://xinha.python-hosting.com/browser … w-dialogs/
yeah I noticed that as a comment to one of the tickets shortly after posting :s oops!
Last edited by jedi58 (2007-01-23 18:50:48)
David G. Paul
[url]http://www.newearthonline.co.uk[/url]
Offline
Okay, it works first time one's used without a problem - subsequent ones don't, they seem to automatically call the _return() method as they flicker there for an instant....sooooo close!
David G. Paul
[url]http://www.newearthonline.co.uk[/url]
Offline
@jedi58: sounds great! As soon as you have something, just let me know. If you hit a point where you don't have an idea on how to solve it, just let me know, perhaps I can help looking into it.
Having the dialogs as layer I think would be a great improvement of Xinha! :-)
Offline
I've uploaded a version of Xinha to some webspace with what progress I was able to make:
http://www.newearthonline.co.uk/dev/doc.php
unfortunately I'm still not able to figure out why it only works the first time
David G. Paul
[url]http://www.newearthonline.co.uk[/url]
Offline
Pages: 1