Jump to content

johncc

Members
  • Posts

    29
  • Joined

  • Last visited

Everything posted by johncc

  1. I have used this free script http://www.rlaj.com/cgi-bin/download/freedownload.cgi?RegDownload&password&Password for that purpose.
  2. I agree that a server side script is the way to go. I have used this simple Perl one to "to redirect each user to a specific page". http://www.rlaj.com/cgi-bin/download/freedownload.cgi?RegDownload&passredir&Passwd+Redirect
  3. I agree that PHP is the way to go. Generate a page containing only the selected images using PHP.
  4. It is not like any table that I have used but Dave's suggestion does work. <html><head><style>#confirm { color:red;}</style></head><body><th><form id="confirmation" name="myFormAll" method="post" action="confirm.php"> <input type="number" id="amount" name="amount" style="width:100px;" required min="0" /></th><th> <input type="submit" value="Confirm" id="confirm" /></form></th></body></html>
  5. f and t are strings and so don't have a ".value".
  6. It is probably not the whole answer but side should be display:inline and try using dragon.png as an <img> within the side div.
  7. Booting - bootstrap loader - refers to the colloquial expression of "dragging something up by it's bootstraps" = using something small to achieve a bigger result. A small segment of code is stored in ROM, performs basic initialization and loads a larger piece of code from external storage to complete the startup process.
  8. If you want to use php for validation, you will need to load separate code as the embedded php will only be executed when the page loads.
  9. Are you expecting to access an array category[], because category[] is just your checkbox name. What are you applying .serializeArray() to?
  10. Another version. Uses an alert instead of "warning" div and has no submit button. Note that to change the visibility of an element it needs to have an id, so the <p> in your code should have id="warning" not the enclosing div. Is it necessary to allow wrong guesses? If not then a select dropdown would be a better option. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><script type="text/javascript">var validFiles = ["tree", "chocolate", "bird", "candle", "apple"];function processWord() { var theWord = inputForm.elements["TypeWord"].value; if (validFiles.indexOf(theWord) == -1) { alert("Oops, wrong word, please try again."); } else { var newWindow = window.open(theWord + ".php"); }}</script></head><body><div id="main"> <form name="inputForm"> <ul> <li><input class="inputbox" type="text" name="TypeWord" value="" onchange="processWord()" placeholder="Type a word here"/></li> </ul> </form></div></body></html>
  11. What it probably requires is to establish what the variable is named and assign it to an appropriate innerHTML..
  12. If the code is manually added to the Shopify pages then it should not be too difficult, but we probably need to see more of the existing pages.
  13. The way to fix this would be to get the Shopify login for your site and edit your site through their editing capabilities.
  14. You seem to have assumed (without doing the suggested research) that JSON is another programming language. It is nothing more that a way of converting data to and from a string representation and is exactly what you need.
  15. I don't think that you can manage the blog in that detail. Google (blogger.com) look after those details. The area that you indicated is where your next blog will appear.
  16. Seems to be reasonably set up for SEO. I don't think that span has any advantage. What about some adding some meta keywords.
  17. An image of wordprocessor text of what you want to achieve would help give an answer.
  18. 0%5==0 and 5%5==0, so 2 increments missed. i x 0 0 1 1 2 2 3 3 4 4 5 4 6 5 7 6 8 7 9 8
  19. johncc

    EVAL() JSON

    The TEST DIV needs some content in innerHTML. In your code it has height 0px Not sure why, but the eval parameter without the quotes works as expected. <!DOCTYPE html><html><body><div id = "TEST" style="width:100%;height:100%;">TEST</div><script> var x = eval(function(){document.getElementById('TEST').style.background = 'red';}); x();</script></body></html>
  20. Not exactly clear about what you want to achieve, but in your check function instead of setting 'result', can't you just insert the recurring or non-recurring code (or a call to it) as appropriate. Edit: It occurred to me after answering with the sentence above that you may want another button, the action of which is altered depending on the setting of the checkbox. Is that correct?
  21. Yes. And the Save/Discard buttons are probably supposed to be in the Action cell of the input line
  22. Do you have <html><body></body><html> tags around that code?
  23. I assume there is a typo. My KeyT is indeed a select input with id="keyType">" document.getElementsByTagName("option") returns an alphabetically sorted (by value) collection of all (6) of the objects of type option on the page. ie C, D, E, F, major, minor. Your values of KeyT and KeyN will index into that collection. Since your KeyT can only have values of 0 or 1, it will always return either C or D not the expected minor or major. Maybe I can make it clearer by including an extra line in my getType. function getType() { var keyT = document.getElementById("keyType"); // the select object var tIndex = keyT.selectedIndex; // the index of the selected option alert(keyT[tIndex].value); // the value of the selected option}
  24. To align the headings with the corresponding inputs, include them in the TD's of another table row. And I would agree that there seem to be a few surplus divs in there. Your index input is constrained to be "number". Make it "text" if you want it as described. EDIT. I see, on further inspection that your Contacts object adds table rows to the end of the table, so if you adopted my suggestion, you would be adding after the data entry row.
  25. The individual option lists are separately accessible. Try these for your functions function getKey() { var keyN = document.getElementById("keyName"); alert(keyN[keyN.selectedIndex].value);}function getType() { var keyT = document.getElementById("keyType"); alert(keyT[keyT.selectedIndex].value);}
×
×
  • Create New...