Forum Moderators: open

Message Too Old, No Replies

Keeping users on site -JS?

         

henry0

2:39 pm on Sep 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have large site that is news and businesses oriented
We publish many daily news; some out our own chief editor writing
Some are pure links to other news sources
I try to keep users on site, which is not an easy task: it they visit another source links then they exit mine

I did think about getting my content (PHP MySQL)
opening in Iframe however the new created problem is that I cannot use it in a "100%" width environment unless you will know about a trick that I have no clue about.

Now I am thinking that I can load such a link to a location out of my site
within a new page that will open from within my site
And auto display the page without clicking on a visible link.
something like a JS script that will automatically load the link included in the new page

I have no clue on coding such a JS script!
It has to be fully automated not like a mouse over event
It has to happen without human intervention!
Not sure I am not losing you :)

any coding help appreciated

regards

Henry

tedster

6:43 pm on Sep 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This would amount to content theft if you could even pull it off. I know I would be very unhappy to see any content that I created presented as a page on someone else's website, no matter how they acquired it.

The best approach in my opinion is to let go of your visitors and get them to come back by providing a valuable site. The web works best when it is permission based, not when there is heavy control involved.

That said, if your target pages allow themselves to be displayed in a frame, you could do a thin top or bottom frame the way About.com does (not iframes, but a true, old-fashioned frameset with a tab to break free from the frameset.)

chadmg

7:15 pm on Sep 25, 2003 (gmt 0)

10+ Year Member



I'm probably misunderstanding you but why don't you just do a <a href="" target="_blank"> or you can go the less honorable route and link to a frameset with a banner on top with your site and the link you are sending them to on the bottom (similar to hotmail). Unless the site has some js code to break free of the frameset, it will work. Although, it is frowned upon.

henry0

8:47 pm on Sep 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Tedster
you misunderstood me
I ma not in that business what I am looking for is to open the full external site as is within one of my page like
I frame will do

chadmg thanks
years I did not use frame
it might work although I do not like frames
but I'l give it a try

tedster

10:28 pm on Sep 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sorry, I guess I do misunderstand you. I wasn't actually accusing you of intending to do content theft, because I think your intent is legitimate. My comments were intended more as a heads-up to the net effect I thought you would achieve IF it was possible to place someone else's content on your URL with javascript (and I don't think it is).

open the full external site as is within one of my page like I frame will do

I understand that you're hoping for a solution that works like iframes, but you find iframes to be problematic with your page layout. That's why chadmg and I both suggested a conventional frameset as a simple solution. And that way you avoid all the cross-browser challenges of a more complex, scripted solution.

You could also open the external site in a new window opened with javascript, or, as chadmg mentioned, opened through a target attribute.

I guess the biggest issue in understanding your challenge is what are the constraints that your 100% width environment is placing on the display. For instance, why can't you use a set width iframe within a 100% width page. Or do some sniffing for screen properties such as availHeight and availWidth - then serve one fixed width iframe from an assortment of possibilities.

henry0

10:57 pm on Sep 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



HEllo TEdster
glad to see we are both on the same length of waves!

well deep inside I knew that sniffing is the answer
assorted with frames at 100%
it feels funny I will have to look at tutorials
as I said I did not do any frames since years
I guess I need to go back to school :)
mea culpa

just have to do a sniffing and recode a few pages

I need some imput on sniffing

15 @ 800 and 1024
17 @800 and 1024

thanks

BTW
no need to be sorry
I appreciate your straight forward concerns