19 replies [Last post]
niclipse
niclipse's picture
Offline
Enthusiast
Last seen: 14 years 25 weeks ago
Joined: 2006-02-08
Posts: 54
Points: 0

http://www.realestate321.com/buyers/foreclosures.asp

The abovementioned page has a map. The map sends you to realtytrac, a popular foreclosure site. However, I want the links to open within the DIV tag. Right now they open as target=_top, even though there is no base target=_top defined on my dite.

Any ideas on how to accomplish this?

Tags:
Triumph (not verified)
Anonymous's picture
Guru

niclipse wrote:... I want

niclipse wrote:
... I want the links to open within the DIV tag.

What does this mean? :?

roscoe
roscoe's picture
Offline
Enthusiast
Last seen: 14 years 11 weeks ago
Joined: 2006-03-09
Posts: 138
Points: 0

I think I understand what

I think I understand what you are saying...

If you want a link to open up in a certain area on the page and keep the content you clicking on without changing you need to use an iframe and then target the name of the iframe.

Hope that helps.

Ed Seedhouse
Ed Seedhouse's picture
Offline
Guru
Victoria British Columbia
Last seen: 1 year 32 weeks ago
Victoria British Columbia
Timezone: GMT-8
Joined: 2005-12-14
Posts: 3570
Points: 675

roscoe wrote:If you want a

roscoe wrote:
If you want a link to open up in a certain area on the page and keep the content you clicking on without changing you need to use an iframe and then target the name of the iframe.

Or "AJAX" (javascript).

Ed Seedhouse

Posting Guidelines

Watch out! I am carrying irony, sarcasm and satire, and know how to use them.

Triumph (not verified)
Anonymous's picture
Guru

Ed Seedhouse wrote:roscoe

Ed Seedhouse wrote:
Or "AJAX" (javascript).

I was just going to post that. Smile

Ed Seedhouse
Ed Seedhouse's picture
Offline
Guru
Victoria British Columbia
Last seen: 1 year 32 weeks ago
Victoria British Columbia
Timezone: GMT-8
Joined: 2005-12-14
Posts: 3570
Points: 675

Triumph wrote:I was just

Triumph wrote:
I was just going to post that. Smile

Not often I get a jump on you. You can also give the same effect by sending a whole new page that looks the same except for the area you want to change, best done with server-side technologies, but if you want to reduce bandwidth use and can do javascript right then an AJAX method seems to be appropriate.

Ed Seedhouse

Posting Guidelines

Watch out! I am carrying irony, sarcasm and satire, and know how to use them.

niclipse
niclipse's picture
Offline
Enthusiast
Last seen: 14 years 25 weeks ago
Joined: 2006-02-08
Posts: 54
Points: 0

I'd like to avoid using

I'd like to avoid using iframe. Explain to me what ajax is ... i know of javascript, but have seen ajax mentioned more and more and I have no clue about it?

Ed Seedhouse
Ed Seedhouse's picture
Offline
Guru
Victoria British Columbia
Last seen: 1 year 32 weeks ago
Victoria British Columbia
Timezone: GMT-8
Joined: 2005-12-14
Posts: 3570
Points: 675

AJAX uses a javascript

AJAX uses a javascript object to query a remote server for information in the background while the page remains loaded, and then after retrieving the information it uses javascript on the document object model to rewrite the page on the fly. Using javascript you can address any object on a page and change it's contents or it's style on the fly.

It's a complex system - I would get that effect using server side technology like php myself, but that is slower than AJAX in modifying the page. With server side stuff you actually have to resend the page with the modifications. If the page is substantially the same it looks to the browser as if the page itself was just being modified partly rather than completely reloaded.

AJAX does give a faster and more elegant result, but it's also harder to do and easier to make a real mess with.

But either server side processing or AJAX is definitely a better way to do it than with frames or iframes, that's for sure.

Just google on AJAX and go to the first hit for more information.

Ed Seedhouse

Posting Guidelines

Watch out! I am carrying irony, sarcasm and satire, and know how to use them.

Triumph (not verified)
Anonymous's picture
Guru

Does AJAX work on the server

Does AJAX work on the server or is it useless to a client with javascript disabled? :?

roscoe
roscoe's picture
Offline
Enthusiast
Last seen: 14 years 11 weeks ago
Joined: 2006-03-09
Posts: 138
Points: 0

AJAX uses the the

AJAX uses the the XMLHTTPRequest object in JavaScript so if it's disabled then, yes, it becomes useless.

niclipse
niclipse's picture
Offline
Enthusiast
Last seen: 14 years 25 weeks ago
Joined: 2006-02-08
Posts: 54
Points: 0

