473,394 Members | 1,794 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,394 software developers and data experts.

Open external link into DIVs

Hi,
I'm trying to display external link into a DIV (http://
www.google.com/, for example).
I don't want to use IFRAME, because I already tried it and I'm not
satisfied about the results.
How can I simulate IFRAME? Possibly without using Ajax.
I passed all the day looking for scripts that can help me, but
unsuccessfully.
Thanks in advance for any suggestion,

Eddy

Apr 30 '07 #1
14 3583
On Apr 30, 3:12 pm, eddy.pago...@gmail.com wrote:
Hi,
I'm trying to display external link into a DIV (http://www.google.com/, for example).
I don't want to use IFRAME, because I already tried it and I'm not
satisfied about the results.
How can I simulate IFRAME? Possibly without using Ajax.
I passed all the day looking for scripts that can help me, but
unsuccessfully.
Thanks in advance for any suggestion,

Eddy
suggest you spend your next day looking into iframes, divs cant help
you here. iframes are the way to go, unless you use server side proxy
script and fill the div with references to the proxied html - which I
suggest you dont unless you are very familiar with server scripting.

Apr 30 '07 #2
What exactly are you trying to attempt? I understand you're wanting to
use an iframe, but what are you trying to accomplish with it? Are you
writing content that you want to update in one spot and it pulls into
another page?

Having a better idea of what you're looking to do can give me a better
idea on what to possibly recommend.

May 1 '07 #3
br************@gmail.com said the following on 4/30/2007 11:10 PM:
What exactly are you trying to attempt?
Can you not understand what you read? The request was quite simple.
Let me quote the request for you:
<quote >
I'm trying to display external link into a DIV (http://www.google.com/,
for example).
</quote>
I understand you're wanting to use an iframe,
I guess you can't understand what you read. Again, let me quote the
second sentence of the original post for you:

<quote>
I don't want to use IFRAME, because I already tried it and I'm not
satisfied about the results.
</quote>

Clearly, they don't want to use an IFrame but you are "understanding
you're wanting to use an IFrame". Perhaps before answering questions you
might want to read up on English comprehension first.
but what are you trying to accomplish with it?
You really can't comprehend simple English can you?
Are you writing content that you want to update in one spot and it pulls into
another page?
Ditto.
Having a better idea of what you're looking to do can give me a better
idea on what to possibly recommend.
Based on your inability to understand what was pretty simple to start
with, I find it difficult to believe that anything you could "possibly
recommend" would be worth trying.

JFTR, What was wanting to be done can't be done.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
May 1 '07 #4
dd
On Apr 30, 4:12 pm, eddy.pago...@gmail.com wrote:
Hi,
I'm trying to display external link into a DIV (http://www.google.com/, for example).
I don't want to use IFRAME, because I already tried it and I'm not
satisfied about the results.
How can I simulate IFRAME? Possibly without using Ajax.
I passed all the day looking for scripts that can help me, but
unsuccessfully.
I've also had the need to do this and the only way I could
get it to work "easily" was using an iframe on the DIV. If
the page that you want to load into that iframe is from a
different domain, then I'm sure you know that it's pretty much
dead in terms of communication with it. All you can do is make
it navigate somewhere else. However, if that page that you're
loading is in your domain, then you have full access to all
that's on it. You can call functions in it and get variables, you
can write into DIV's that it has, and it can do the same things
back up to the parent. You can achieve the same thing by
creating a friendly iframe also. Create one that has no src,
then open the document and document.write tags into it. This
is becoming a popular way of using iframes now. You squirt
the HTML directly into the iframe from the parent. I could go
into more detail, but it's iframe based and you're trying to
avoid that. Perhaps it's worth explaining your concerns about
iframes.

May 1 '07 #5
Listen, there's no need to be a jackass about this. The request seems
simple, but the request is unclear. There's an underlying application
requirement that is not conveyed in the request. First off, you
shouldn't be using IFrames, Second off you shouldn't use javascript to
do something that really requires some server side code. I was trying
to offer some advice and can do so coherently if I knew a little more
background.

Second off don't listen to people like Randy Webb. These people are
the reason that web apps are in such a poor shape, with hundreds of
lines of unnecessary code and unruly load times. I'll hold my tongue.

May 1 '07 #6
br************@gmail.com wrote on 01 mei 2007 in comp.lang.javascript:
Listen, there's no need to be a jackass about this. The request seems
simple, but the request is unclear.
What are you responding to?

[please always quote on usenet]

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
May 1 '07 #7
What are you responding to?
[please always quote on usenet]
The attack from Randy Webb..There's no need for that.

May 1 '07 #8
br************@gmail.com wrote on 01 mei 2007 in comp.lang.javascript:
>What are you responding to?
[please always quote on usenet]

