Jump to content

ToonMariner

Members
  • Posts

    3,342
  • Joined

  • Last visited

Everything posted by ToonMariner

  1. classes don't 'do' anything anyway! On your second point - just hide the container until the ajax request is complete.
  2. the curl execution failed or did not return an array.
  3. erm... I can't really see any link in there to allwo you to download an image... you need to only output a link to an image that can be downloaded.
  4. have you set the SMTP setting in your php.ini? make sure it is set to your service providers smtp server
  5. this code here if (is_numeric($_POST['temp'])) { echo "Temperature should be numeric"; $ready = false; } if $_POST['temp'] is a number it will echo out 'Temperature should be numeric' change it to if (!is_numeric($_POST['temp'])) { echo "Temperature should be numeric"; $ready = false; }
  6. what exactlt is the problem you are experiencing?
  7. a has to have display: block adn correct height and width.
  8. This sounds like an ideal candidate for an ajax app.... How ever may I susggest this... just give each span that is going to be translated a class Like so <span class="translate">Welcome</span> NOW by having some text within the span when the page loads this will help you transloation app (it can always refer to englisjh in this case); Now you can do this in js function translateSpans() { els = document.getElementsByTagName('span); var text = null; for(var i = 0; i < els.length; i++) { if (els[i].className == 'translate') { text = els[i].innerHTML; // do the bit that finds the translation. els[i].innerHTML = 'text found in translation look up'; } } } all that will valdiate and then you won't need to worry about undefined attributes again!!!!
  9. you don't need a named anchor anymore give each paragraph an id (and make sure each is unique and doesn't start with a number - i am using p1, p2 etc for this example); then any 'jump to' links in your page will only have to be <a href="#p7" title="Jump to paragraph 7">Paragrapgh 7</a>
  10. you are missing a loop. fundamental in outputting numerous records form a database... Don't be scared to break out of php, its no big deal... <?php include("db.php"); ?> <html> <body> <?php //select statement example ok all book entry's lol. $sql = "SELECT * FROM guides"; $data = mysql_query($sql); } ?> <form name="guideform" id="guideform" action="#"> <select name="guidelinks" id="guidelinks" onChange="window.location=document.guideform.guidelinks.options[document.guideform.guidelinks.selectedIndex].value"> <option selected value="#">I want a</option> <?php while($record = mysql_fetch_assoc($data)) { echo '<option value="'.$record['link'].'">'.$record['name'].'</option>'; } ?> </select> </form> </body> </html>
  11. hmmm we somewhere in ther you will need $sched = new ScoobyBuildTypeAverageTime; after that you can access the methods using $sched->BuildTypeAverageTime(); and so on....
  12. Many sites that provide files for download also provide an MD5 hash of the file so those inclined can ensure they do indeed have an uncorrupted file. Those not inclined won't give a flying rats backside and will just download again or think it was all garbage and leave. There is an possible option discussed here... http://www.expertsrt.com/tutorials/Rod/JSread.php but in all honesty I see very little to be gained from it and you are simply making more work foryourself that will very rarely be utilized (if at all.)
  13. This page will both explain and solve your problem... have fun http://css-discuss.incutio.com/?page=BoxModelHack
  14. what is your enctype on the form? make sure you have enctype="multipart/form-data"
  15. I refer you to my previous post... Its nowhere near as difficult as you think - its just a fair bit of php and js code to accomplish the task... Go read - go learn. You could do this in a day if you put your mind to it.
  16. hmmmmm.... I am not totally sure of the usefulness. If you are going to sell online then you need a merchant account and a payment processor - the processor will check the validity of card details and other secure information to yield an initial response to whether the card is genuine and the security requirements have been successfully completed. The processors have test areas where you can do this for fun (not fully fledged card checking but validation of input is performed) and that is surely more viable to you.
  17. compare the listitem value to the item you have processed - if they match put selected="selected" inside the <option> tag.
  18. it dose'nt need a loop. $matches = array_intersect($array1,$array2); if (count($matches) > 0) { // matches found so do you stuff. print_r($matches); // print the matches just to check. }
  19. this is a biggish undertaking - you will need to use ajax to improve the users experience and should consider making this work even without javascript. the page should post data to itself at each step (when js is off) and you use that information to generate the new selects and inputs and textareas etc. when ajax is available then use that to send an ajax request based on the current information availabel on the form. This request will be another php script on the server which can generate the next html required - js can then append the html to the container element. Sorry but there is sooo much to do on that script that you won't get a full answer in one post.
  20. They already are (kindof)! $string = 'qwertyuiop'; echo $string{3}; // outputs e depends on what you need but if you truely need a proper bonefide array.. $string = trim('qwertyuiop'); $length = strlen($string); for($i=0; $i < $length; $i++) { if ($string{$i} != ' ') { arr[] = $string{$i}; } } Note: the if statement will make sure you only have characters in the array that are NOT spaces.
  21. avoid it! safari and camino don't render the image inputs - instead they put a mac glass button there with no text on it. FF and IE are different in how they send information on the submision of the image input - so you have to code for both - very dull. Stick to using submit buttons and STYLE them (note same browsers don't style buttons very well BUT you can do something about that)
  22. firstly - if this is a site for people to use the refresh will be infuriating! this is a job for ajax - you can 'invisibly' retrieve new data without a whole new header being sent. the retrived info can also be appended to the content without page reload and depending on whether you prepend or append the new data th user will not scroll away from the current info. Check the ajax forum for help on this. I will place an example on there if you are still struugling later on. BUT here is (probably) ALL you will ever need for ajax http://rajshekhar.net/blog/archives/85-Rasmus-30-second-AJAX-Tutorial.html
  23. Thanks for allowing all those who have the same problem to know that you alone have solved it - I suspect however they may appreciate the SOLUTION instead of the frustration of gaining this knowledge
  24. tables eh? euch using that 'markup' <td width="163px"> <div class="simcards"> <a href="/index.php" ></a> </div> </td> css... div.simcards a { background: transparent url(../images/bulk_sim_a.gif) no-repeat 0 0; display: block; height:26px; width:163px; margin:0px; padding:0px; } div.simcards a:hover { background-image: url(../images/bulk_sim_b.gif); } You can help prevent the 'flicker' on the first hover (as the browser downloads the hover image for the first time) by having just the one image. put bulk_sim_a.gif and bulk_sim_b.gif into one file (one above the other so that the new image is twice as high - i will assume that would produce and image 52px in height). If you do that then all you need do is shift the back ground poistion like so... div.simcards a { background: transparent url(../images/bulk_sim_a.gif) no-repeat 0 0; display: block; height:26px; width:163px; margin:0px; padding:0px; } div.simcards a:hover { background-position: 0 26px; }
  25. you can set the #footer div to have relative position and then give it bottom: 0; #footer { position: relative; bottom: 0px; background-color: #6A8CA5; text-align: center; color: #FFFFFF; }
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.