Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About AlexC

  • Rank
  1. Thanks for everyone's suggestions, but I'm giving up on this for the present. I've tried numerous variations in my code and nothing seems to work. When I have cut and pasted my very basic code into the W3schools 'try it' pages (which I used as the basis in the first place), sometimes it works and sometimes it doesn't. It would have been nice if it worked, but plenty of other things to do.
  2. Haven't tried your latest suggestion with the JavaScript, but did try a simple window.open. Nothing happened. So went back to the simple 'try it' examples in W3Schools and substituted my link - all OK. The difference to the W3S example is that I am trying to activate the link from a list item in a drop down menu and the W3S example is via a button. So either this is not possible or my construct is way off, First tried, <li><a onclick="NewWindow()">Test LINK</a><li> having just substituted the onclick for the original href and having put the href link into t
  3. Yes, easy of use is the problem. For the post 60 generation, with which I am dealing, when information disappears there is a tendency to think that it is not available rather than not visible. The current modes of operation used on the web are not obvious to a lot of older people and as soon as they manage to learn some they have a habit of changing. Currently they click on a link to create a working page, which has to run on a different server, and loads in a new tab. When wanting to return to the original page, they seem to use the tab OK, but when trying to get back to the working page
  4. OK, but quite few websites force the creation of new windows, so is this via java script?
  5. Using target="_blank" in <a>..</a> nominally opens a new window. In browsers with a tab facility however it usually opens a new tab. You can usually pick up a tab and move outside the browser window to create a completely new window, but how do you force a completely new window rather than just a new tab f romthe start? I haven't come up with search criteria that give me anything other than target="_blank". Thanks
  6. Thanks, that's a useful piece of information; I had a assumed that the looking at the source code was looking at the current state of the page.
  7. Although I have been using HTML since 1997 to build web pages, I only started to build a 'modern' website with server and browser scripting and databases at the start of 2013 and have been finding W3schools extremely useful in starting to learn Javascript, PHP, CSS, etc. I have had a very steep learning curve in terms of security and got caught out by an add on which I didn't know I had downloaded until I used a screen recorder to experiment with making a tutorial video. I started the recording session fine by selecting the window I wanted to record - the home page of a website - and then su
  8. AlexC

    mysqli_query problem

    Thanks, that looks like a very useful tip.
  9. AlexC

    mysqli_query problem

    That's part of the problem - I'm not seeing any error returns at all. I see one echo, with the sqli_error, after the problem query statement and that's it. As far as I can see there is still a lot of valid HTML output that should come out on further echoes but if you view the source code in the browser there is just nothing else after the sqli_error echo, not even the closing Body and HTML tags.
  10. AlexC

    mysqli_query problem

    Tried adding mysqli_error() and could not get any errors reported. I did add some code to simulate a successful query and the other three queries in the code worked fine. So I tried pasting in one of the $result = mysqli_query($dbAcon,$query) statements that worked for the other queries with no progress. The query causing the problem did have a join in it, but as I said, had been working fine. I was going to split the query to take out the join for other reasons, so I thought I'd try that as I was planning to run a demo on Tuesday and it is now working. I then did a quick survey of my oth
  11. AlexC

    mysqli_query problem

    As the query works fine in phpMyAdmin or MySQL workbench, I am assuming at present it is a php problem. I have the following code being used to uniquely identify a person from a form entry, if (mysqli_connect_errno($condb)) { echo 'Failed to connect to MySQL: ' . mysqli_connect_error(); } else {echo 'connected';} //****debug 1 $firstname = preg_replace('/[^a-zA-Zs]/', '', $_POST['idfirstname'] ); $lastname = preg_replace('/[^a-zA-Zs]/', '', $_POST['idlastname'] ); $streetno = preg_replace('/[^0-9s]/', '', $_POST['idhouseno'] ); $telephone = preg_replace('/[^0-9s]/', '',
  12. Many thanks for your help. I'm now getting a response to the resize event, although a resizeend event doesn't seem to work but that isn't a serious limitation. However I'm not getting the overall result I wanted, but I think I know why - I need to significantly extend my scripting but having just started on scripting, PHP, CSS, etc. I need to get more familiar with all those I think before returning to this.
  13. Thanks for the reply - been out for a few days, hence the delay in trying it. However parentheses have not made a difference. I also imported the relevant lines of one of the W3Schools' code examples for resizing into my page, as below, but that doesn't produce any results either, so there must be something basic I'm missing. I'm currently in IE10 on Windows 8, but I've also tried it in Firefox and Chrome. <!DOCTYPE html><html><head><script>function showMsg(){alert("You have changed the size of the browser window!");}</script></head><body onresize="s
  14. I am using <iframe> to create a scrollable area in the remaining space in a window. I have a small java script to calculate the size of the frame and that works fine. If I resize the window and then force a refresh everything works no problem. To avoid confusion for the user by having two scroll bars if the window is resized I then thought of using the onresizeend event to trigger a script to do the reload. So far no success. The function I have created is, function resizeframe {document.location.reload("true");} I don't know whether the function is wrong or I have not placed th
  15. OK, Thanks. After several tries, I think I just have to conclude that the server is not supporting scripting.
  • Create New...