The attack from Randy Webb..There's no need for that.
Unquoted, I don't know what you are talking about.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
May 1 '07 #9
On May 1, 2:28 pm, "bradleyjcoo...@gmail.com"
<bradleyjcoo...@gmail.comwrote:
Listen, there's no need to be a jackass about this. The request seems
simple, but the request is unclear. There's an underlying application
requirement that is not conveyed in the request. First off, you
shouldn't be using IFrames, Second off you shouldn't use javascript to
do something that really requires some server side code. I was trying
to offer some advice and can do so coherently if I knew a little more
background.

Second off don't listen to people like Randy Webb. These people are
the reason that web apps are in such a poor shape, with hundreds of
lines of unnecessary code and unruly load times. I'll hold my tongue.
I too tend to look further than the OP's words; however there is some
number of people in this world who perceive things very literally, and
who think that is acceptable, they get frustrated when others do not
provide them with the information they need to make a unambigous and
informative reply, frustrated people tend to lash out in some way.

I thought from reading the tone of the OP, that the app requirement
was just to have "some remote content displayed probably on mouseover
in a little window" and thought the OP couldnt figure out how to style
the iframe.
Regards of the iframe debate [ they have been around almost since the
dawn of browsers and are well supported in most readers ], and not
mentioning server side stuff too much - this is a js ng, and the op
probably doesnt do much ss scripting - an iframe would be the easiest
way for someone to get up and running, for a personal project. Someone
who scripts for a living would be using ajax with some sss to get back
a small amount of content, and would then attach the functionality
unobtrusively. I didnt think the OP would go for that.

Web apps are in a terrible state, and there's loads of ignorance and
laziness, but it is a popular game, everyones uncle knows someone who
can put up a few pages, if he can't do it, why pay a professional!
Standards? what are they.
Bradlet as long as you do the best you can, just sit back and wink. ;)

May 1 '07 #10
On May 1, 2:54 pm, shimmyshack <matt.fa...@gmail.comwrote:
On May 1, 2:28 pm, "bradleyjcoo...@gmail.com"

<bradleyjcoo...@gmail.comwrote:
Listen, there's no need to be a jackass about this. The request seems
simple, but the request is unclear. There's an underlying application
requirement that is not conveyed in the request. First off, you
shouldn't be using IFrames, Second off you shouldn't use javascript to
do something that really requires some server side code. I was trying
to offer some advice and can do so coherently if I knew a little more
background.
Second off don't listen to people like Randy Webb. These people are
the reason that web apps are in such a poor shape, with hundreds of
lines of unnecessary code and unruly load times. I'll hold my tongue.

I too tend to look further than the OP's words; however there is some
number of people in this world who perceive things very literally, and
who think that is acceptable, they get frustrated when others do not
provide them with the information they need to make a unambigous and
informative reply, frustrated people tend to lash out in some way.

I thought from reading the tone of the OP, that the app requirement
was just to have "some remote content displayed probably on mouseover
in a little window" and thought the OP couldnt figure out how to style
the iframe.
Regards of the iframe debate [ they have been around almost since the
dawn of browsers and are well supported in most readers ], and not
mentioning server side stuff too much - this is a js ng, and the op
probably doesnt do much ss scripting - an iframe would be the easiest
way for someone to get up and running, for a personal project. Someone
who scripts for a living would be using ajax with some sss to get back
a small amount of content, and would then attach the functionality
unobtrusively. I didnt think the OP would go for that.

Web apps are in a terrible state, and there's loads of ignorance and
laziness, but it is a popular game, everyones uncle knows someone who
can put up a few pages, if he can't do it, why pay a professional!
Standards? what are they.
Bradlet as long as you do the best you can, just sit back and wink. ;)
did I just refer to you as Bradlet? sorry!

May 1 '07 #11
On May 1, 9:56 am, shimmyshack <matt.fa...@gmail.comwrote:
On May 1, 2:54 pm, shimmyshack <matt.fa...@gmail.comwrote:
On May 1, 2:28 pm, "bradleyjcoo...@gmail.com"
<bradleyjcoo...@gmail.comwrote:
Listen, there's no need to be a jackass about this. The request seems
simple, but the request is unclear. There's an underlying application
requirement that is not conveyed in the request. First off, you
shouldn't be using IFrames, Second off you shouldn't use javascript to
do something that really requires some server side code. I was trying
to offer some advice and can do so coherently if I knew a little more
background.
Second off don't listen to people like Randy Webb. These people are
the reason that web apps are in such a poor shape, with hundreds of
lines of unnecessary code and unruly load times. I'll hold my tongue.
I too tend to look further than the OP's words; however there is some
number of people in this world who perceive things very literally, and
who think that is acceptable, they get frustrated when others do not
provide them with the information they need to make a unambigous and
informative reply, frustrated people tend to lash out in some way.
I thought from reading the tone of the OP, that the app requirement
was just to have "some remote content displayed probably on mouseover
in a little window" and thought the OP couldnt figure out how to style
the iframe.
Regards of the iframe debate [ they have been around almost since the
dawn of browsers and are well supported in most readers ], and not
mentioning server side stuff too much - this is a js ng, and the op
probably doesnt do much ss scripting - an iframe would be the easiest
way for someone to get up and running, for a personal project. Someone
who scripts for a living would be using ajax with some sss to get back
a small amount of content, and would then attach the functionality
unobtrusively. I didnt think the OP would go for that.
Web apps are in a terrible state, and there's loads of ignorance and
laziness, but it is a popular game, everyones uncle knows someone who
can put up a few pages, if he can't do it, why pay a professional!
Standards? what are they.
Bradlet as long as you do the best you can, just sit back and wink. ;)

