473,385 Members | 1,930 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Can I write to another window/frame that has no 'src'


Folks,

I am specifically using an IFRAME but am also interested if this is
possible via a window opened using window.open

Basically - I have a popup window that I use for uploads - When an image
is uploaded, I have my PHP server create a thumbnail - I would like my
popup window to write to the iframe window and display the popup.

My <IFRAME> does not have a source tag - I know it could and it would
solve my problem but I'm wondering if there is another method that would
not involve a seperate file for the source tag.

lastly - the reason why I'm using an IFRAME is to make several uploads
more 'viewable' via a scroll bar.

Can anyone tell me if what I want to do is possible - and if so, perhaps
provide an example?

Thanks
randell d.

Jul 23 '05 #1
5 1580


Reply Via Newsgroup wrote:
I am specifically using an IFRAME but am also interested if this is
possible via a window opened using window.open

Basically - I have a popup window that I use for uploads - When an image
is uploaded, I have my PHP server create a thumbnail - I would like my
popup window to write to the iframe window and display the popup.

My <IFRAME> does not have a source tag - I know it could and it would
solve my problem but I'm wondering if there is another method that would
not involve a seperate file for the source tag.

lastly - the reason why I'm using an IFRAME is to make several uploads
more 'viewable' via a scroll bar.

Can anyone tell me if what I want to do is possible - and if so, perhaps
provide an example?


Hopefully you can script
window.frames.iframeName.location.href
as long as you have
<iframe name="iframeName"></iframe>
but I haven't tried with various browsers
--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 23 '05 #2
Ivo
<re****************@please.com> wrote
My <IFRAME> does not have a source tag - I know it could and it would
solve my problem but I'm wondering if there is another method that would
not involve a seperate file for the source tag.


<iframe name="dynamicframe" src="javascript:'Hang on.'">
works with all popular browsers. It defines a src, and provides a waiting
message (could serve as a noscript alternative), yet does not call on any
server.
HTH
Ivo
Jul 23 '05 #3
Martin Honnen wrote:


Reply Via Newsgroup wrote:
I am specifically using an IFRAME but am also interested if this is
possible via a window opened using window.open

Basically - I have a popup window that I use for uploads - When an
image is uploaded, I have my PHP server create a thumbnail - I would
like my popup window to write to the iframe window and display the popup.

My <IFRAME> does not have a source tag - I know it could and it would
solve my problem but I'm wondering if there is another method that
would not involve a seperate file for the source tag.

lastly - the reason why I'm using an IFRAME is to make several uploads
more 'viewable' via a scroll bar.

Can anyone tell me if what I want to do is possible - and if so,
perhaps provide an example?

Hopefully you can script
window.frames.iframeName.location.href
as long as you have
<iframe name="iframeName"></iframe>
but I haven't tried with various browsers

Thanks for the help - but not really what I was looking for as that
would still set the frame/popup window to point to a url on the server
(which is not what I wanted - I wanted to have my parent script contain
code that could do whatever I wanted into the frame).

Cheers
Randell D.
Jul 23 '05 #4
Ivo wrote:
<re****************@please.com> wrote
My <IFRAME> does not have a source tag - I know it could and it would
solve my problem but I'm wondering if there is another method that would
not involve a seperate file for the source tag.

<iframe name="dynamicframe" src="javascript:'Hang on.'">
works with all popular browsers. It defines a src, and provides a waiting
message (could serve as a noscript alternative), yet does not call on any
server.
HTH
Ivo


I've read somewhere that using "javascript:" is not recommended, despite
the fact that you are true in saying that it works on most popular browsers.

I guess I'll just have to have a server based html file.

Thanks for the help though,
randell d.
Jul 23 '05 #5
Reply Via Newsgroup <re****************@please.com> writes:
I've read somewhere that using "javascript:" is not recommended,
despite the fact that you are true in saying that it works on most
popular browsers.


The problem with it is that it works in most popular browser *if*
javascript is enabled. Most statistics show that that rules out
around 10% of the potential visitors.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 23 '05 #6

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

Similar topics

2
by: luu duong | last post by:
I know this is probably easy but here is the details. I have an asp page that is not inside a frameset. I want to post data to another asp page that is inside a frameset. So firstpage.asp has...
7
by: Scott | last post by:
I need help to modify the code below to pass url variables from a framset. The click to run this will be in the mainFrame. This script works well in a non-frame page. Grabs the current url...
4
by: Bernard | last post by:
Hi, I am suddenly getting Safari script errors with the following user agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/125.2 (KHTML, like Gecko) Safari/125.8 In a...
4
by: Frances Del Rio | last post by:
sorry, but need to post entire frameset here to ask my question: <frameset rows="79,344,107"> <frame name="header" src="header.html"> <frame name="player" src="mediaselect.html"> <frameset...
2
by: Angus the Fighter | last post by:
dear talented boys and girls, i have some problems in writing javascript in the following situation: could anyone tell me whats wrong with this: window.parent.frames.src; why it display as...
11
by: Rob | last post by:
I know, I know, don't use frames. Well, I'm stuck with these frames and I'm trying to add functionality without a complete redsign. You can look at this as a nostalgic journey. Anyway, I've got...
1
by: hendrakieran | last post by:
Hi Guys, I'd like to get some help regarding creating a floating window with the following scenario: * I have index.html which is contains the frameset definition: <html> <head> </head>
8
by: johnsonlau | last post by:
When I use document.write to replace the comment of a frame, I found that the page was always showing as loading in Firefox (2.0.0.2). But it seems that it is OK in IE6. Could someone help me...
4
by: ArrK | last post by:
I want to use a control frame to create and/or modify the content (images and text) of a display frame - all files and images are client side. . When I try to write to the display frame from the...
0
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,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
0
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...
0
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...

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.