Saturday, March 31, 2012

window.opener....

In my web based application I am opening the search window using
window.open(Url,UniqueName,...).
Once the search is complete I am setting the value back using
window.opener(...).
We are allowing the user to login multiple sessions in the same PC. I am
using session Id to open the window with unique name.
My question is do I have to code for this uniqueness while using the
window.opener().
How exactly the data will get posted back to the parent window when the two
parent windows (because of multiple logins) launched the search window.
Is there any thing I should take care?
Thanks,
BillA browser window can only have ONE opener: That is the browser window which
spawned the new window using the JavaScript window.open() method. It doesn't
matter how many browser instances are running. And it has nothing to do with
the name of the instance. It has everything to do with the browser window
that spawned the window. That's why it's called "opener" rather than a name.
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"Bill Smith" <BillyS@.hotmail.com> wrote in message
news:eLAo0DmiEHA.3428@.TK2MSFTNGP11.phx.gbl...
> In my web based application I am opening the search window using
> window.open(Url,UniqueName,...).
> Once the search is complete I am setting the value back using
> window.opener(...).
> We are allowing the user to login multiple sessions in the same PC. I am
> using session Id to open the window with unique name.
> My question is do I have to code for this uniqueness while using the
> window.opener().
> How exactly the data will get posted back to the parent window when the
two
> parent windows (because of multiple logins) launched the search window.
> Is there any thing I should take care?
> Thanks,
> Bill
>
Kevin,
Thanks for your reply. I really appreciate the way you analyse and answer
the question. Thank you very much.
Bill
"Kevin Spencer" <kspencer@.takempis.com> wrote in message
news:#nRt0#piEHA.596@.TK2MSFTNGP11.phx.gbl...
> A browser window can only have ONE opener: That is the browser window
which
> spawned the new window using the JavaScript window.open() method. It
doesn't
> matter how many browser instances are running. And it has nothing to do
with
> the name of the instance. It has everything to do with the browser window
> that spawned the window. That's why it's called "opener" rather than a
name.
> --
> HTH,
> Kevin Spencer
> .Net Developer
> Microsoft MVP
> Big things are made up
> of lots of little things.
> "Bill Smith" <BillyS@.hotmail.com> wrote in message
> news:eLAo0DmiEHA.3428@.TK2MSFTNGP11.phx.gbl...
> two
>
Well, thank YOU Bill. I'm not sure everyone appreciates my style, but I
appreciate your kindness!
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"Bill Smith" <BillyS@.hotmail.com> wrote in message
news:eL801#riEHA.3664@.TK2MSFTNGP11.phx.gbl...
> Kevin,
> Thanks for your reply. I really appreciate the way you analyse and answer
> the question. Thank you very much.
> Bill
>
> "Kevin Spencer" <kspencer@.takempis.com> wrote in message
> news:#nRt0#piEHA.596@.TK2MSFTNGP11.phx.gbl...
> which
> doesn't
> with
window
> name.
am
the
window.
>

window.opener....

In my web based application I am opening the search window using
window.open(Url,UniqueName,...).

Once the search is complete I am setting the value back using
window.opener(...).

We are allowing the user to login multiple sessions in the same PC. I am
using session Id to open the window with unique name.

My question is do I have to code for this uniqueness while using the
window.opener().

How exactly the data will get posted back to the parent window when the two
parent windows (because of multiple logins) launched the search window.

Is there any thing I should take care?

Thanks,

BillA browser window can only have ONE opener: That is the browser window which
spawned the new window using the JavaScript window.open() method. It doesn't
matter how many browser instances are running. And it has nothing to do with
the name of the instance. It has everything to do with the browser window
that spawned the window. That's why it's called "opener" rather than a name.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Bill Smith" <BillyS@.hotmail.com> wrote in message
news:eLAo0DmiEHA.3428@.TK2MSFTNGP11.phx.gbl...
> In my web based application I am opening the search window using
> window.open(Url,UniqueName,...).
> Once the search is complete I am setting the value back using
> window.opener(...).
> We are allowing the user to login multiple sessions in the same PC. I am
> using session Id to open the window with unique name.
> My question is do I have to code for this uniqueness while using the
> window.opener().
> How exactly the data will get posted back to the parent window when the
two
> parent windows (because of multiple logins) launched the search window.
> Is there any thing I should take care?
> Thanks,
> Bill
Kevin,
Thanks for your reply. I really appreciate the way you analyse and answer
the question. Thank you very much.
Bill

