Jump to content

jeffman

Members
  • Posts

    7,761
  • Joined

  • Last visited

Everything posted by jeffman

  1. The most user-friendly authentication get run through is the one where they send an email to my address and I have to reply. Usually that just means clicking on a link in my email app. I'm not aware of any SMS providers that don't have an email gateway (e.g., 1234567890@vzwpix.com), so that would be pretty easy. But of course not everyone has SMS. The phone robot sounds expensive.
  2. Do the images already exist, or do you create the images in PHP using sqlite data?
  3. AJAX is for communicating, not graphics. Do you mean the canvas element?
  4. :after does nothing unless you give it some content -- even if it's empty. For this application, you need to change the display property also. So add these two lines: content:"";display:inline-block;
  5. Assuming this is correctly nested in a frameset, just add a name property: <frame src="Main.htm" noresize="noresize" name="main">
  6. 1. I would need to know a lot more information before I could recommend the best one.2. Even describing without explanation takes a while.3. I assumed this thread would be done after Post #24. I presume wowowlop1 is an adult who can ask what he/she wants to know
  7. I assumed you would realize that my onclick code was meant to replace your onclick code, not the entire button tag. The button I hoped you would create would look like this: <button onclick="window.parent.frames['main'].location.href='Main.htm'">Home</button>
  8. Can you provide a live link to this page? If not, post the code?
  9. That is the question I answered. Have you tried it? If it didn't work, can you explain how it didn't work?
  10. Well, both of those should work. Do you have a live link to the page? Failing that, you may need to post more code.
  11. I notice some typos here. If this is true copy/paste, that may be your problem. If not, maybe not, but I figured we should know about that first. pcode = document.getElementById('postode')postocde =pcode.value
  12. Then rephrase your question.
  13. You can use .htaccess to deny http access to a whole directory. PHP would still have system access, such as include.
  14. 1. Let's be clear. Frames are a 1990s dinosaur and no sane person uses them. There are better ways to achieve the same effect. Please, please look into it. 2. A frame is essentially a window object. Any reference to "window" that you grab inside a frame refers to the frame itself. What you want is a reference to the other frame. The code for that is ugly. 3. In the document where you define the frameset, give the frame a name. Not an id. A name. For this lesson, let's call it "main". From any other frame, your code looks like this: onclick="window.parent.frames['main'].location.href='Main.htm'" If you're using iFrames, it might be a little different. I don't remember exactly. I live in the 21st century.
  15. For each td element, all the text is stored in the "0th" childnode. As soon as you tried to access childNodes[1].nodeValue, the code broke, because there is no "1st" childNode.
  16. All form elements have a value property. For a text input, the value property contains the user text. All HTML elements have an innerHTML property. You can assign a plain text string or a string containing HTML to this property, and it will become part of the element. Some purists don't like to use this, but it requires very little code and is backward compatible with older browsers.
  17. Yeah. If you're serious about this, use DOMDocument. It sounds like you know what you're doing anyway.
  18. I think you'll be happier treating your xml as a DOMDocument or SimpleXML object instead of a string. Then you could use x-path to target the kind of nodes you want based on their attributes -- it looks like the one you want has unique attributes, anyway -e.g., table, order.
  19. To be fair, it is somewhat processor intensive to parse all .html files for PHP when the majority probably don't contain any PHP. I keep my server that way also.
  20. Looks like you need to change the value of on somewhere, or it will always = 1
  21. JSG is justsomeguy. No one likes typing all that. Some people call me DD. Same reason. There is no special meaning to ajax=1 or any other query string. It is not part of the HTML rules or the jQuery API. The word "ajax" in a query string is an example of a variable name chosen by the developer. Instead of "ajax=1" the developer could have written "w3schoon=1". For the same reason, there is no special meaning to "1" or "2" or "3" . . . It's just an example. YOU are the developer. You choose the data you want to send to your server in a query string. You also program a script on your server to understand what that data means.
  22. When I view source, I see the PHP code. Either PHP is not available or enabled, or more likely it is not configured to parse html documents as php. Try changing the file extensions to .php
  23. Your first post said it was a textarea. A text input behaves exactly the way you describe. If you want wrapping, you want a textarea.
  24. When you change node values, you change the document object, which is not a real document. To change an actual document, you would need to stringify the xml and post it to your server; a script there would save it as a file. That's actually quite easy. But you'd also want to add things like security and validation.
×
×
  • Create New...