Jump to content

BeeDev

Member
  • Posts

    328
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by BeeDev

  1. I can see the javascript file with id script1 changing as you roll the dice. However, it seems the browser caches the Javascript file 11.js and doesn't really get the values from the replaced js file. This is probably a browser Security setting, and there's not much you can do about that. The best solution would be to structure all your questions into one big file, OR perhaps an Access Database, or maybe even an XML file, as your current solution to change the Javascript file is not really web-friendly. I *think* that it works locally because the browser's security setting allows you to dynamically change Javascript files on the local INTRANET websites. Can anyone confirm this? :|
  2. It's to do with the function called __construct($persons_name) This function always runs when you declare a new object. So if you look at your __construct() function it takes in a variable $persons_name and it assigns $this->name = $persons_name; So when you call : $stefan = new person("Stefan Mischook"); it automatically assigns the given name when it runs the __construct function. Hope that makes sense.
  3. Can you post the link to the page on the online web server?
  4. BeeDev

    Div in css

    I guess the most important thing to learn here is CSS to use table-less design. You need to learn CSS in order to be able to position your elements (div's). So for that try read an article about "CSS Box Model" at: http://www .addedbytes .com/css/box-model/ You need to understand first how BLOCK elements and INLINE elements stack if you put onetwothree.... and what margin, padding do etc It's a very interesting subject in my opinion, I had some really frustrating times, but had good times if I solved those problems frustrating me. CSS is tricky, but if you can grasp the basics, the rest comes with experience.
  5. Well that explains it then Basically the flash won't be overlaying any functionality elements on the webpage. I misunderstood because once we had to make snowflakes fall down the page on one of our client's websites, during Christmas time. I thought your client wanted something similar like a butterfly flying all over the page. For that you would need to overlay the whole page, which wouldn't be a good idea to use Flash Good luck.
  6. If you overlay flash on top of a webpage, wouldn't the Flash block all the links and functionalities on the webpage though? Or is there a way around that? I'm curious to know.
  7. Right, sorry for misleading you, but I have to correct myself. Preloads won't do much unless you have some hidden images on your page, like Rollover state images, hidden gallery images etc. I think Preloads are used to store those hidden images in your cache, so that the browser won't have to send a request each time you reveal those hidden images. Your gallery code looks ok to me Just have to wrap it up in the $(document).ready now
  8. Yes I see this now, when you tab over to another tab, the hidden PNG images don't show up. Perhaps this is what I meant by "behaving unexpectedly" :/ Anyone can shed any light or a solution to this problem with hidden PNG's ?
  9. If you have IE8 and IE6, IE5.5, IE5, IE4 installed on your machine using the "Multiple IE's" installer, then I noticed that the conditional IE statements don't really work for those versions of IE I just checked your page on both Stand-alone IE6 and with Multiple IE's IE6. The stand-alone one surely shows transparent PNGs and the tabs etc work perfectly. So you're all good mate, if you want to confirm it yourself, try the following website http://ipinfo. info/netrenderer/index.php to render your website in Internet Explorer 6.
  10. You may know this already, but window.onload only fires after the page finishes rendering. So it will start your gallery() function after the page finishes loading. However $(document).ready fires the functions inside right after the DOM is ready to be manipulated, this means the images & the page don't need to be fully rendered on the user's browser. But, if your gallery() function uses the image dimensions or various other properties to perform some tasks, then they will most likely fail, as the images have -1x-1 dimensions before they're loaded, .... i think. So, if the above is true, then maybe Preload all the images on (document).ready() and then fire the gallery() function
  11. how do you know that it's "indeed unpredictable" when you haven't even tried it? You should at least give it a go if your current one isn't working. I just suggested that you test your website on different browsers to see if any issues arise. There's another PNG fix script too: http://www.'>http://www. twinhelix .com/css/iepngfix/ See the online demo. There's 2 versions there, v1 is stable, but doesn't support background-position elements and elements with tiled PNG backgrounds. v2 is beta, but it does support background-position and background-repeated elements. I tried and tested TwinHelix pngfix, it's on one of the websites i built: http://www. JuiceEventProduction .com
  12. There's a typo where you're calling the PNGFix script: notice supersleight.j instead of supersleight.js I'm not familiar with this PNGFix script. If you can't get it working after fixing the typo then try the following one: For this script to work, all you need to do is name your PNG images in a certain way: myImageName-trans.png with -trans.png at end This script also fixes some CSS & Javascript issues related to IE6 & IE5.5, but it may behave unpredictably so be careful & test it on all browsers
  13. Haven't had the chance to go through whole of your script, but it looks like you're redirecting the user BEFORE the sessions are given value: ... if($result!=1){ $err = " invalid login info, please try again!"; } else { header('Location:index.php'); $_SESSION['user'] = $user; $_SESSION['pass'] = $pass; $_SESSION['result'] = $result; } } ... The piece of code header('Location:index.php'); should be after $_SESSION() takes the Username and Password values
  14. BeeDev

    Is it possible?

    Could you elaborate on where this Form is? Is it on your website? And also how is the form sent to IContacts? Through traditional page redirect or through Javascript? After the form is filled and submitted, does the page "redirect" to their website to post the data or the data is sent by HTTP GET using Javascript silently in the back? Basically, if you're using a traditional form which sends the user to the page where the form is processed, then you cannot achieve what you're trying to achieve. If your form is sent silently in the back using Javascript (Think AJAX) without reloading the page, then you can set up a redirect after your form gets sent and a "200" (OK Success) reply is received.
  15. BeeDev

    requiring fields

    You don't validate radio buttons like that, because both buttons DO have a value, and it will never be equal to empty string ''. ht tp : // javascript. about. com/library/blradio1.htm This article may shed some insight on Radio button validation.
  16. That's an ASP include, not PHP. Classic ASP is more convenient term after birth of ASP.NET. Which means their server is not Apache but IIS (Internet Information Services - Microsoft). Which means they don't have PHP installed on the server machine, most probably. But you CAN install PHP to run on IIS. Most modern hosts allow you to purchase a PHP installation on your server machine for a small fee, or most of them for free. Did you have a look at the Host's Control Panel?
  17. if your regid field in the database is a Number then please remove the single quotes around it. Lets say $_POST['updid'] has value of 5. Then you SQL string looks like this: WHERE regid = '5' .... So MySQL cannot match and find a string field with value 5. You need to remove the outermost single quotes because values for INT or FLOAT or AUTONUMBER fields should not be wrapped in single quotes: WHERE regid = 5 .... Only values for TEXT, NVARCHAR, VARCHAR, DATETIME etc should be wrapped in single quotes in an SQL statement. so: WHERE regid = ".$_POST['updid']." AND regpass = '".$POST['updpass']."';" As I said, it might be a good idea for you to have a look at W3Schools.com as it looks as though you need some info on the SQL and PHP syntax Just a friendly advice, no offense intended.
  18. You're right LSW, but I'm just answering his question, instead of suggesting him another way to do it. Maybe he wants to do it using Javascript, it's not mine or your decision to make. Maybe he's trying to implement this on a closed protected area that only certain people can access, which all use Javascript supported browsers. Maybe he's not designing his website to be accessed by Mobile phones or Games consoles.
  19. http://www.w3schools.com/ Here you can learn the correct syntax for PHP and MySQL. <?php // connect to database. // Update a record. mysql_query(" UPDATE example SET name= '".$_POST['name']."', email = '".$_POST['email']. "' WHERE pass = '" .$_POST['pass']."';"); ?>
  20. http://www.kryogenix.org/code/browser/sorttable/ http://yoast.com/articles/sortable-table/ Might be what you're looking for. JavaScript is supported on most browsers today so it's safe to assume at least 90% of your visitors can use this feature. The other 10% will have to live without a sorted table I guess.
  21. You have to put the "if then else" on the register_form5.inc on the actual tag. For example: >Alabama >Alaska ... I suggest you don't name your files with extension inc. As these files are not standard server files therefore if someone types in that file's location in the browser address bar, then they can just simply download it. So if you store your connection strings and sensitive php scripts in *.inc files it's not good for security.
  22. BeeDev

    Suspicious PHP File

    Thanks jlhaslip, that's what I thought too. @Eric: i use Fasthosts, but there were few other FTP accounts configured for this domain, so it's most likely one of them has been lost instead of getting hacked.
  23. BeeDev

    Suspicious PHP File

    The page cannot be found The page you are looking for might have been removed, had its name changed, or is temporarily unavailable. Please try the following: Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly. If you reached this page by clicking a link, contact the Web site administrator to alert them that the link is incorrectly formatted. Click the Back button to try another link. HTTP Error 404 - File or directory not found. Internet Information Services (IIS) Technical Information (for support personnel) Go to Microsoft Product Support Services and perform a title search for the words HTTP and 404. Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Web Site Setup, Common Administrative Tasks, and About Custom Error Messages.
  24. Hi, You should store those values from the $_POST into variables. I don't think you can use $_POST[fieldname] without quotes. Proper syntax is: $_POST['fieldname']
×
×
  • Create New...