473,732 Members | 1,921 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 1476
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
1543
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
1426
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
1641
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
1973
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
1526
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
3916
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
17824
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
1330
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
1953
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
8773
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9180
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
8186
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
6030
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4548
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4805
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3259
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
2721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2177
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.