473,837 Members | 1,548 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

tough question 2

how to do the follows in IE:
there's page A with element a
pop a new page B from script in A
and append element a into B
after closing page B
put element a back into A

'IE' solution only

Jun 27 '08 #1
12 1491
VK
On Apr 14, 12:46 am, Mr Shore <shore.cl...@gm ail.comwrote:
how to do the follows in IE:
there's page A with element a
pop a new page B from script in A
and append element a into B
after closing page B
put element a back into A

'IE' solution only
You should use JScript or VBScript, I guess. As "IE only solution" you
may check my advise at microsoft.publi c.scripting.jsc ript but I'm
pretty sure that they will come to the same conclusion.

Post or link your best attempt you have made so far and we may try to
come together to some cross-browser solution.
Jun 27 '08 #2
On Apr 14, 4:58 am, VK <schools_r...@y ahoo.comwrote:
On Apr 14, 12:46 am, Mr Shore <shore.cl...@gm ail.comwrote:
how to do the follows in IE:
there's page A with element a
pop a new page B from script in A
and append element a into B
after closing page B
put element a back into A
'IE' solution only

You should use JScript or VBScript, I guess. As "IE only solution" you
may check my advise at microsoft.publi c.scripting.jsc ript but I'm
pretty sure that they will come to the same conclusion.

Post or link your best attempt you have made so far and we may try to
come together to some cross-browser solution.
ok,to declare it more clearly
the parent window:
<body>
<script>
function OpenChild()
{
var childWin = window.open("t. html");
}

</script>
<input type="button" onclick="OpenCh ild()"/>
<input type="button" id="try" onclick="f();"/>
</body>
the son window:
<html>
<body onbeforeunload= "g();" onload="X();">

<script>

function X()
{

document.body.a ppendChild(wind ow.opener.docum ent.getElementB yId('try'));
}
function g()
{

window.opener.d ocument.body.ap pendChild(docum ent.getElementB yId('try'));
}
</script>
</body>
</html>
passed in ff,but failed in IE
Jun 27 '08 #3
document.body.a ppendChild(wind ow.opener.docum ent.getElementB yId('try'));
window.opener.d ocument.body.ap pendChild(docum ent.getElementB yId('try'));
appending elements from different documents is not possible on IE (im
99% sure), you have to create the elements
on their corresponding document, probably would be better if you use
innerHTML
Jun 27 '08 #4
Lee
Mr Shore said:

You might also want to consider the fact that many people
will ignore messages with useless subject lines like
"tough question".
Use the subject line to give a clue about what sort of
question you're asking.
--

Jun 27 '08 #5
On Apr 14, 10:10 am, RoLo <roloswo...@gma il.comwrote:
document.body.a ppendChild(wind ow.opener.docum ent.getElementB yId('try'));
window.opener.d ocument.body.ap pendChild(docum ent.getElementB yId('try'));

appending elements from different documents is not possible on IE (im
99% sure), you have to create the elements
on their corresponding document, probably would be better if you use
innerHTML
have you ever used this online im?
http://www.meebo.com/
the chat window can be poped up both in ff and IE
Jun 27 '08 #6
On Apr 14, 11:37 am, Lee <REM0VElbspamt. ..@cox.netwrote :
Mr Shore said:

You might also want to consider the fact that many people
will ignore messages with useless subject lines like
"tough question".
Use the subject line to give a clue about what sort of
question you're asking.

--
ok
Jun 27 '08 #7
Mr Shore <sh*********@gm ail.comwrites:
On Apr 14, 10:10 am, RoLo <roloswo...@gma il.comwrote:
document.body.a ppendChild(wind ow.opener.docum ent.getElementB yId('try'));
window.opener.d ocument.body.ap pendChild(docum ent.getElementB yId('try'));

appending elements from different documents is not possible on IE (im
99% sure), you have to create the elements
on their corresponding document, probably would be better if you use
innerHTML

