Ah! Great explanation, thank you :) . Unfortunately, when I do
window.new it opens (obviously) a new window (or tab) that is not
limited to the main browser's window, which is what I desire. It's
literally another browser window. What you described with history(-1)
is perfect! However, at the moment my code looks like the following:
win1 = new Window('browser', {className: "alphacube", width:600,
height:400, zIndex: 100, title: "Google", resizable: true,
showEffect:Element.show, hideEffect: Effect.SwitchOff, draggable:
true, url: "http://www.google.com"})
win1.showCenter(null, <%= x+40 %>, <%= y+40 %>);
It seems that if I attempted to put HTML in, at least in the way I'm
trying:
win1.getContent().innerHTML= "Now is the time for every good man..."
It's not working in the least. Having the url option in the window
clobbers it. I kind of expected that... but is there a way to use a
url combined with whatever html I desire? Thanks for your help :) .
Kyle
On Jan 12, 2007, at 12:14 AM, Abel Braaksma abel.online-at-xs4all.nl
wrote:
> [EMAIL PROTECTED] wrote:
>> Hello, I have yet another question. In the samples directory, I was
>> looking at the index.html. The window that had the ruby on rails
>> site- it was basically a browser within a browser. I even noticed
>> that if I clicked a link, it took me to a different place (obviously)
>> and when I pressed backspace, it took me back! Great! However, is it
>> possible to implement a back button, refresh, address bar, etc? Make
>> it a real browser inside a browser? I'm very curious!
>>
>
> You have been looking at an IFRAME object. Which is close to a new
> window. Mimicking some functionality can indeed be done, use the
> javascript function history(-1) for going back etc. However, if you
> want
> a "browser inside a browser", I recommend opening a new window using
> window.open, which gives you some control on what to show.
>
> The buttons you want can also be found if you right-click in the
> iframe.
> Most browser keep a separate history for iframes and frames.
>
> Browserability is something very trivial to implement, however very
> implementation dependent. Buttons like you mention can appear above a
> table to show next/previous page of records, or can mean next or
> previous window. Using it to browse internet pages seems quite odd to
> me, as the user already has a browser that does that trick for him/
> her.
>
> -- Abel
>
> _______________________________________________
> Javawin mailing list
> [email protected]
> http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com
_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com