Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21

Thread: Click to call moves with page when it should be fixed.

  1. #11
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    The validator does not correct invalid code, it just points out where the errors are in order to allow you to correct them. But yes, you can only correct them if you understand the code you're using. That might be the issue here (?).

  2. #12
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    There was a box which you could tick to show you how to write it correctly.
    If you didn't tick the box then the screen would just show line error etc.

  3. #13
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Can't say I ever saw that option, although I did/do use the tick box for showing the source so that you can pinpoint errors more easily.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  4. #14
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

  5. #15
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    Correct.
    Isn't there now but it used to be.

  6. #16
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    I think you might be referring to the HTML Tidy option that is still available for the old HTML4/XML validator. It isn't included in the HTML5 validator - this explanation from the History section of the HTML Tidy website sheds some light as to why;
    In 2015 a group of concerned developers, users, and software integrators formed HTACG with the goal of revitalizing Tidy, which had fallen into a non-maintained state. As a W3C Community Group, HTACG was deemed worthy by the W3C, and W3C passed ownership of their project to HTACG, where it is currently being developed and prepped for a new, stable, and modern release.
    So a version for "modern code" has passed ownership and is currently in development. Maybe it will be (re)integrated into the W3C validator for HTML5 sometime in the future. In the meantime, there are other online tidy-up services for HTML5 so hit Google to find one you like.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  7. #17
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there theremotedr,

    this...
    Code:
    
    </body>
    </html>
    <div class="callme">
    <a href="tel:07899827427"><img src="http://www.theremotedoctor.co.uk/m-images/dr-phone-logo.png" width="750" height="80" ></a>
    </div>
    ...should be...
    Code:
    
    <div class="callme">
    <a href="tel:07899827427"><img src="http://www.theremotedoctor.co.uk/m-images/dr-phone-logo.png" alt=""></a>
    </div>
    </body>
    </html>
    ...and this...
    Code:
    
    @media screen and (min-width:300px){
    	@media screen and (max-width:1024px){
    	.callme {
    	display:block;
    	background: #0099ff;
    	border-top:2px solid #FFFFFF;
    	padding: 2px;
    	height:80px; 
    	position:fixed; 
        right: 1px;
        left: 1px;
    	bottom:-5px;
    	text-align:center;
        center 5px:
    	no-repeat #0099ff;
    	text-decoration:none;
    	}
    ...should be...
    Code:
    
    @media screen and (max-width:300px){
    .callme {
        display:block;
        background:#09f;
        border-top:2px solid #fff;
        padding:2px;
        position:fixed; 
        right:1px;
        left:1px;
        bottom:0;
      }
     }
    ...and this...
    Code:
    
    <a href="tel:07899827427">
    ...I don't know what it should be, but it is obviously not an href.

    coothead
    ~ the original bald headed old fart ~

  8. #18
    Join Date
    Nov 2014
    Location
    On A Scottish Island
    Posts
    488
    Thanks
    0
    Thanked 62 Times in 58 Posts

    Default

    ... and, despite all the previous posts I have made on this, your page still contains two calls to different jQuery libraries! One on line 33 and one on line 319.

    You really need to decide which jQuery library you actually want to use and delete the other call.

  9. #19
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    I now have it working with a bit of help from you all.
    Beverleyh,iI will look at that later.

    Styxlawyer,As the site is working how i would like it i dont wish to delete the jQuery you mention.
    1, Because i dont know which one to delete.
    2, Site is working ok with both there.
    3, Dont wish to rectify a fault not knowing where to start.
    I know this is the wrong approach but its working so i would like to leave it how it is.

    Coothead, I used a little of the code you advise nut no all of it.
    I dont wish to see the blue phone call me bar on the pc only phones / tablets.
    The a href you mention is my contact number.
    When the call me is clicked my phone number is then called.
    I didnt know another way for it to work, also hence why i dont want the call me to be shown on the pc and it wont phone me.

    Thanks for all the help.

  10. #20
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    FYI - There's a problem with the syntax of your phone number
    Code:
    <a href="tel:07899827427">
    All web pages are international so it should start with the county code dialling prefix, minus leading zeros. For the UK that's +44
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

Similar Threads

  1. Replies: 3
    Last Post: 09-25-2010, 12:38 AM
  2. open new page plus call function
    By sketch in forum JavaScript
    Replies: 12
    Last Post: 08-01-2010, 10:06 AM
  3. Call AJAX anchored page from php
    By cyberjorge in forum Dynamic Drive scripts help
    Replies: 5
    Last Post: 10-15-2008, 02:40 AM
  4. Replies: 3
    Last Post: 01-28-2008, 07:42 AM
  5. Call the Iframe from external page?
    By psilos in forum Dynamic Drive scripts help
    Replies: 11
    Last Post: 04-14-2007, 12:07 PM

Bookmarks

Posting Permissions

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