have you ever used this online im?
http://www.meebo.com/
the chat window can be poped up both in ff and IE
What's that got to do with anything? Read RoLo's text again. By the way,
the quoted code also won't work on Opera; again - you shouldn't move
elements from one document to another.

--
Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/
Jun 27 '08 #8
On Apr 13, 4:46*pm, Mr Shore <shore.cl...@gm ail.comwrote:
how to do the follows in IE:
there's page A with element a
pop a new page B from script in A
and append element a into B
after closing page B
put element a back into A

'IE' solution only
As stated, appending elements from one page to another is a bad idea.
Just return a value from page B and construct a new element in page
A. Not a big deal.

Bob
Jun 27 '08 #9
On Apr 14, 10:11 pm, beegee <bgul...@gmail. comwrote:
On Apr 13, 4:46 pm, Mr Shore <shore.cl...@gm ail.comwrote:
how to do the follows in IE:
there's page A with element a
pop a new page B from script in A
and append element a into B
after closing page B
put element a back into A
'IE' solution only

As stated, appending elements from one page to another is a bad idea.
Just return a value from page B and construct a new element in page
A. Not a big deal.

Bob
could you provide a instance?
elements with listeners are quite troublesome to handle i think
Jun 27 '08 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1546
by: Christine Long | last post by:
Webmasters: Colance specialise in connecting your ideas with Freelance Professionals to produce your project. Programmers: Providing your Service is made easy through Colance. It is free to sign up with no monthly costs 0vHQf2M7VXa
0
1429
by: Aaron Williams | last post by:
Webmasters: Colance specialise in connecting your ideas with Freelance Professionals to produce your project. Programmers: Providing your Service is made easy through Colance. It is free to sign up with no monthly costs s5GK6MpJPxAn2ip
3
1665
by: eric rudolph | last post by:
1. I'm designing a PHP-based page that has a lot of design stuff in it. It's very tough to mix the HTML and PHP and have it be readable. The site isn't overall so complicated, there's just a lot of graphics. Is there some commercial way to design the page in a design program, then to use the designed page as a skeleton, or "template" or "fill in" page as a pre-cursor for a real HTML page? For instance, I could replace the designed graphic...
5
1977
by: Abyss | last post by:
My view. anyone that doesn't like it tough, click off and stop reading it. I have spent the last 45 minutes reading through all the posts, and I believe that you have all missed the mark of that post. The post was not about strict or transitional pages, it wasn't even about
6
1536
by: Kennedy_f | last post by:
I did better in terms of score on this one than 291, but I found it much harder. Wordings of questions are difficult like the rest, but the DNS and CA scenarios were very tough to figure out. Take your time on the questions. I used uecrtify exam simulation. Make sure you know exactly what they are asking for and think it through. You will not pass unless you have experience with the product and have done a lot of prep work. Read the...
28
3929
by: Arial | last post by:
My SQL string is kind of wierd one. In my application, I need to select things from an unknown name table. But I know the table name before the SQL command is executed. For instance, Dim varname as string = 'one of my variable. It's part of the table name. Dim t1 as String = varname+ "0000"
9
17834
by: denis | last post by:
Hi there, I got a tough interview questions lately, and I would like to hear your opinion: An array of N chars is given Write an efficient algorithm to find all the repeating substring with a minimal size
1
1332
by: Cowboy \(Gregory A. Beamer\) | last post by:
If you have a tough time getting your head around Lambda Expressions, see if this blog entry helps: http://tinyurl.com/4yeckd I would gladly welcome comments, critiques and questions, as I am hoping this entry really helps those who are struggling with this topic. -- Gregory A. Beamer MVP, MCP: +I, SE, SD, DBA
4
1958
by: Jim Rutledge | last post by:
ok ok , anyone know anything on this tough question? How do you determine the length in seconds that a midi file is , or any audio file for that matter ?
0
9837
marktang
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10870
Oralloy
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10563
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10267
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9392
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5845
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4474
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4038
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3123
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.