UK and Europe · Public discussion

OT Any HTML gurus ?

Started by Richard Bates · · Last activity · 14 posts · 617 views

Thread navigation

Jump through the discussion

Go to the original post, the replies on this page, or the latest preserved contribution.

Thread details

What we know about this thread

Original section
UK and Europe
Published
17 March 2004
Last activity
19 March 2004
Original author
Richard Bates
Posts
14
Discussion status
Public discussion
Total views
617
Views / 30 days
0

The navigation and discussion metadata provide context. Posts remain in their original chronological order.

Showing posts 1–14 of 14
Posts remain in their original chronological order.

Text size
  1. Not totally off topic:

    For my next tour i want to be able to publish a webpage
    which will satisfy a couple of requirements.

    1) I want it refer to data (directly on the same page: not
    as a link) from an externall html page.

    More specifically I want the following structure:

    my own text

    imported text+jpgs from external page whose URL will
    change daily

    more of my own text

    2nd imported page, again changing daily

    more of my own text

    I would prefer something that doesn't require frames since
    the rest of my site does not use them. (I'm not very clever
    with html and am cheating by using net-objects-fusion). When
    I do my daily webpage update en-route I will have access to
    only a text editor, so the simpler the better.

    2) Is there such a thing as a for-next loop in html?
    Something along the lines of:

    for n=1 to 100 display an image next n

    Thanks for any help.

    Love and html from Rich x

    --
    DISCLAIMER: My email box is private property.Email which
    appears in my inbox is mine to do what I like with. Anything
    which is sent to me (whether intended or not) may, if I so
    desire, form a legal and binding contract.

  2. Richard Bates said:

    Not totally off topic: For my next tour i want to be able
    to publish a webpage which will satisfy a couple of
    requirements.

    Quoted message said:

    1) I want it refer to data (directly on the same page: not
    as a link) from an externall html page.

    Images are always links.

    Quoted message said:

    More specifically I want the following structure:

    Quoted message said:

    my own text

    Quoted message said:

    imported text+jpgs from external page whose URL will
    change daily

    Quoted message said:

    more of my own text

    Quoted message said:

    2nd imported page, again changing daily

    Quoted message said:

    more of my own text

    Quoted message said:

    I would prefer something that doesn't require frames
    since the rest of my site does not use them. (I'm not
    very clever with html and am cheating by using net-objects-
    fusion). When I do my daily webpage update en-route I
    will have access to only a text editor, so the simpler
    the better.

    Quoted message said:

    2) Is there such a thing as a for-next loop in html?
    Something along the lines of:

    Quoted message said:

    for n=1 to 100 display an image next n

    Not in HTML, but it is possible, server side, in a scripting
    language. Where is your web page hosted? Do they support PHP
    or Perl CGI (or M$ ASP)?

    There are ISPs that do provide such a service - a quick
    google turns up a list at od-site.comphp

    That would be one way to do it - dynamically generate the
    HTML based on a template, with just one variable pointing to
    the external web site that needs changing daily.

    Cutting and pasting small amounts of text from an external
    web site would be tricky.

    Embedding the contents of an external web page can be done
    in PHP using the include() function.

    --
    Alan J. Wylie wylie.me.ukwylie.me.uk "Perfection [in
    design] is achieved not when there is nothing left to add,
    but rather when there is nothing left to take away." --
    Antoine de Saint-Exupery

  3. On Wed, 17 Mar 2004 13:30:17 +0000, in
    <[email hidden]>, [email hidden] (Alan J. Wylie)

    Quoted message said:
    Richard Bates said:

    Not totally off topic: For my next tour i want to be able
    to publish a webpage which will satisfy a couple of
    requirements.

    Quoted message said:

    1) I want it refer to data (directly on the same page:
    not as a link) from an externall html page.

    Images are always links.

    Thanks for replying.

    But what about if I want to seamlessly include a WHOLE page
    - not just an image. What I meant was that I want the whole
    of the external page (actually an OS map from the OS site)
    to appear "in-line" on my own page without the user having
    to "click here" to see it.

    The format of URL used by OS seems to include the X and Y
    coordinates
    (e.g.http://getamap.ordnancesurvey.co.uk/jsp/map_print.jsp?-
    mapX=407277&mapY=294782&zoomLevel=6&isNI=&mapAction=zo-
    omabs&isGeo=y)

    If I could simply "suck in" the whole of the OS generated
    page then it would then be a simple task to edit my html in
    a text editor and simply change the coordinates in the URL
    each day based on what i see on my paper OS map.

    The problem with refering to the image alone is that the
    URL for that does not seem to be generated logically (I
    won't be able to provide a valid URL just by looking at my
    paper OS map)

    Quoted message said:
    Quoted message said:

    2) Is there such a thing as a for-next loop in html?
    Something along the lines of:

    Quoted message said:

    for n=1 to 100 display an image next n

    Not in HTML, but it is possible, server side, in a
    scripting language. Where is your web page hosted? Do they
    support PHP or Perl CGI (or M$ ASP)?

    Hmm, shame, I can just about get my head around html. I
    think php/cgi and similar is beyond me.

    Looks like I'll be cutting and pasting instead of
    using a loop.

    Thanks again,

    Rich x'
    --
    DISCLAIMER: My email box is private property.Email which
    appears in my inbox is mine to do what I like with. Anything
    which is sent to me (whether intended or not) may, if I so
    desire, form a legal and binding contract.

  4. In article <[email hidden]>,

    Richard Bates said:

    But what about if I want to seamlessly include a WHOLE
    page - not just

    You can't do that with HTML without using a frameset. You
    can't meaningfully do it even with fancy server-side
    stuff (php or cgi could do it, but you'd need to strip
    the everything apart from what's inside the
    <BODY>...</BODY> section.

    Quoted message said:

    an image. What I meant was that I want the whole of the
    external page (actually an OS map from the OS site) to
    appear "in-line" on my own page without the user having to
    "click here" to see it.

    Frames. Sorry.

    ian

  5. In "]news:[email hidden],
    Ian G Batten <[email hidden]> typed:

    Quoted message said:

    In article <[email hidden]>,
    Richard Bates

    Quoted message said:

    But what about if I want to seamlessly include a WHOLE
    page - not just

    You can't do that with HTML without using a frameset. You
    can't meaningfully do it even with fancy server-side stuff
    (php or cgi could do it, but you'd need to strip the
    everything apart from what's inside the <BODY>...</BODY>
    section.

    Quoted message said:

    an image. What I meant was that I want the whole of the
    external page (actually an OS map from the OS site) to
    appear "in-line" on my own page without the user having
    to "click here" to see it.

    Frames. Sorry.

    Or iframes should do it without the overhead of frames, but
    only viewable on more recent computers. Sorry, I can't give
    examples, but you should be able to search on iframe and
    find out how.

    A

  6. On Wed, 17 Mar 2004 14:25:54 -0000, in
    <[email hidden]>, "Ambrose Nankivell"

    Quoted message said:

    Or iframes should do it without the overhead of frames, but
    only viewable on more recent computers. Sorry, I can't give
    examples, but you should be able to search on iframe and
    find out how.

    Looks like it might be suitable (both for the page design
    and my brain!).

    Thanks.

    --
    DISCLAIMER: My email box is private property.Email which
    appears in my inbox is mine to do what I like with. Anything
    which is sent to me (whether intended or not) may, if I so
    desire, form a legal and binding contract.

  7. Richard Bates said:

    But what about if I want to seamlessly include a WHOLE page - not just an image. What I meant was that I want the whole of the external page (actually an OS map from the OS site) to appear "in-line" on my own page without the user having to "click here" to see it.

    Several reasons why you shouldn't do that, even if you could.

    For a start, "hotlinking" to an image on another site steals the other site's bandwidth - probably won't matter too much if it's a personal site linking to a big commercial site like the OS, but still not The Done Thing. Besides, many sites, such as Hotmail, actually have measures in place to prevent hotlinking.

    Secondly, if the address of the image on the OS site changes or the page is removed, it will leave you with a broken link on your page.

    IMO, the best way to do what you want to do is to take a screen grab of the page on the OS site (press the 'print screen' button while looking at the page then paste the results into image editing software such as photoshop) and save it as a jpeg which you can then use on your own web page.

    The third reason why you shouldn't do any of the above is copyright, but that's between you and your conscience.

  8. Ambrose Nankivell said:

    Sorry, I can't give examples, but you should be able to search on iframe and


    find out how.

    This Webmonkey tutorial should help:
    http://tinyurl.com/26chy

    d.

  9. On Wed, 17 Mar 2004 15:17:05 GMT, in
    <[email hidden]>, davek

    Quoted message said:

    Several reasons why you shouldn't do that, even if
    you could.

    Quoted message said:

    For a start, "hotlinking" to an image on another site
    steals the other site's bandwidth - probably won't matter
    too much if it's a personal site linking to a big
    commercial site like the OS, but still not The Done Thing.
    Besides, many sites, such as Hotmail, actually have
    measures in place to prevent hotlinking.

    Yes. I had thought of that but had also incorrectly thought
    that OS allowed hotlinking. This doesn't cause me a problem
    though, as streetmap.co.uk do specifically allow hotlinking.
    The only downside is readers of my page will have to suffer
    a few adverts :-( Still you don't get anything for nothing
    in this world.

    Quoted message said:

    Secondly, if the address of the image on the OS site
    changes or the page is removed, it will leave you with a
    broken link on your page.

    I will be updating the webpage daily with a new URL to the
    OS^H^H streetmap site, so this shouldn't be an issue. I
    agree with you that if I wanted to display the same image
    day after day then it may be better to host the image on my
    own webspace (although again, in this case it is not allowed
    by streetmap (OS DO allow this).

    Quoted message said:

    The third reason why you shouldn't do any of the above is
    copyright, but that's between you and your conscience.

    And also between me and the OS/Streetmap terms and
    conditions publshed on their respective sites.

    Thanks for the reply.
    --
    DISCLAIMER: My email box is private property.Email which
    appears in my inbox is mine to do what I like with. Anything
    which is sent to me (whether intended or not) may, if I so
    desire, form a legal and binding contract.

  10. On Wed, 17 Mar 2004 12:32:11 +0000, in
    <[email hidden]>, Richard Bates
    <[email hidden]> wrote:

    Thanks to everyone who has replied. I think the final
    verdict is to go with frames or iframes and put up with the
    fact that it is out of context with the rest of the site.

    I can cope with an odd looking page for 6 weeks!

    Love and dot com from Rich x

    --
    DISCLAIMER: My email box is private property.Email which
    appears in my inbox is mine to do what I like with. Anything
    which is sent to me (whether intended or not) may, if I so
    desire, form a legal and binding contract.

  11. Simon Brooke said:

    Hotlinking is by definition not a breach of copyright. You
    don't make a copy, merely refer the user to the original,
    which is published by people who presumably do own the
    copyright.

    I remember a convoluted legal case involving two Scottish
    newspapers on this sort of thing. I don't recall the
    conclusion though...

    James

  12. On Thu, 18 Mar 2004 19:54:18 +0900, James Annan
    <[email hidden]> wrote (more or less):

    Quoted message said:
    Simon Brooke said:

    Hotlinking is by definition not a breach of copyright.
    You don't make a copy, merely refer the user to the
    original, which is published by people who presumably do
    own the copyright.

    I remember a convoluted legal case involving two Scottish
    newspapers on this sort of thing. I don't recall the
    conclusion though...

    Hotlinking in that case was declared an infringement of
    copyright. The hotlinking paper was ordered to desist.

    (The newspapers concerned were in Shetland.) Cheers, Euan
    Gawnsoft: gawnsoft.co.srgawnsoft.co.sr Symbian/Epoc wiki:
    html.dnsalias.nethtml.dnsalias.net Smalltalk links (harvested
    from comp.lang.smalltalk)
    html.dnsalias.netsmalltalk

  13. On Fri, 19 Mar 2004 01:58:42 +0000, Gawnsoft
    <[email hidden]> wrote (more or
    less):

    Quoted message said:

    On Thu, 18 Mar 2004 19:54:18 +0900, James Annan
    <[email hidden]> wrote (more or less):

    Quoted message said:
    Simon Brooke said:

    Hotlinking is by definition not a breach of copyright.
    You don't make a copy, merely refer the user to the
    original, which is published by people who presumably do
    own the copyright.

    I remember a convoluted legal case involving two Scottish
    newspapers on this sort of thing. I don't recall the
    conclusion though...

    Hotlinking in that case was declared an infringement of
    copyright. The hotlinking paper was ordered to desist.

    Though as a test case, it was never fully definitive - the
    court ruled against the hotlinker in an interim interdict,
    and the hotlinker then settled out of court before the
    events concluded.

    Cheers, Euan Gawnsoft: gawnsoft.co.srgawnsoft.co.sr
    Symbian/Epoc wiki: html.dnsalias.nethtml.dnsalias.net Smalltalk
    links (harvested from comp.lang.smalltalk)
    html.dnsalias.netsmalltalk

  14. Gawnsoft said:

    On Thu, 18 Mar 2004 19:54:18 +0900, James Annan
    <[email hidden]> wrote (more or less):

    Quoted message said:
    Simon Brooke said:

    Hotlinking is by definition not a breach of copyright.
    You don't make a copy, merely refer the user to the
    original, which is published by people who presumably do
    own the copyright.

    I remember a convoluted legal case involving two Scottish
    newspapers on this sort of thing. I don't recall the
    conclusion though...

    Hotlinking in that case was declared an infringement of
    copyright. The hotlinking paper was ordered to desist.

    The general rule that came out of it and similar cases was
    that linking other sites content into a frame and passing it
    off as your own was a breach of copyright.

    Linking with a normal link and going to their site or having
    it appear in a frame on your own but clearly displayed as
    external content was ok.
    --
    "We take these risks, not to escape from life, but to
    prevent life escaping from us." bensales.combensales.com

Active in the last 60 minutes

Active in this thread

0 users · 0 guests ·0 bots ·0 total

No signed-in users are active right now.

No known search crawlers active right now.