"Kevin Spencer" <kspencer@.takempis.com> wrote in message
news:#nRt0#piEHA.596@.TK2MSFTNGP11.phx.gbl...
> A browser window can only have ONE opener: That is the browser window
which
> spawned the new window using the JavaScript window.open() method. It
doesn't
> matter how many browser instances are running. And it has nothing to do
with
> the name of the instance. It has everything to do with the browser window
> that spawned the window. That's why it's called "opener" rather than a
name.
> --
> HTH,
> Kevin Spencer
> .Net Developer
> Microsoft MVP
> Big things are made up
> of lots of little things.
> "Bill Smith" <BillyS@.hotmail.com> wrote in message
> news:eLAo0DmiEHA.3428@.TK2MSFTNGP11.phx.gbl...
> > In my web based application I am opening the search window using
> > window.open(Url,UniqueName,...).
> > Once the search is complete I am setting the value back using
> > window.opener(...).
> > We are allowing the user to login multiple sessions in the same PC. I am
> > using session Id to open the window with unique name.
> > My question is do I have to code for this uniqueness while using the
> > window.opener().
> > How exactly the data will get posted back to the parent window when the
> two
> > parent windows (because of multiple logins) launched the search window.
> > Is there any thing I should take care?
> > Thanks,
> > Bill
Well, thank YOU Bill. I'm not sure everyone appreciates my style, but I
appreciate your kindness!

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Bill Smith" <BillyS@.hotmail.com> wrote in message
news:eL801#riEHA.3664@.TK2MSFTNGP11.phx.gbl...
> Kevin,
> Thanks for your reply. I really appreciate the way you analyse and answer
> the question. Thank you very much.
> Bill
>
> "Kevin Spencer" <kspencer@.takempis.com> wrote in message
> news:#nRt0#piEHA.596@.TK2MSFTNGP11.phx.gbl...
> > A browser window can only have ONE opener: That is the browser window
> which
> > spawned the new window using the JavaScript window.open() method. It
> doesn't
> > matter how many browser instances are running. And it has nothing to do
> with
> > the name of the instance. It has everything to do with the browser
window
> > that spawned the window. That's why it's called "opener" rather than a
> name.
> > --
> > HTH,
> > Kevin Spencer
> > .Net Developer
> > Microsoft MVP
> > Big things are made up
> > of lots of little things.
> > "Bill Smith" <BillyS@.hotmail.com> wrote in message
> > news:eLAo0DmiEHA.3428@.TK2MSFTNGP11.phx.gbl...
> > > In my web based application I am opening the search window using
> > > window.open(Url,UniqueName,...).
> > > > Once the search is complete I am setting the value back using
> > > window.opener(...).
> > > > We are allowing the user to login multiple sessions in the same PC. I
am
> > > using session Id to open the window with unique name.
> > > > My question is do I have to code for this uniqueness while using the
> > > window.opener().
> > > > How exactly the data will get posted back to the parent window when
the
> > two
> > > parent windows (because of multiple logins) launched the search
window.
> > > > Is there any thing I should take care?
> > > > Thanks,
> > > > Bill
> >

Window.Print in an ASP.net web page

I am trying the javascript window.print function to print a asp.net web page
without much success.

I keep getting the error Stack Overflow on line...

Does anyone have any ideas what might be causing this error?

Or if anyone knows an alternative way of achieving this in c#?

Please help!!!Based on what you've posted, I can tell you this much: A Stack Overflow is
almost always caused by an infinite loop. It has nothing to do with
JavaScript, printing, or C#.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Daniel Foster" <DanielFoster@.discussions.microsoft.com> wrote in message
news:74AB1620-E6DD-4E87-8B33-A713BC6EB282@.microsoft.com...
> I am trying the javascript window.print function to print a asp.net web
page
> without much success.
> I keep getting the error Stack Overflow on line...
> Does anyone have any ideas what might be causing this error?
> Or if anyone knows an alternative way of achieving this in c#?
> Please help!!!
I am not using a loop. The page simply displays data based on a data row. All
that is outputted on the page is a couple of labels that display the data
from the data row.

"Kevin Spencer" wrote:

> Based on what you've posted, I can tell you this much: A Stack Overflow is
> almost always caused by an infinite loop. It has nothing to do with
> JavaScript, printing, or C#.
> --
> HTH,
> Kevin Spencer
> ..Net Developer
> Microsoft MVP
> I get paid good money to
> solve puzzles for a living
> "Daniel Foster" <DanielFoster@.discussions.microsoft.com> wrote in message
> news:74AB1620-E6DD-4E87-8B33-A713BC6EB282@.microsoft.com...
> > I am trying the javascript window.print function to print a asp.net web
> page
> > without much success.
> > I keep getting the error Stack Overflow on line...
> > Does anyone have any ideas what might be causing this error?
> > Or if anyone knows an alternative way of achieving this in c#?
> > Please help!!!
>
A loop can be caused indirectly. For example, if function a calls function
b, which calls function c, and function c calls function a, you have an
infinite loop.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Daniel Foster" <DanielFoster@.discussions.microsoft.com> wrote in message
news:09298431-8B79-41F4-A729-D9361A4DCBE2@.microsoft.com...
> I am not using a loop. The page simply displays data based on a data row.
All
> that is outputted on the page is a couple of labels that display the data
> from the data row.
> "Kevin Spencer" wrote:
> > Based on what you've posted, I can tell you this much: A Stack Overflow
is
> > almost always caused by an infinite loop. It has nothing to do with
> > JavaScript, printing, or C#.
> > --
> > HTH,
> > Kevin Spencer
> > ..Net Developer
> > Microsoft MVP
> > I get paid good money to
> > solve puzzles for a living
> > "Daniel Foster" <DanielFoster@.discussions.microsoft.com> wrote in
message
> > news:74AB1620-E6DD-4E87-8B33-A713BC6EB282@.microsoft.com...
> > > I am trying the javascript window.print function to print a asp.net
web
> > page
> > > without much success.
> > > > I keep getting the error Stack Overflow on line...
> > > > Does anyone have any ideas what might be causing this error?
> > > > Or if anyone knows an alternative way of achieving this in c#?
> > > > Please help!!!

Window.Print in an ASP.net web page

I am trying the javascript window.print function to print a asp.net web page
without much success.
I keep getting the error Stack Overflow on line...
Does anyone have any ideas what might be causing this error?
Or if anyone knows an alternative way of achieving this in c#?
Please help!!!Based on what you've posted, I can tell you this much: A Stack Overflow is
almost always caused by an infinite loop. It has nothing to do with
JavaScript, printing, or C#.
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living
"Daniel Foster" <DanielFoster@.discussions.microsoft.com> wrote in message
news:74AB1620-E6DD-4E87-8B33-A713BC6EB282@.microsoft.com...
> I am trying the javascript window.print function to print a asp.net web
page
> without much success.
> I keep getting the error Stack Overflow on line...
> Does anyone have any ideas what might be causing this error?
> Or if anyone knows an alternative way of achieving this in c#?
> Please help!!!
I am not using a loop. The page simply displays data based on a data row. Al
l
that is outputted on the page is a couple of labels that display the data
from the data row.
"Kevin Spencer" wrote:

> Based on what you've posted, I can tell you this much: A Stack Overflow is
> almost always caused by an infinite loop. It has nothing to do with
> JavaScript, printing, or C#.
> --
> HTH,
> Kevin Spencer
> ..Net Developer
> Microsoft MVP
> I get paid good money to
> solve puzzles for a living
> "Daniel Foster" <DanielFoster@.discussions.microsoft.com> wrote in message
> news:74AB1620-E6DD-4E87-8B33-A713BC6EB282@.microsoft.com...
> page
>
>
A loop can be caused indirectly. For example, if function a calls function
b, which calls function c, and function c calls function a, you have an
infinite loop.
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living
"Daniel Foster" <DanielFoster@.discussions.microsoft.com> wrote in message
news:09298431-8B79-41F4-A729-D9361A4DCBE2@.microsoft.com...
> I am not using a loop. The page simply displays data based on a data row.
All
> that is outputted on the page is a couple of labels that display the data
> from the data row.
> "Kevin Spencer" wrote:
>
is
message
web

window.opener.location.href doesnt work in frame

From parent windows, I have created a popup windows that comprises two
frames.
When I have clicked a link button in one of the frames, I would like
to redirect the parent windows to somewhere.
So I did
--------------------
<a href='#' onclick='window.opener.location.href
=""http://www.google.com"";'>Click here</a>
--------------------

but it didn't work.
Without frame, it works. So I presume it has something to do with
frame.
Could you help me?

