Jump to content

mboehler3

Members
  • Content Count

    304
  • Joined

  • Last visited

Community Reputation

9 Neutral

About mboehler3

  • Rank
    Member

Contact Methods

  • Website URL
    http://
  • ICQ
    0

Profile Information

  • Location
    Medinah, IL
  1. I'm trying to set a cookie for a user *only* when they click a certain link. My code is in ASP.The code I'm using looks like this: <a href="/backend/" rel="external" id="footlink" onclick="<% Response.Cookies("mobile") = "Full" Response.Cookies ("mobile").Expires = DATE + 30%>"> Full Site </a> But it's not working, it's setting the cookie even though the link isn't clicked. What can I do to fix this?
  2. Awesome, that did it. Thanks for the explanation too.
  3. I have a custom font that I've set in my CSS for various elements of my website, including header, footer and navigation menu. On my home page, the font is not loading and is defaulting to Arial. If you navigate on any other page within my website, the font loads as it should. Only on the homepage am I experiencing this issue, and it's only in Firefox 15 on a Mac. I've provided a screenshot from that browser. I've analyzed the code over and over and can't find any differences between the homepage and the rest of the site. Does anyone have any ideas?
  4. I am using a custom font on my webpage, and in one specific browser, the font is not showing up. This is fine -- if the custom font doesn't load, the next available font I've set in my CSS is Arial. My problem is that the set font-size of my custom font is 70 pixels. If the custom font doesn't show up, Arial is used and is 70 pixels, which is really, really large. I would like to make it so that, if Arial is used, the font-size is 48 pixels. Is this possible to do through CSS?
  5. This is the page I am referring to: http://www.surepayroll.com/small-business-resources/ On the page, you'll see two columns towards the bottom with "Small Business Video Minutes" and "Small Business Articles" as the headline. Underneath the headline is some copy, and below the copy is a list of links. When I view this page on my iPhone, I see the list of links in the Video Minutes column is much smaller than the list of links in the Articles column. Here's a screenshot of what I see on my phone: I'm looking at the CSS and I can't find anything that would cause this. Can someone offer up any advice? Thanks in advance for any help.
  6. Sorry guys, I found it, it's in a different directory. Thanks for your help.
  7. Awesome, now the video is accepted and I am directed to the Thank You page. The last remaining problem is that the video does not upload to my server. It's supposed to be in my /uploads/ folder, but it doesn't go there. Is there any way to determine why this is not working, using a similar echo method?
  8. Adding the echo statement gave me this: type = video/quicktimeThe file is not a video format we accept
  9. I have a form that has four fields, and the last field is an upload-file field. I want the user to upload a video file, which must be in one of four formats. The uploaded video will be placed in a folder on my server. Once the form submits, an email is sent to me and the form fields are stored in a database.I am getting emails and seeing the information in my database, but I cannot get the upload onto my server. Also, file types that I want to accept are being told that it's not acceptable. For instance, I tried to upload a .mov file and got the message: The file is not a video format we accept.I have been talking to some colleagues of mine but I cannot get this fixed. Can someone take a look at this code and offer any advice? Here is my code: <?php //ftp acess$host = "ftp.hostname.com";$usr = "username";$password = "pass";//This is the directory where images will be saved$local_file = $_FILES['video']['tmp_name'];$ftp_path = "/upload/".$_FILES['video']['name'];$type = $_FILES['video']['type'];$size = $_FILES['video']['size'];if($size < 151000000) {if(($type == 'video/mpeg') || ($type =='video/mov') || ($type =='video/mp4') || ($type =='video/mpg') || ($type =='video/avi')) {//connect to the FTP server$conn = ftp_ssl_connect($host, 21) or die("Can't connect to the host!");ftp_login($conn, $usr, $password) or die("Cannot login"); $upload = ftp_put($conn, $ftp_path, $local_file, FTP_ASCII);// check upload status:} else {echo "The file is not a video format we accept";}} else {echo "The size of the file is to large";}// close the FTP streamftp_close($conn);//This gets all the other information from the form$name=$_POST['name'];$email=$_POST['email'];$phone=$_POST['phone'];$vid=addslashes(basename($_FILES['video']['name']));// Connects to your Databasemysql_connect("localhost", "username", "pass") or die("Error connect: ".mysql_error()) ;mysql_select_db("database_name") or die("Can't connect to Database".mysql_error()) ;//Writes the information to the database$query = "INSERT INTO video (videoid, Name, Email, Phone, Video) VALUES ('','$name', '$email', '$phone', '$vid')";if(!mysql_query($query)){ echo "Error uploading information";}else { $headers = 'From: '.$email. "\r\n" . 'Reply-To: '.$email. "\r\n". 'X-Mailer: PHO/' . phpversion(); $message = "Name: ".$name . "\r\n"; $message .= "Email : ".$email . "\r\n"; $message .= "Phone number: ".$phone. "\r\n";; $message .= "Video file: ". $vid; mail("myemail@gmail.com", "Video uploaded", $message,$headers);header('Location: http://mysite.com/submit/thank-you.php') ;}?> Thank you in advance for any help you can provide.
  10. Thank you, here is what I am working with: <div id="counter"><script>var START_DATE = new Date("August 20, 2006"); // put in the starting date herevar INTERVAL = 1; // in secondsvar INCREMENT = 1; // increase per tickvar START_VALUE = 1; // initial value when it's the start datevar count = 0;window.onload = function(){var msInterval = INTERVAL * 1000;var now = new Date();count = parseInt((now - START_DATE)/msInterval) * INCREMENT + START_VALUE;document.getElementById('counter').innerHTML = count;setInterval("count += INCREMENT; document.getElementById('counter').innerHTML = count;", msInterval);}</script></div>
  11. Alright I'm sorry for not understanding this but I clearly do not. This code is very simple yet I don't understand how to replicate it. Will someone please show me how I can get two functions loaded on this page? http://www.wuzhannanan.com/alex/timeticker2.html
  12. I'm sorry but no, I don't realize it... do you mean copying the code and using a different id? Like "counter2" instead of "counter"?
  13. Ok, now I am getting undefined: http://www.wuzhannanan.com/alex/timeticker.html
  14. Alright I've taken a step back and am just trying to load this function after removing the innerHTML and window.onload code, but now nothing is displayed: http://www.wuzhannanan.com/alex/timeticker.html I've been looking at examples of JavaScript code and trying them out on my end but nothing seems to work.
×
×
  • Create New...