364,085 Members | 5244 Browsing Online
Community for Developers & IT Professionals
Bytes IT Community

how to get history in a WinObj I have made?

BadOmen
P: n/a
BadOmen
I have used WinObj=window.open ("http://www.some_page","Holder")

No I want to press a button in an other window and make the Holder windows
history.go(-1) is that possible?
(I'm not using a button... I'm using MS Agent with Voice Command but if the
button thing will work, so will this...)

Yours, Jonas


Jul 20 '05 #1
Share this Question
Share on Google+
8 Replies


Brynn
P: n/a
Brynn

There is probably another way ... but you could create a page that it
would go forward to with history.go(-2)

Brynn
www.coolpier.com


On Wed, 07 Jan 2004 18:43:46 GMT, "BadOmen" <badomen02@hotmail.com>
wrote:
[color=blue]
>I have used WinObj=window.open ("http://www.some_page","Holder")
>
>No I want to press a button in an other window and make the Holder windows
>history.go(-1) is that possible?
>(I'm not using a button... I'm using MS Agent with Voice Command but if the
>button thing will work, so will this...)
>
>Yours, Jonas
>
>[/color]

Jul 20 '05 #2

BadOmen
P: n/a
BadOmen

"Brynn" <z@z.com> skrev i meddelandet
news:3ffc5f40.12229995@news.comcast.giganews.com.. .[color=blue]
>
> There is probably another way ... but you could create a page that it
> would go forward to with history.go(-2)[/color]

I don't realy understand what you meen =(

This is what I have done:
step 1. window A opens window B
step 2. And then window A must make window B:s history go back one stap by
pressing a button on window A or in my case, using a voice command from
window A.

Step 1. is not a problem but step 2. is.

[color=blue]
>
> Brynn
> www.coolpier.com
>
>
> On Wed, 07 Jan 2004 18:43:46 GMT, "BadOmen" <badomen02@hotmail.com>
> wrote:
>[color=green]
> >I have used WinObj=window.open ("http://www.some_page","Holder")
> >
> >No I want to press a button in an other window and make the Holder[/color][/color]
windows[color=blue][color=green]
> >history.go(-1) is that possible?
> >(I'm not using a button... I'm using MS Agent with Voice Command but if[/color][/color]
the[color=blue][color=green]
> >button thing will work, so will this...)
> >
> >Yours, Jonas
> >
> >[/color]
>[/color]


Jul 20 '05 #3

Brynn
P: n/a
Brynn

What I mean is create a page called jumpBack.asp ... or html ... I
name all files of mine .asp .. anyway

-- jumpBack.asp --

<script language="javascript">
history.go(-2)
</script>

Then have your button make have your "Holder" window go to
/dir/jumpBack.asp

It would go forward to jumpBack.asp ... jumpBack.asp would make it go
back 2

Like I said, this may not be the best solution, but is probably the
easiest ... without having to have your parent page keep track of the
pages and junk.

Brynn
www.coolpier.com



On Wed, 07 Jan 2004 19:51:09 GMT, "BadOmen" <badomen02@hotmail.com>
wrote:
[color=blue]
>
>"Brynn" <z@z.com> skrev i meddelandet
>news:3ffc5f40.12229995@news.comcast.giganews.com. ..[color=green]
>>
>> There is probably another way ... but you could create a page that it
>> would go forward to with history.go(-2)[/color]
>
>I don't realy understand what you meen =(
>
>This is what I have done:
>step 1. window A opens window B
>step 2. And then window A must make window B:s history go back one stap by
>pressing a button on window A or in my case, using a voice command from
>window A.
>
>Step 1. is not a problem but step 2. is.
>
>[color=green]
>>
>> Brynn
>> www.coolpier.com
>>
>>
>> On Wed, 07 Jan 2004 18:43:46 GMT, "BadOmen" <badomen02@hotmail.com>
>> wrote:
>>[color=darkred]
>> >I have used WinObj=window.open ("http://www.some_page","Holder")
>> >
>> >No I want to press a button in an other window and make the Holder[/color][/color]
>windows[color=green][color=darkred]
>> >history.go(-1) is that possible?
>> >(I'm not using a button... I'm using MS Agent with Voice Command but if[/color][/color]
>the[color=green][color=darkred]
>> >button thing will work, so will this...)
>> >
>> >Yours, Jonas
>> >
>> >[/color]
>>[/color]
>
>[/color]

Jul 20 '05 #4

BadOmen
P: n/a
BadOmen
Now I get it. Thanx, that was really smart of you :)

