johncc
Members-
Posts
29 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by johncc
-
I have used this free script http://www.rlaj.com/cgi-bin/download/freedownload.cgi?RegDownload&password&Password for that purpose.
-
need help with a simple single field javascript login form
johncc replied to Mcjohnes's topic in HTML/XHTML
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 replies
-
- 1
-
- html
- javascript
-
(and 2 more)
Tagged with:
-
I agree that PHP is the way to go. Generate a page containing only the selected images using PHP.
- 3 replies
-
- html
- conditional
-
(and 1 more)
Tagged with:
-
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>
-
f and t are strings and so don't have a ".value".
-
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.
-
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.
-
Value in Input Field Show in Source Code but Not on Screen
johncc replied to buckibooster's topic in HTML/XHTML
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. -
Are you expecting to access an array category[], because category[] is just your checkbox name. What are you applying .serializeArray() to?
-
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>
- 6 replies
-
- 1
-
- javascript
- form
-
(and 3 more)
Tagged with:
-
What it probably requires is to establish what the variable is named and assign it to an appropriate innerHTML..
-
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.
-
The way to fix this would be to get the Shopify login for your site and edit your site through their editing capabilities.
-
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.
-
Where to add the code to make it appear in the place highlighted below ?
johncc replied to pcgameslab's topic in HTML/XHTML
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. -
Seems to be reasonably set up for SEO. I don't think that span has any advantage. What about some adding some meta keywords.
-
An image of wordprocessor text of what you want to achieve would help give an answer.
-
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
-
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>
-
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?
- 3 replies
-
- HTML
- JavaScript
-
(and 1 more)
Tagged with:
-
Yes. And the Save/Discard buttons are probably supposed to be in the Action cell of the input line
- 9 replies
-
- localstorage
- forms
-
(and 3 more)
Tagged with:
-
Do you have <html><body></body><html> tags around that code?
-
How do I display selections from multiple dropdown menus
johncc replied to stevemessenger's topic in HTML/XHTML
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}- 3 replies
-
- javascript
- dropdown
-
(and 2 more)
Tagged with:
-
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.
- 9 replies
-
- localstorage
- forms
-
(and 3 more)
Tagged with:
-
How do I display selections from multiple dropdown menus
johncc replied to stevemessenger's topic in HTML/XHTML
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);}- 3 replies
-
- javascript
- dropdown
-
(and 2 more)
Tagged with: