-
Cannot access form input after sending
Ok the issue has been dealt with now It turned out to be a bug in the CSS positioning. Changing the positioning type dealt with it. Many thanks for the z-index suggestion, but it turned out a few other changes were necessary anyway!
-
Cannot access form input after sending
I am very new to PHP, and just starting to find my feet with it, so bear with me if I am missing something fundamental here. I have created a very simple system to display a quote for a course of English lessons. The form is embedded into the page in a series of <select>options, and on submit sends to itself (PHP $_SERVER['PHP_SELF']). This then loads the page again, with the resulting quote displayed alongside the calculator so that the customer can get another quote if desired. During testing, this worked without problems. However, once uploaded as part of the website, it works fine for one input, and on reload the <select> options are unavailable except by using TAB. The strange part of this is that this issue only occurs on Firefox and Google Chrome running under Windows XP (replicated on multiple computers). On Vista, all browsers work as intended. Live example: http://www.longshadow.pl/en/teaching.php I have tried uploading just the form, which strangely, works as a stand-alone. It can be found here: http://www.longshadow.info/form.php If anyone can suggest a reason for this, please do! It's starting to drive me crazy!
-
Javascript Issues
Time for me to check out Firebug then! I wasn't expecting server software to fix the problems, just been searching for a solution to the issue, and I finally seem to have found one. There isnt any need for the curlies, it's just that the coding came from an example showing Javascript statement blocks
-
Javascript Issues
OK, changing that appears to have done the trick, so to answer my own question, yes I was being as thick as the proverbial plank. Many thanks
-
Javascript Issues
OK, help is becoming even more necessary. Adding MooTools as an external .js appeared to solve the issue, but today that has no effect. Even the most simple example (copied and pasted directly from w3schools.com) simply gives a blank page. One of the example scripts that I copied and pasted, then saved as a .html is below. <html> <head> <title>JavaScript Basics</title> <noscript> You have JavaScript disabled </noscript> <script type="text/javascript" src="mootools-1.2-core.js" /> </head> <body> <script type="text/javascript"> { document.write("<h1>This is a header</h1>"); document.write("<p>This is a paragraph</p>"); document.write("<p>This is another paragraph</p>"); } </script> </body> </html> Now can somebody please tell me, am I just being thick as the proverbial plank, and what I can do to get this to display anything other than a totally blank page. Even the <noscript> text fails to appear, so I know that JS is active, but why doesn't it DO anything? Please answer before my computer gets a flying lesson
-
Javascript Issues
Notepad++ is my favoured editor as well. I've found it immeasurably helpful, and I totally agree with you about looking online for info and instructions then trying them. Having looked at various other software packages, including Dreamweaver, I decided I prefer the Notepad++ interface, and the fact that it doesn't cost nearly £300! Reason I mentioned that was because I have no problems running online pages containing Javascript, although admittedly I haven't actually tried hosting a page of my own script to try and run it.
-
Javascript Issues
I'm well aware that a server shouldn't be necessary to run Javascript, but I'm also about to start learning PHP and MySQL, which does require a server. I will get the Firefox extension and try it, but that won't do a lot for IE or Opera. Adding the MooTools JS framework as an external .js seems to get the code working, so I'll run with that as a solution for the moment unless someone comes up with another. XAMPP is now ready to be installed as soon as I get back to my working computer, should make life a bit easier
-
Javascript Issues
Yeah I am intending to, I simply haven't had a chance around other work commitments. I have the installer for Apache 2.2.11, hopefully installing that and configuring it should help
-
Javascript Issues
Update: adding MooTools 1.2 as an external .js solves this issue, but I'm still wondering if there's any other solution to this problem, and if it's one that anybody else has run into. Extra info: this problem has occurred with me on both XP Pro and Vista Home Premium (different computers) Gal
-
Javascript Issues
I know that this is probably a problem with a very simple solution, but I've been unable to find one. I have a fair amount of experience building static sites in XHTML and CSS, and am attempting to move into dynamic sites, beginning by learning Javascript. Whereas with a static site you can simply run the file from the hard drive of your development computer, if I do so with a file containing Javascript, the HTML displays, and the Javascript is totally inactive. Adding a <noscript> line to check if that is the problem failed to resolve it, as every setting is set to allow Javascript to run, in all 3 browsers I've tried (IE, Firefox, Opera). The only exception is IE, which throws up a security warning at first, but if you allow it, the <noscript> line disappears, but the script is still inactive. While I do have access to online servers, it would be a lot easier and faster, certainly in the learning stage, if I can run the files for testing through the file:///C:/~ route. Any suggestions on how to resolve this? Gal