did I just refer to you as Bradlet? sorry!
Thanks. I'm an advocate of standards and everyday see people passing
around bad work. Just trying to offer some good advice. Thanks!

May 1 '07 #12
br************@gmail.com said the following on 5/1/2007 9:28 AM:
Listen, there's no need to be a jackass about this.
I assume that you are referring to me even though you can't even reply
to me, you replied to dd. That aside, you haven't seen the beginning of
jackass yet.
The request seems simple, but the request is unclear.
The request was *very* clear if you can comprehend what you read.
There's an underlying application requirement that is not conveyed in the request.
Says who? Oh wait, I am the jackass and you are the psychic. Well, since
you can tell that much from the post, you can't be very much of a
psychic if you still have to ask a question to make sure they are
wanting what you think they want.
First off, you shouldn't be using IFrames,
Non-sense.
Second off you shouldn't use javascript to do something that really
requires some server side code.
More nonsense.
I was trying to offer some advice and can do so coherently if I
knew a little more background.
You couldn't even comprehend the question, how the hell do you suppose
you could offer advice? Your whole idea was telling them they wanted
something they explicitly said they did not want.
Second off don't listen to people like Randy Webb.
If your mama knew how stupid you were, she would trade you in a pet
monkey.[1]
These people are the reason that web apps are in such a poor shape,
I will put my code up for quality review against yours anytime you want
to endeavor it. But, it is nice to know that I am personally responsible
for the state of web apps.
with hundreds of lines of unnecessary code and unruly load times.
You really are as stupid as I thought you were.
I'll hold my tongue.
That would have been the smartest thing you have done yet.

And, once again, a simple answer to the Original Question, that you
still haven't managed to comprehend yet: It can *NOT* be done. See how
easy that was? I would explain why but I doubt you would understand, or
comprehend, what I wrote.

[1] Fire Down Below.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
May 1 '07 #13
Randy Webb wrote:
If your mama knew how stupid you were, she would trade you in a pet
monkey.[1]

[1] Fire Down Below.
Woah, crazy coincidence. My bottle of tequila and I just watched Fire
Down Below *last night*!

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
May 1 '07 #14
-Lost said the following on 5/1/2007 6:28 PM:
Randy Webb wrote:
If your mama knew how stupid you were, she would trade you in a pet
monkey.[1]

[1] Fire Down Below.

Woah, crazy coincidence. My bottle of tequila and I just watched Fire
Down Below *last night*!
The blond on the mountain is the pattern for my desired nympho :)
Although I left the word "on" out.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
May 1 '07 #15

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

Similar topics

14
by: Reply Via News Group Please | last post by:
Folks, I'm new to CSS and realise that by posting in the html newsgroup, I might upset one or two readers by raising a CSS question in an html newsgroup however my ISP only has one small CSS...
3
by: Jennifer | last post by:
I have a page with three divs (top, left and center). I want to place hyperlinks in the left column (div), where each link calls a separate page. I want each separate page to open in the center...
10
by: Marshall Dudley | last post by:
When I do the following line in Netscape, the popup loads as it should, but the parent window usually, but not always, reloads as well. <a href="#"...
2
by: deko | last post by:
I'm new to JavaScript, but would like to include some basic functionality on a web page. Any help is appreciated. I use Dreamweaver MX and want to call a simple JavaScript function onMouseOver...
8
by: Dominic Tocci | last post by:
I'm searching for a way to use window.open on my web page to open a window in firefox that allows the sidebars to work (bookmarks, history, etc). When I use the following: var...
4
by: Greg Collins [MVP] | last post by:
I've searched around and can't seem to find an answer to this... maybe someone has already done it. I want to create a redirection page for hyperlinks which point to an external site or file. This...
18
by: len.hartley | last post by:
Hi, I am trying to pop-up a window when the user clicks on an image. The problem is that when the user clicks on the image and the window pops up OK, but the window underneath also proceeds to...
8
by: Radu | last post by:
Hi, I have the following problem: I open a recordset based on excel/csv files, but then I need to filter (in code) in order to extract only data pertaining to a specific person. This code is...
12
by: Steve | last post by:
I have a database that raises an error when you try to open it and it doesn't open. Trying to open the database with the OpenDatabase method raises the same error. Trying to import any objects...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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...
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
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,...
0
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,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.