"Brynn" <z@z.com> skrev i meddelandet
news:3ffc6472.13560038@news.comcast.giganews.com.. .[color=blue]
>
> What I mean is create a page called jumpBack.asp ... or html ... I
> name all files of mine .asp .. anyway
>
> -- jumpBack.asp --
>
> <script language="javascript">
> history.go(-2)
> </script>
>
> Then have your button make have your "Holder" window go to
> /dir/jumpBack.asp
>
> It would go forward to jumpBack.asp ... jumpBack.asp would make it go
> back 2
>
> Like I said, this may not be the best solution, but is probably the
> easiest ... without having to have your parent page keep track of the
> pages and junk.
>
> Brynn
> www.coolpier.com
>
>
>
> On Wed, 07 Jan 2004 19:51:09 GMT, "BadOmen" <badomen02@hotmail.com>
> wrote:
>[color=green]
> >
> >"Brynn" <z@z.com> skrev i meddelandet
> >news:3ffc5f40.12229995@news.comcast.giganews.com. ..[color=darkred]
> >>
> >> There is probably another way ... but you could create a page that it
> >> would go forward to with history.go(-2)[/color]
> >
> >I don't realy understand what you meen =(
> >
> >This is what I have done:
> >step 1. window A opens window B
> >step 2. And then window A must make window B:s history go back one stap[/color][/color]
by[color=blue][color=green]
> >pressing a button on window A or in my case, using a voice command from
> >window A.
> >
> >Step 1. is not a problem but step 2. is.
> >
> >[color=darkred]
> >>
> >> Brynn
> >> www.coolpier.com
> >>
> >>
> >> On Wed, 07 Jan 2004 18:43:46 GMT, "BadOmen" <badomen02@hotmail.com>
> >> wrote:
> >>
> >> >I have used WinObj=window.open ("http://www.some_page","Holder")
> >> >
> >> >No I want to press a button in an other window and make the Holder[/color]
> >windows[color=darkred]
> >> >history.go(-1) is that possible?
> >> >(I'm not using a button... I'm using MS Agent with Voice Command but[/color][/color][/color]
if[color=blue][color=green]
> >the[color=darkred]
> >> >button thing will work, so will this...)
> >> >
> >> >Yours, Jonas
> >> >
> >> >
> >>[/color]
> >
> >[/color]
>[/color]


Jul 20 '05 #5

Michael Winter
P: n/a
Michael Winter
On Wed, 07 Jan 2004 18:43:46 GMT, BadOmen <badomen02@hotmail.com> wrote:
[color=blue]
> I have used WinObj=window.open ("http://www.some_page","Holder")
>
> No I want to press a button in an other window and make the Holder
> windows history.go(-1) is that possible?
> (I'm not using a button... I'm using MS Agent with Voice Command but if
> the button thing will work, so will this...)[/color]

Does

WinObj = window.open( 'URL', 'Window_Name' );

...

WinObj.history.go(-1)

not work?

Mike

--
Michael Winter
M.Winter@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)
Jul 20 '05 #6

BadOmen
P: n/a
BadOmen
There is still a problem with forward...
It is possible that the forward is pointing to the jumpback.html page and
that page make me go even more back... :)

It wold be best if I could juste the winObj I created when making the window
B. But i don't think that's possible :(

I hope someone has a other way of doing this.
But Back works fine your way :)

Yours, Jonas


"Brynn" <z@z.com> skrev i meddelandet
news:3ffc6472.13560038@news.comcast.giganews.com.. .[color=blue]
>
> What I mean is create a page called jumpBack.asp ... or html ... I
> name all files of mine .asp .. anyway
>
> -- jumpBack.asp --
>
> <script language="javascript">
> history.go(-2)
> </script>
>
> Then have your button make have your "Holder" window go to
> /dir/jumpBack.asp
>
> It would go forward to jumpBack.asp ... jumpBack.asp would make it go
> back 2
>
> Like I said, this may not be the best solution, but is probably the
> easiest ... without having to have your parent page keep track of the
> pages and junk.
>
> Brynn
> www.coolpier.com
>
>
>
> On Wed, 07 Jan 2004 19:51:09 GMT, "BadOmen" <badomen02@hotmail.com>
> wrote:
>[color=green]
> >
> >"Brynn" <z@z.com> skrev i meddelandet
> >news:3ffc5f40.12229995@news.comcast.giganews.com. ..[color=darkred]
> >>
> >> There is probably another way ... but you could create a page that it
> >> would go forward to with history.go(-2)[/color]
> >
> >I don't realy understand what you meen =(
> >
> >This is what I have done:
> >step 1. window A opens window B
> >step 2. And then window A must make window B:s history go back one stap[/color][/color]
by[color=blue][color=green]
> >pressing a button on window A or in my case, using a voice command from
> >window A.
> >
> >Step 1. is not a problem but step 2. is.
> >
> >[color=darkred]
> >>
> >> Brynn
> >> www.coolpier.com
> >>
> >>
> >> On Wed, 07 Jan 2004 18:43:46 GMT, "BadOmen" <badomen02@hotmail.com>
> >> wrote:
> >>
> >> >I have used WinObj=window.open ("http://www.some_page","Holder")
> >> >
> >> >No I want to press a button in an other window and make the Holder[/color]
> >windows[color=darkred]
> >> >history.go(-1) is that possible?
> >> >(I'm not using a button... I'm using MS Agent with Voice Command but[/color][/color][/color]
if[color=blue][color=green]
> >the[color=darkred]
> >> >button thing will work, so will this...)
> >> >
> >> >Yours, Jonas
> >> >
> >> >
> >>[/color]
> >
> >[/color]
>[/color]