Thanks in advance,Instead of script, just set the "target" attribute of the anchor to "_top"

<a href="http://links.10026.com/?link=#" target="_top"
That tells is to navigate the "top" frame.

If the parent is NOT the top frame (multiple nested frames), then set target
to the name of the frame that you want to navigate

<a href="http://links.10026.com/?link=#" target="parent_frame_name"
"Leon" <yootaeho@.yahoo.com> wrote in message
news:8a817d39.0306240026.59cc46c5@.posting.google.c om...
> From parent windows, I have created a popup windows that comprises two
> frames.
> When I have clicked a link button in one of the frames, I would like
> to redirect the parent windows to somewhere.
> So I did
> --------------------
> <a href='#' onclick='window.opener.location.href
> =""http://www.google.com"";'>Click here</a>
> --------------------
> but it didn't work.
> Without frame, it works. So I presume it has something to do with
> frame.
> Could you help me?
> Thanks in advance,

Window.print not working in Internet Explorer 7.0 but works in fir

Hello All,

I am trying to offer "Print" functionality using an HTML button with the
help of "window.print()"

This button works fine in Firefox but not in IE7. I am dumping the entire
content of the page which has this HTML button code onto a different page
using document.write. Everything else works fine except for this print
button. I have a close button using "window.close" that works fine but not
this print button. Usually when the print button is clicked, it should
display the "Print" window. For example, see the printer icon to the right of
this post. When you click on the print icon, it will display you the
printable version along with a modal window to send the page to the printer.

Any ideas??

Thanks!!Diffident wrote:

Quote:

Originally Posted by

Hello All,
>
I am trying to offer "Print" functionality using an HTML button with the
help of "window.print()"
>
This button works fine in Firefox but not in IE7. I am dumping the entire
content of the page which has this HTML button code onto a different page
using document.write. Everything else works fine except for this print
button. I have a close button using "window.close" that works fine but not
this print button. Usually when the print button is clicked, it should
display the "Print" window. For example, see the printer icon to the right of
this post. When you click on the print icon, it will display you the
printable version along with a modal window to send the page to the printer.
>
Any ideas??
>
Thanks!!


Please do a proper cross post instead of multi posting. Now people that
replies in one newsgroup won't see the replies from other newsgroups.

--
G?ran Andersson
_____
http://www.guffa.com
G?ran Andersson wrote:

Quote:

Originally Posted by

Diffident wrote:

Quote:

Originally Posted by

>Hello All,
>>
>I am trying to offer "Print" functionality using an HTML button with
>the help of "window.print()"
>>
>This button works fine in Firefox but not in IE7. I am dumping the
>entire content of the page which has this HTML button code onto a
>different page using document.write. Everything else works fine except
>for this print button. I have a close button using "window.close" that
>works fine but not this print button. Usually when the print button is
>clicked, it should display the "Print" window. For example, see the
>printer icon to the right of this post. When you click on the print
>icon, it will display you the printable version along with a modal
>window to send the page to the printer.
>>
>Any ideas??
>>
>Thanks!!


>
Please do a proper cross post instead of multi posting. Now people that
replies in one newsgroup won't see the replies from other newsgroups.
>


Correction. What you did was reposting. That's just annoying.

--
G?ran Andersson
_____
http://www.guffa.com

Window.print not working in Internet Explorer 7.0 but works in

Diffident wrote:
> Hello All,
> I am trying to offer "Print" functionality using an HTML button with the
> help of "window.print()"
> This button works fine in Firefox but not in IE7. I am dumping the entire
> content of the page which has this HTML button code onto a different page
> using document.write. Everything else works fine except for this print
> button. I have a close button using "window.close" that works fine but not
> this print button. Usually when the print button is clicked, it should
> display the "Print" window. For example, see the printer icon to the right
of
> this post. When you click on the print icon, it will display you the
> printable version along with a modal window to send the page to the printe
r.
> Any ideas'
> Thanks!!
Please do a proper cross post instead of multi posting. Now people that
replies in one newsgroup won't see the replies from other newsgroups.
G?ran Andersson
_____
http://www.guffa.comG?ran Andersson wrote:
> Diffident wrote:
> Please do a proper cross post instead of multi posting. Now people that
> replies in one newsgroup won't see the replies from other newsgroups.
>
Correction. What you did was reposting. That's just annoying.
G?ran Andersson
_____
http://www.guffa.com