Jump to content

boylesg

Members
  • Content Count

    112
  • Joined

  • Last visited

Community Reputation

1 Neutral

About boylesg

  • Rank
    Member
  1. I am following this example: http://blog.teamtreehouse.com/uploading-files-ajax Great! it is fairly simple. However I tried it and the javascript crashes at the indicated line of javascript. This is the problem I am having - none of the authors have a complete working examples. They leave out information that is critical for a newby. Obviously I have to include something in order to get "new FormData()" to work. But what? I have no idea at this point! function OnClick() { alert("000000"); var FormData = new FormData(); alert("000000"); var InputBrowse
  2. It is the first time I have tried this so I have no clear idea of what is ajax and what is normal form submit. Basically I need a fully implemented simple example html file, using either method (form submit example preferred), so I can reverse engineer and understand how it is done. And not have to around with long winded explanations, which is all I have found so far. Don't have such an example or can point me in the direction of one can you?
  3. How do you do this folks? I have been trying to follow some examples but all I seem to get in $_POST is the name of the first selected file. $_FILES is empty. This is my code thus far: <?php header('Content-Type: text/html; charset=utf8'); session_start(); ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>File(s) size</title> <script> function UpdateList() { var fBytes = 0; var InputUploadFiles = document.getElementById("UploadF
  4. How do you do this folks? I have been trying to follow some examples but all I seem to get in $_POST is the name of the first selected file. $_FILES is empty. This is my code thus far: <?php header('Content-Type: text/html; charset=utf8'); session_start(); ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>File(s) size</title> <script> function UpdateList() { var fBytes = 0; var InputUploadFiles = document.getElementById("UploadFiles").files; var nFiles = InputUploadFiles.l
  5. I have an arduino connected to my home network via a wifi shield. I can successfully read the HTTP headers (on the arduino) sent from my browser and send a HTTP response back to the browser from the arduino. But I cannot figure out how to intercept the form data on the arduino when using the POST method. Does the browser send a POST http header, with the data size of the following data and then immediately send the data so that I can read it all with one read loop? Does the browser send a POST http header, with the data size and then the actual data in separate packet? Do t
  6. I can't seem to get the menu items to fit withn the menu bar: I have set the menu items to the same height and line-height as the menu bar but still thet just wont match up. And I have set margins and padding to 0px every where I can think of, but there is still an unwanted margin above the menu items. Where the buggery is coming from? Any suggestions? Here is the CSS and HTML - pretty straight forward I would have thought. Navigation.php =><ul class="Menu"> <li class="MenuItem" <?php if (strcmp($GLOBALS["Filename"], "index.php") == 0) echo "class="current_
  7. I have this navigation structure: <div class="NavigationStyle" id="navigation"> <ul class="ListStyle"> <li id="MenuItem" class="MenuItemBackgroundStyle"><a class="MenuItemLinkStyle" href="index.php"> Home</a></li> <li id="MenuItem" class="MenuItemBackgroundStyle"><a class="MenuItemLinkStyle" href="CompanyProfile.php"> Company Profile</a></li> <li id="MenuItem" class="MenuItemBackgroundStyle"><a class="MenuItemLinkStyle" href="Definitions.php"> Definitions</a></li> <li id="Men
  8. I have this page source: <img class="CategoryImage" alt="BushTucker.jpg" src="images/BushTucker.jpg" /><img class="CategoryImage" alt="LilyIrisLike.jpg" src="images/LilyIrisLike.jpg" /><img class="CategoryImage" alt="SmallPlants.jpg" src="images/SmallPlants.jpg" /><img class="CategoryImage" alt="Climbers.jpg" src="images/Climbers.jpg" /><img class="CategoryImage" alt="Fern.jpg" src="images/Fern.jpg" /><img class="CategoryImage" alt="GroundCover.jpg" src="images/GroundCover.jpg" /><img class="CategoryImage" alt="AquaticHerbs.jpg" src="images/AquaticHerbs
  9. I don't know if this is a CSS problem but I am having a problem where my dynamically created webpages are created at the server and downloaded to my web browser but all the web browsers will only display part of the content. If I view the web page source code, all the content is there but it is simply invisible in the web browsers. This problem seems to be intermittent. One minute the page content displays properly but then when I refresh the webpage most of the content disappear and I can't get it to display again. Does anyone have any clue as to what the ###### is going wrong
  10. I am trying to send an email with html format body and and xlsx attachment. The xlsx attachment works just find when I receive the email - I can open it with microsoft excel just fine. But I can't get the html code in the email body to show up - the emails comes through with no content apart from the attachment. What am I doing wrong? Here is the call to PHP mail(...) mail($_SESSION["BusinessEmail"], "Order from ".$_SESSION["BusinessName"], $strEmailBody, getHeader($strEmailBody)); Here is the html that should appear in the body of the email: $strEmailBody contains thi
  11. I don't ubderstand why this example works in my browser: http://www.w3schools.com/html/tryit.asp?filename=tryhtml5_video_js_prop But this in my own web page does not - I just get a big blank space: <div style="text-align:center"> <button onclick="playPause()">Play/Pause</button> <br> <video id="RockyOnSlide" width="560"> <source src="RockyOnSlide.mp4" type="video/mp4"> Your browser does not support HTML5 video. </video> </div> <script> var myVideo = document.getElementById("RockyOnSlide"); function playPa
  12. How do you make this pain in the arse image vertical align? I can get horizontal alignment in the middle but I can get vertical alignment in the middle. div id="CategoryContainer"> <a id="Category" href="Category.php"> <img id="CategoryContainerImage" width="100" width="100px" src="image.jpg" /> </a> <div id="CategoryName">Category</div></div>These styles are in a the file style.css #CategoryContainerImage{ border-style:none; border-radius:20px; display:block; position:relative; margin-left:auto; margin-right:auto; vertical-
  13. www.bushlandrecovery.com.au This website looks good in Chrome, IE 8+, Firefox and Safari on my windows laptop and PC. However I just noticed today that there is a problem with the top banner part of the website in Safari on an apple PC. The company name overlaps the cross symbol. Any suggestions on how I can deal with this from my windows laptop? Is there any way to simulate an apple PC? I could always sit at the apple PC with my windows laptop. But short of that.....
  14. http://www.bushlandrecovery.com.au/
  15. I can't figure out what is causing the gap between my menu items (see attachment) Apart from the fact that it is resulting from the little right arrow (▸) and its containing div (#NavSubMenuArrow {). <nav id="navigation"> <ul id="NavMenu"> <li id="NavMenuItem"><a href="#">Services</a><div id="NavSubMenuArrow">▸</div> <div id="NavSubMenuBalloon"> <div id="NavBalloonArrow"></div> <ul id="NavSubMenu"> Local Government</a></li>
×
×
  • Create New...