Below is the code.
language = asp.net/vb.net
private sub openW()
sResult = sResult & "<script language=javascript> mywindow = window.open('http://localhost/mohsaic/default.aspx?tc=Client/Manage'); "
sResult = sResult & "mywindow.parent.frames[1].location = 'http://localhost/treeview/treeview.aspx?m=c&pid=366826706'; "
sResult = sResult & "mywindow.parent.frames[0].location = 'http://localhost/mohsaic/default.aspx?tc=Client/Manage'; </script>"
Response.Write(sResult)
End Sub
I am calling this in LinkButton(asp.net servercontrol) Click event
it opens the new window and the new window has got the frames with in frames and frames with in those frames.
the above code works fine on local boxes and once the code is pushed to server(testing box), it works for 1st time and then on it stops working and i get a message "mywindow.parent.frames.1 is null or not a object error".
while pushing the localhost is made to the respective box name.
i cannot imagine a reason for working once and not working again., if anyone recall the same error before and have fixed please let me know?
any help is appriciated
Kshoot 3 1397
First of all, are you sure you want the 'localhost' hard coded in there?
After, 'localhost' is different for every user - most of whom won't have a
web server.
The only other idea, is that this is a timing issue, that your code attempts
to set the frame's location before the window has fully opened and loaded.
"krishna" <kr*****@discussions.microsoft.com> wrote in message
news:BE**********************************@microsof t.com... Below is the code.
language = asp.net/vb.net
private sub openW()
sResult = sResult & "<script language=javascript> mywindow =
window.open('http://localhost/mohsaic/default.aspx?tc=Client/Manage'); " sResult = sResult & "mywindow.parent.frames[1].location =
'http://localhost/treeview/treeview.aspx?m=c&pid=366826706'; " sResult = sResult & "mywindow.parent.frames[0].location =
'http://localhost/mohsaic/default.aspx?tc=Client/Manage'; </script>" Response.Write(sResult)
End Sub
I am calling this in LinkButton(asp.net servercontrol) Click event
it opens the new window and the new window has got the frames with in
frames and frames with in those frames. the above code works fine on local boxes and once the code is pushed to
server(testing box), it works for 1st time and then on it stops working and
i get a message "mywindow.parent.frames.1 is null or not a object error". while pushing the localhost is made to the respective box name.
i cannot imagine a reason for working once and not working again., if
anyone recall the same error before and have fixed please let me know? any help is appriciated
Kshoot
I don't know, that was just a guess. It would mean that sometimes it work,
sometimes not - though I wouldnt expect it to work just once and then not at
all.
What I would do is have the child window, in its onload event, call a
function in the parent window to get the location for its frames.
Also, if the error persists, try using the debugger to see what values
various variables have, to help you figure out what the problem is.
"krishna" <kr*****@discussions.microsoft.com> wrote in message
news:BC**********************************@microsof t.com... Marina,
Thankx for your reply, i am getting the url from webconfig, i have
submitted the code after it is formatted, copied from the debug window, so
that it would be easier to understand in the post. so you sid timeout issue, what would be the solution you think, do i need
to add any other code into javascript block, if so what is that ??? Krishna
"Marina" wrote:
First of all, are you sure you want the 'localhost' hard coded in there? After, 'localhost' is different for every user - most of whom won't
have a web server.
The only other idea, is that this is a timing issue, that your code
attempts to set the frame's location before the window has fully opened and
loaded. "krishna" <kr*****@discussions.microsoft.com> wrote in message news:BE**********************************@microsof t.com... Below is the code.
language = asp.net/vb.net
private sub openW()
sResult = sResult & "<script language=javascript> mywindow = window.open('http://localhost/mohsaic/default.aspx?tc=Client/Manage'); " sResult = sResult & "mywindow.parent.frames[1].location =
'http://localhost/treeview/treeview.aspx?m=c&pid=366826706'; " sResult = sResult & "mywindow.parent.frames[0].location =
'http://localhost/mohsaic/default.aspx?tc=Client/Manage'; </script>" Response.Write(sResult)
End Sub
I am calling this in LinkButton(asp.net servercontrol) Click event
it opens the new window and the new window has got the frames with in
frames and frames with in those frames. the above code works fine on local boxes and once the code is pushed
to server(testing box), it works for 1st time and then on it stops working
and i get a message "mywindow.parent.frames.1 is null or not a object
error". while pushing the localhost is made to the respective box name.
i cannot imagine a reason for working once and not working again., if
anyone recall the same error before and have fixed please let me know? any help is appriciated
Kshoot
There is no reason not to be able to debug client side javascript when the
server is located elsewhere. You just get the debugger prompt and you say
yes.
"krishna" <kr*****@discussions.microsoft.com> wrote in message
news:16**********************************@microsof t.com... at the first place i have written the functions as u said, there was a
problem and i was trying all kinds of ways to resolve this, as i said it was
working without hastles in the my box(all ways - function call and
response.write etc), it gives the problem once it is pushed into testing
box, there is noway we can use the debugger in the testing or production box any more thoughts are welcome
Krishna
"Marina" wrote:
I don't know, that was just a guess. It would mean that sometimes it
work, sometimes not - though I wouldnt expect it to work just once and then
not at all.
What I would do is have the child window, in its onload event, call a function in the parent window to get the location for its frames.
Also, if the error persists, try using the debugger to see what values various variables have, to help you figure out what the problem is.
"krishna" <kr*****@discussions.microsoft.com> wrote in message news:BC**********************************@microsof t.com... Marina,
Thankx for your reply, i am getting the url from webconfig, i have submitted the code after it is formatted, copied from the debug window,
so that it would be easier to understand in the post. so you sid timeout issue, what would be the solution you think, do i
need to add any other code into javascript block, if so what is that ??? Krishna
"Marina" wrote:
> First of all, are you sure you want the 'localhost' hard coded in
there? > After, 'localhost' is different for every user - most of whom won't have a > web server. > > The only other idea, is that this is a timing issue, that your code attempts > to set the frame's location before the window has fully opened and loaded. > > "krishna" <kr*****@discussions.microsoft.com> wrote in message > news:BE**********************************@microsof t.com... > > Below is the code. > > > > language = asp.net/vb.net > > > > private sub openW() > > > > sResult = sResult & "<script language=javascript> mywindow = >
window.open('http://localhost/mohsaic/default.aspx?tc=Client/Manage'); " > > > > sResult = sResult & "mywindow.parent.frames[1].location = > 'http://localhost/treeview/treeview.aspx?m=c&pid=366826706'; " > > > > sResult = sResult & "mywindow.parent.frames[0].location = > 'http://localhost/mohsaic/default.aspx?tc=Client/Manage'; </script>" > > > > Response.Write(sResult) > > > > End Sub > > > > I am calling this in LinkButton(asp.net servercontrol) Click event > > > > it opens the new window and the new window has got the frames with
in > frames and frames with in those frames. > > > > the above code works fine on local boxes and once the code is
pushed to > server(testing box), it works for 1st time and then on it stops
working and > i get a message "mywindow.parent.frames.1 is null or not a object error". > > > > while pushing the localhost is made to the respective box name. > > > > i cannot imagine a reason for working once and not working again.,
if > anyone recall the same error before and have fixed please let me
know? > > > > any help is appriciated > > > > Kshoot > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Kai Grossjohann |
last post by:
It seems that Ctrl-N in Mozilla opens a new empty browser window.
That's fine, I don't need to do anything about it.
But Ctrl-N in IE appears to clone the current window. Is there a way
to...
|
by: Cardman |
last post by:
Greetings,
I am trying to solve a problem that has been inflicting my self
created Order Forms for a long time, where the problem is that as I
cannot reproduce this error myself, then it is...
|
by: Alex Rast |
last post by:
First of all, this is not a programming question. I'm a user, not
programming in JavaScript. I'm not, however, a novice user or even a power
user - I certainly know programming intimately as well...
|
by: Matt Kruse |
last post by:
http://www.JavascriptToolbox.com/bestpractices/
I started writing this up as a guide for some people who were looking for
general tips on how to do things the 'right way' with Javascript. Their...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
| |