Jul 20 '05 #7

BadOmen
P: n/a
BadOmen

"Michael Winter" <M.Winter@blueyonder.co.invalid> skrev i meddelandet
news:opr1e9s2au5vklcq@news-text.blueyonder.co.uk...[color=blue]
> On Wed, 07 Jan 2004 18:43:46 GMT, BadOmen <badomen02@hotmail.com> wrote:
>[color=green]
> > I have used WinObj=window.open ("http://www.some_page","Holder")
> >
> > No I want to press a button in an other window and make the Holder
> > windows history.go(-1) is that possible?
> > (I'm not using a button... I'm using MS Agent with Voice Command but if
> > the button thing will work, so will this...)[/color]
>
> Does
>
> WinObj = window.open( 'URL', 'Window_Name' );
>
> ...
>
> WinObj.history.go(-1)
>
> not work?
>
> Mike[/color]

No, that was the first thing i tried but it did not work :(
[color=blue]
>
> --
> Michael Winter
> M.Winter@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)[/color]


Jul 20 '05 #8

Brynn
P: n/a
Brynn
you could simply store each webpages name in an array, and keep track
of where in the array you are ... and have a function for the forward
and back button that takes you to the appropriate link in the array.

Brynn
www.coolpier.com



On Wed, 07 Jan 2004 20:34:47 GMT, "BadOmen" <badomen02@hotmail.com>
wrote:
[color=blue]
>There is still a problem with forward...
>It is possible that the forward is pointing to the jumpback.html page and
>that page make me go even more back... :)
>
>It wold be best if I could juste the winObj I created when making the window
>B. But i don't think that's possible :(
>
>I hope someone has a other way of doing this.
>But Back works fine your way :)
>
>Yours, Jonas
>
>
>"Brynn" <z@z.com> skrev i meddelandet
>news:3ffc6472.13560038@news.comcast.giganews.com. ..[color=green]
>>
>> What I mean is create a page called jumpBack.asp ... or html ... I
>> name all files of mine .asp .. anyway
>>
>> -- jumpBack.asp --
>>
>> <script language="javascript">
>> history.go(-2)
>> </script>
>>
>> Then have your button make have your "Holder" window go to
>> /dir/jumpBack.asp
>>
>> It would go forward to jumpBack.asp ... jumpBack.asp would make it go
>> back 2
>>
>> Like I said, this may not be the best solution, but is probably the
>> easiest ... without having to have your parent page keep track of the
>> pages and junk.
>>
>> Brynn
>> www.coolpier.com
>>
>>
>>
>> On Wed, 07 Jan 2004 19:51:09 GMT, "BadOmen" <badomen02@hotmail.com>
>> wrote:
>>[color=darkred]
>> >
>> >"Brynn" <z@z.com> skrev i meddelandet
>> >news:3ffc5f40.12229995@news.comcast.giganews.com. ..
>> >>
>> >> There is probably another way ... but you could create a page that it
>> >> would go forward to with history.go(-2)
>> >
>> >I don't realy understand what you meen =(
>> >
>> >This is what I have done:
>> >step 1. window A opens window B
>> >step 2. And then window A must make window B:s history go back one stap[/color][/color]
>by[color=green][color=darkred]
>> >pressing a button on window A or in my case, using a voice command from
>> >window A.
>> >
>> >Step 1. is not a problem but step 2. is.
>> >
>> >
>> >>
>> >> Brynn
>> >> www.coolpier.com
>> >>
>> >>
>> >> On Wed, 07 Jan 2004 18:43:46 GMT, "BadOmen" <badomen02@hotmail.com>
>> >> wrote:
>> >>
>> >> >I have used WinObj=window.open ("http://www.some_page","Holder")
>> >> >
>> >> >No I want to press a button in an other window and make the Holder
>> >windows
>> >> >history.go(-1) is that possible?
>> >> >(I'm not using a button... I'm using MS Agent with Voice Command but[/color][/color]
>if[color=green][color=darkred]
>> >the
>> >> >button thing will work, so will this...)
>> >> >
>> >> >Yours, Jonas
>> >> >
>> >> >
>> >>
>> >
>> >[/color]
>>[/color]
>
>[/color]

Brynn
www.coolpier.com

I participate in the group to help give examples of code.
I do not guarantee the effects of any code posted.
Test all code before use!
Jul 20 '05 #9

Post your reply

Help answer this question



Didn't find the answer to your JavaScript / Ajax / DHTML question?

You can also browse similar questions: JavaScript / Ajax / DHTML