Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by dsonesuk

  1. dsonesuk

    iFrame to PDF

    I think you have to deal with focusing on iframe content, then back to main frame for button to work properly, i had similar problem long ago with clicking for printing content of pop-up iframe.
  2. dsonesuk

    function call not executing

    So you thought us being so magnificent, we would magically know that! This is what i mean about giving only partial code! You being a copy and paste person, we naturally thought, you copied part but not all of the code from somewhere. GIVE ALL CODE RELEVANT to the problem, JAVASCRIPT and HTML.
  3. dsonesuk

    function call not executing

    random(255)? where is this function? if you mean JavaScript random() method, and if you actually looked up this method you would find it does not work like that! https://www.w3schools.com/jsref/jsref_random.asp
  4. dsonesuk

    A drop down menu

    Its called a mega-menu https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_mega_menu_responsive
  5. dsonesuk

    header info query

    IF its by website host, it maybe locked for security reasons to Off. According to php.net it is listed as PHP_INI_SYSTEM and changing of settings may be set by PHP_INI_SYSTEM Entry can be set in php.ini or httpd.conf .htaccess is not listed for PHP_INI_SYSTEM http://php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen http://php.net/manual/en/configuration.changes.modes.php
  6. dsonesuk

    upload the same specific file every day

    Then it IS uploading. You will always have to select the file from O/S to upload to the website server as you can't predefine the filename value for security reasons. You could use a local server to ftp the file directly to website directory https://www.w3schools.com/php/func_ftp_put.asp Then process for adding to database on website server.
  7. dsonesuk

    upload the same specific file every day

    IF your not uploading, why use move_upload_file()? why not copy() or rename(). http://php.net/copy
  8. dsonesuk

    function call not executing

    Well its best to learn the basics as JavaScript runs on events, and the arguments/parameter of functions, these are not there for show! They have a purpose of transferring info to the function which is used to carry out specific action within that function, so YOU need to understand there purpose, else people will get tired of doing the work for you, if you are not prepared to learn it yourself! You will comply! Spoon feeding with copy and paste code, is not! a option.
  9. dsonesuk

    function call not executing

    The event was initially used for inline onclick event of button element to show specific element with matching Id to cityname argument (see link in first post), but now used in a missmash of functions instead, hoping it will still work.
  10. dsonesuk

    MySQL change column

    ALTER TABLE tablename ADD UNIQUE (Image); Should be enough, where 'tablename' is the name of the table with 'Image' column in it.
  11. dsonesuk

    header info query

    You need to allow 'allow_url_fopen' in php.ini ,if you can, if not curl is the best alternative; allow_url_fopen = On IF the display errors was enabled you should have seen get_headers(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0
  12. dsonesuk

    function call not executing

    I'm guessing here, as you never ever produce relevant code. That you don't have a element with a id reference that matches the function call argument.
  13. dsonesuk

    Image sprite best practices

    You would never use for large images, it would just be to large, imagine trying to load an sprite image like that on a smaller mobile device, and generally they are used for background images, you would use the img tag in those situations. Remember you would have to set the width and height to accommodate each specific sprite background image to view, whereas using the img tag will give you that automatically.
  14. dsonesuk

    Closing a modal box

    When clicked the link with '#ido1' acts as a bookmark to take you to the element with id 'id01', this becomes targetted . The 'modal' class styles the same element with 'id01' id, by default to display: none; but when it is targetted .modal:target takes precedence and changes from display: none; which makes it hidden, to display: table; which shows the modal. Clicking the modal close link with href="#", causes it to lose focus, and therefore no longer targeted, meaning it will return to default state style of display: none;.
  15. dsonesuk

    background-position: negative value

    It uses ones single image to contain all images, the container is width 43px, you use -47px or -91px, to move the whole background left! To bring a specific portion of the background image into view and centre it.
  16. dsonesuk

    getting dynamic data for one tab only

    Since I don't know how your server would work to return as a JSON, or any other alternative method, I can't help.
  17. dsonesuk

    getting dynamic data for one tab only

    Ideally it should sent as json object with name and value for each, then its just a matter assigning the value using key name to a specific area, using a identifier.
  18. dsonesuk

    Problem with Photo Image Layout

    Looking at it again! You don't have bootstrap.css but do have class names associated with it? Class names are with the w3css example 'w3-half' as used with <div class="w3-half"> <img src="/w3images/underwater.jpg" style="width:100%"> <img src="/w3images/ocean.jpg" style="width:100%"> <img src="/w3images/wedding.jpg" style="width:100%"> <img src="/w3images/mountainskies.jpg" style="width:100%"> <img src="/w3images/rocks.jpg" style="width:100%"> <img src="/w3images/underwater.jpg" style="width:100%"> </div> Just pasting this into your page, won't do anything! As specific styling does not exist that is associated with that class name, that is why you require the w3.css file <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css"> This will contain styling properties such as .w3-row-padding, .w3-row-padding > .w3-half, .w3-row-padding > .w3-third, .w3-row-padding > .w3-twothird, .w3-row-padding > .w3-threequarter, .w3-row-padding > .w3-quarter, .w3-row-padding > .w3-col { padding: 0 8px; } .w3-col.m6, .w3-half { width: 50%; } .w3-col, .w3-half, .w3-third, .w3-twothird, .w3-threequarter, .w3-quarter { float: left; width: 100%; } To style the element using this class name correctly creating a container column of 50% width, with images, you then create a second column of images to sit beside it. Note: You have to be aware using w3css may also cause conflict with some of your present css used.
  19. dsonesuk

    getting dynamic data for one tab only

    The questions is! can you retrieve ALL the names and values in one call? combined. If you can achieve that you are on your way to the answer.
  20. dsonesuk

    Problem with Photo Image Layout

    That example uses w3css? yours uses bootstrap, if you don't have link to w3.css and classes that w3css uses to style that layout it will never work.
  21. dsonesuk

    checkbox and paginate page

    A value is set/stored and retrieved using JavaScript https://www.w3schools.com/jsref/prop_win_sessionstorage.asp
  22. dsonesuk

    font size 62%

    Well It would have it being more stupider to show the wrong! values even after reading the link, so because you being as stupid is as stupid does I thought I would point out the parts you did not follow, so others would not become confused, when the result showed different to what you had stated. I thought you might have got your rem and em mixed, and just pointed what it should be with what you gave. I just can't imagine you being that stupid that you didn't realise H# header tags have by default font-weight of approx 700, so yes! there will be a difference between it and text in a paragraph for example. em size relative to closest parent element font-size: rem size relative to root parent element (<html>...</html>) font-size:
  23. dsonesuk

    Hover Tabs

    Common sense prevails and sufficient data provided, answer: https://www.w3schools.com/code/tryit.asp?filename=FWXE9RM8R2B6 Apology accepted.
  24. dsonesuk

    Hover Tabs

    Insufficient data to return answer. No access to "hover tabs" . No access to code of any type. Mind reader is not ability of this unit, puny minded human.
  25. dsonesuk

    onclick disabled button

    You just need to define the logged in users name and password to individual variables, then use those in the alert.