after reading the above

after reading the above responses, an Iframe seems more practical/time efficient for something as simple as what I am trying to do. (piggy back information feed)

I wish realtytrac would make an rss/xml feed instead so I could have more congtrol over the data. Typically, their web clients arent as demanding as myself.

niclipse
niclipse's picture
Offline
Enthusiast
Last seen: 14 years 25 weeks ago
Joined: 2006-02-08
Posts: 54
Points: 0

I tried to use an iframe,

I tried to use an iframe, but realtytrac (the external site im trying to wrap) uses a frame buster code. I can get around this by loading their page into a DIV.

I looked into AJAX and found a worthy script at DynamicDrive, however it says:

"Note: Due to security limitations, the external pages loaded must be from the same domain as the encompassing page. Any external .css and .js files associated with these pages, however, can be from any domain."

Now how on earth doesd that make ajax useful?

Here's the page with the ajax script. Does anyone know a work around to load an external link not on my server?
http://www.realestate321.com/buyers/f.asp

Triumph (not verified)
Anonymous's picture
Guru

Moved to "Off topic". Why

Moved to "Off topic". Why was this in CSS styling? :?

niclipse
niclipse's picture
Offline
Enthusiast
Last seen: 14 years 25 weeks ago
Joined: 2006-02-08
Posts: 54
Points: 0

in the beginning, i figured

in the beginning, i figured there was a way to load pages within a div and maybe there was a css attribute I was unaware of to accomplish this.

SuperRoach
SuperRoach's picture
Offline
Enthusiast
Ballarat
Last seen: 11 years 4 weeks ago
Ballarat
Timezone: GMT+10
Joined: 2007-02-26
Posts: 291
Points: 6

just wondering, why would a

just wondering, why would a iFrame be bad? The disadvantages I would see is that the height would need to be locked in, but besides that....

Always thought of server side stuff as a last resort for anything not a large scale or major website due to extra complexity in it..

If you can access the file, would something like @include or other importing of files be a viable option by the way? you would need a php capable host of course

niclipse
niclipse's picture
Offline
Enthusiast
Last seen: 14 years 25 weeks ago
Joined: 2006-02-08
Posts: 54
Points: 0

the site I am trying to

the site I am trying to iframe or framset has a javascript frame-buster. If I load them in a DIV, it will avoid this.

Howevger, Im now having trouble getting ajax to load pages not located on my server.

http://www.realestate321.com/buyers/f.asp

Ed Seedhouse
Ed Seedhouse's picture
Offline
Guru
Victoria British Columbia
Last seen: 1 year 32 weeks ago
Victoria British Columbia
Timezone: GMT-8
Joined: 2005-12-14
Posts: 3570
Points: 675

SuperRoach wrote:Always

SuperRoach wrote:
Always thought of server side stuff as a last resort for anything not a large scale or major website due to extra complexity in it.

There's nothing particularly complex about server side programming if you have some modicum of programming experience elsewhere. To the contrary I find it often makes things much easier.

Ed Seedhouse

Posting Guidelines

Watch out! I am carrying irony, sarcasm and satire, and know how to use them.

Chris..S
Chris..S's picture
Offline
Moderator
Last seen: 10 years 2 weeks ago
Timezone: GMT+1
Joined: 2005-02-22
Posts: 6078
Points: 173

If the site has frame

If the site has frame busting javascript, presumably that is because they aren't prepared to let you load their site into a frame on your site. In that case, I think this thread should stop here. If you wish to use their content, contact them directly and come to some commercial/contractual arrangement.

Deuce
Deuce's picture
Offline
Guru
Somewhere, USA
Last seen: 5 years 11 weeks ago
Somewhere, USA
Timezone: GMT-5
Joined: 2005-11-20
Posts: 4424
Points: 1843

or wait until xframe comes

or wait until xframe comes out

all ยป http://dictionary.reference.com/browse/all

Google isn't a bunch of guys reading and grading web sites, it's more like a bunch of monkeys sniffing food and putting the good bananas at the top. -Triumph

Triumph (not verified)
Anonymous's picture
Guru

Chris..S wrote:If the site

Chris..S wrote:
If the site has frame busting javascript, presumably that is because they aren't prepared to let you load their site into a frame on your site. In that case, I think this thread should stop here. If you wish to use their content, contact them directly and come to some commercial/contractual arrangement.

Ah. Good point. Let's stay ethical on this site. Theft of content and breaking copyrights are two things that should not be discussed or in any way encouraged. niclipse, I assumed you had permission to use the content.

Pa, this dog's rabid. I'm gonna give him a lead pill.

*Ka-POW!*