User Profile

Collapse

Profile Sidebar

Collapse
tur130
tur130
Last Activity: Aug 10 '10, 11:33 AM
Joined: Jul 21 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • tur130
    replied to How to make an <area visible ?
    Arrrh...

    A search shows this one has puzzled seasoned web developers.

    I thought I'd float some box images with transparent centers over my map to show where the hot spots are. Visually it looked like it would work but the floating image masked the clickable hot spot - D'oh!

    This is my solution so far - very ugly both as code and on the renderd page:

    Code:
    <div id="box1" onmouseover='document.getElementById("box1").style.visibility
    ...
    See more | Go to post

    Leave a comment:


  • tur130
    started a topic How to make an <area visible ?

    How to make an <area visible ?

    On a page using several <area> regions over an <img>, how can you make the <area> regions visible on the rendered web page?

    The <area> tag apparently supports the style attribute, but I can't find any information on how to use it.

    I've tried in line styles e.g.

    <area style="border:5 px solid red;" ...

    But they don't show up on the web page.
    ...
    See more | Go to post

  • You guys are very responsive and know your stuff - cheers.
    See more | Go to post

    Leave a comment:


  • D'oh!

    Thanks for answering.
    See more | Go to post

    Leave a comment:


  • Can you help me understand this...

    http://en.wikipedia.org/wiki/XMLHttpRequest

    Follow the link for 'Head' to...

    http://en.wikipedia.org/wiki/Hyperte...equest_methods

    Look at the description of options, it says...

    "OPTIONS
    Returns the HTTP methods that the server supports for specified URL. This can be used to check the functionality of a web server...
    See more | Go to post

    Leave a comment:


  • I'll bow to your experience here.

    That said I've seen some clever tricks with CSS that make it 'look' like some script is at work where in fact there isn't. I guess my point is that a solution can come from an unexpected angle and posting in a particular technology board kind of implies that you want the solution to use that particular technology.

    Perhaps there should be a technology agnostic question board? Where you...
    See more | Go to post

    Leave a comment:


  • Can JavaScript list files at a domain that it is permitted to see?

    I have a whole bunch of files called xxx_Page1.htm at a domain, where xxx is a type of animal. I have a script that iterates through a known list of animals setting MyVar for each one. The following line works just fine at bringing these files on to a web page inside MyDiv:

    document.getEle mentById('MyDiv ').innerHTML = "<iframe src='"+MyVar+"_ Page1.htm'></iframe>";

    However the the files...
    See more | Go to post

  • Reason - I don't have any control over the web server. I can only put content up there.
    See more | Go to post

    Leave a comment:


  • Will try harder to get the right board next time.

    That said my requirement is actually javascript agnostic. If there is a way to do this without javascript that would be even better....
    See more | Go to post

    Leave a comment:


  • Solved it - for future ref posting here...

    Code:
    <div id="MyDiv">This Text gets replaced with the appropriate animal_Page1.htm file based on the file name of this file</div>  
                   
    <script>
    function getPage1() {
    var Animal = getFileNameAnimal();
    document.getElementById('MyDiv').innerHTML = "<iframe src='"+Animal+"_Page1.htm'></iframe>";
    ...
    See more | Go to post

    Leave a comment:


  • Ok I got this far on my own...

    Code:
    function getFileNameAnimal() {
    //this gets the full url
    var url = document.location.href;
    //this removes the url end after "_"
    url = url.substring(0, (url.indexOf("_") == -1) ? url.length : url.indexOf("_"));
    //this removes everything before the last slash in the path
    url = url.substring(url.lastIndexOf("/") + 1, url.length);
    ...
    See more | Go to post

    Leave a comment:


  • How to use the file name of a web page inside the code?

    The following code is in a file called Dog_features.ht m

    Code:
    document.getElementById('MyDiv').innerHTML = "<iframe src='Dog_Page1.htm'></iframe>";
    Is there a way to replace the word Dog in the code with a variable which resolves to the first word in the page's file name? e.g.

    Code:
    document.getElementById('MyDiv').innerHTML = "<iframe src='Animal_Page1.htm'></iframe>";
    ...
    See more | Go to post

  • Thanks for response. The files are from the same domain.

    Frames are not working for me since the user needs to be able to right click and print the whole concatenated document. With frames they can only print the frame where the cursor is.

    This seems such an obvious oversight of HTML - does any know if it will be easy in HTML v5?

    e.g. have say an <include> tag which simply pulls the body or named ID...
    See more | Go to post

    Leave a comment:


  • How to concatenate web pages - client side only ?

    I want to create a web site with multiple pages that one can think of as sections to a large document. What I also want is a web page that is simply the concatenation of the other web pages. (I want more than one actually differing only by the order in which the concatenation is done)

    I know you can do this with server based code – but it ought to be possible to do this just using a browser that can ‘see’ the separate files that...
    See more | Go to post

  • tur130
    replied to Can an external css contain text?
    Mariko - looks like you are sorted - I'll re-post my requirement as a separate thread.
    See more | Go to post

    Leave a comment:


  • tur130
    replied to Can an external css contain text?
    I have a requirement that may be solved by the answer to this thread - so will follow here before posting separately.

    I want to create a web site with multiple pages that one can think of as sections to a large document. What I also want is a web page that is simply the concatenation of the other web pages. (I may want more than one actually differing only by the order in which the concatenation is done)

    I know you can...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...