Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts

    Exclamation Personne ne sait! - how to put a caption under a picture with JScript.

    I have been trying for several days now to append a text caption to a displayed image using Javascript, but with no real success. Perhaps JS is not the best way. Has anyone a suggestion as to the best way to tackle this.

    I want to replace the image captions with text ones to help speed up the site. It is my home site here.

    A modification of the existing code seems obvious, but I have been unable to do this. Any help gratefully received.

    Frank
    Last edited by effpeetee; 06-09-2010 at 08:37 PM.
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Why would you post your question here? We have a javascript forum too...
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    Quote Originally Posted by _Aerospace_Eng_ View Post
    Why would you post your question here? We have a javascript forum too...
    That is exactly where I have posted it. I thought perhaps there might be more response if I threw it open. Sorry to offend.

    Frank
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • #4
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Moving from comp issues to JavaScript forum.
    OracleGuy

  • #5
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    Perhaps JS is not the best way. Has anyone a suggestion as to the best way to tackle this.
    This was why I put it where I did. I wondered whether there was another way to do this, not necessarily with Javascript.

    Why do people get so up tight with such minor matters. Most coders visit all the forums. Perhaps I should stand in the corner with my dunces cap on.

    Frank
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • #6
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Without a page refresh javascript is the way to do it. You could use ajax but this gets a bit more complex. How are you doing it now? It seems to be working fine.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #7
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    Hello Aero.

    I am using a javascript offering from a post. I'm trying to find the original post. I think he was just called MR J but I'm not sure.
    I had to modify it a little. (my 'suck it and see' approach I'm afraid.)

    EDIT: Here it is. I just found it.

    It seems OK to me although one poster says it is not very flexible.

    Frank
    Last edited by effpeetee; 06-10-2010 at 08:53 AM.
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •