Jump to content

BeeDev

Member
  • Posts

    328
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by BeeDev

  1. Try "Superfish" dropdown menu. Works with jQuery. Works in IE too from my experience: http://users.tpg.com.au/j_birch/plugins/superfish/
  2. Good idea is to always run the pages through the W3C markup validator first: http://validator.w3.org/ Basicly what your problem is: You have a Syntax error in your HTML. You CANNOT have 2 items with same ID. Your left side link container <li> have id "birthdays", but also the <div> that's supposed to fadeIn also has an id that says "birthdays". As far as IE7 is concerned, item with ID "birthday" is already shown so therefore it's not doing anything. More modern browsers like IE8, FF 3.6 etc are, I guess you could say, "idiot-proof", so even if you forget to close a tag, or put items with 2 same id's, they still work. Easiest solution is to take the ID's out from <li> tags, and put them in the "href" attribute of the <a> tags inside the <li>'s. So the link to fadeIn the "birthdays" <div> will say: <a href="#birthdays">Birthdays</a> So you can just take the "href" attribute when you're fading in: jQuery(function($){ $("a").click(function(){ $($(this).attr("href")).fadeIn(); }); }); Voila! Hope this helps.
  3. http://boingboing.net/2008/02/08/color-tile-optical-i.html Maybe this? Tile A and Tile B have exactly same colour. Surrounding colours affect a colour too.
  4. Correct. Instead of class 1stBox, use Box1, that should do the trick
  5. Oh my god, How can I forget <meta> tags lol. But Webkiller, OP is not looking for a way to refresh a page, he wants a way to refresh the cache in a user's browser. But thanks for reminding me about <meta> tag Disregard what I said above, you don't really need server side code, you can bung those above that I mentioned into a <meta> tag. This is a good place to read about those cache controlling meta tags: http://www.i18nguy.com/markup/metatags.html <meta HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> <META HTTP-EQUIV="EXPIRES" CONTENT="Mon, 22 Jul 2002 11:12:01 GMT">
  6. As I said, You need to use xmlHttpRequest object in Javascript, or cURL in PHP to achieve that. And no it's not that hard, just Google cURL or xmlHttpRequest, and read up. Taken from php.net (http://php.net/manual/en/book.curl.php): <?php $data = "<soap:Envelope>[...]</soap:Envelope>"; $tuCurl = curl_init(); curl_setopt($tuCurl, CURLOPT_URL, "https://example.com/path/for/soap/url/"); curl_setopt($tuCurl, CURLOPT_PORT , 443); curl_setopt($tuCurl, CURLOPT_VERBOSE, 0); curl_setopt($tuCurl, CURLOPT_HEADER, 0); curl_setopt($tuCurl, CURLOPT_SSLVERSION, 3); curl_setopt($tuCurl, CURLOPT_SSLCERT, getcwd() . "/client.pem"); curl_setopt($tuCurl, CURLOPT_SSLKEY, getcwd() . "/keyout.pem"); curl_setopt($tuCurl, CURLOPT_CAINFO, getcwd() . "/ca.pem"); curl_setopt($tuCurl, CURLOPT_POST, 1); curl_setopt($tuCurl, CURLOPT_SSL_VERIFYPEER, 1); curl_setopt($tuCurl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($tuCurl, CURLOPT_POSTFIELDS, $data); curl_setopt($tuCurl, CURLOPT_HTTPHEADER, array("Content-Type: text/xml","SOAPAction: \"/soap/action/query\"", "Content-length: ".strlen($data))); $tuData = curl_exec($tuCurl); if(!curl_errno($tuCurl)){ $info = curl_getinfo($tuCurl); echo 'Took ' . $info['total_time'] . ' seconds to send a request to ' . $info['url']; } else { echo 'Curl error: ' . curl_error($tuCurl); } curl_close($tuCurl); echo $tuData; ?>
  7. You can set these headers, so a user's browser doesn't cache your pages: Cache-control: private Pragma: no-cache Expires: (a date in the past) But you need some kind of server-side code, ASP/PHP etc, also don't think it's a good practice for performance. But this is a beginners section, don't know if I should go in detail here. So I'll just leave it at that.
  8. BeeDev

    Hacked htaccess

    I'm not very good with .htaccess, but I'll try to shed some light. As far as I know, hashes (#) are comments, so if a line starts with a hash, it's a comment. So first 5 lines are irrelevant. RewriteEngine On - this is just turning on the mod_rewrite extension of PHP i think ... The RewriteRule ones are forwarders. So the line that says: RewriteRule check_work/$ ./mnemonics/platforms.php?checkwork ... will forward visitors going to ANY page under the "check_work" directory, to "./mnemonics/platforms.php?checkwork" I'm not sure about the second part of RewriteRule is Exactly doing, but it's doing another forwarder.
  9. I think the auto-forward time is set too low, and the images are too big/bulky to fadeIn fadeOut in a short time, the browsers just can't handle it i think, try to optimize the images, and the JS if necessary, and also try to increase the time for the auto-forward to like .. 10-15 seconds to see if the fade is really working or not. Also might help if you increase the fadeIn/fadeOut duration to like 1000 or 2000 In my opinion, it's just browser lag thats causing you to not see the fades.
  10. The words: CREATE TABLE are functionality/reserved words in SQL, so if they are contained in an SQL string, they will be treated as such. Therefore "INSERT INTO CREATE TABLE comments" is never going to be a valid SQL string. Best solution would be to just rename your database.
  11. I guess he means sending the XML string as a POST or GET data to a specific URL. You need to use xmlHttpObject in Javascript, or use cURL in PHP but I think you need to have cURL extension installed, which depends on your hosting. Just search for above terms on google and you should get your answers in detail.
  12. Well the obvious thing i guess is: In your screenshot the table name is "CREATE TABLE comments". That's not matching the table name in your PHP script: "comments".
  13. Up to you really. What do you want to achieve by doing this course? If it's a career, then you could apply for a Junior position in a web design company. I've done a university degree on computing and then joined a company as a junior, and I found that I haven't learned much in the Uni doing the theories, just the basics, however almost everything I do now I have learned on the job. So what I'm trying to say really is that you need to do lots of practicals, and keep practicing. Keep making websites and you'll know how to do things in your own way that works the best for you. There's no certain "step by step" when it comes to web design/coding, everyone has their own way of doing things, and same results can be achieved by employing many different techniques. That website is nice, clean code and simple structure. 100 times better than my first website (I had rotating gifs etc .. and whatnot). In terms of CMS, if you're comfortable with PHP Includes, then Wordpress Theming is not that bad, but it's still quite tricky. There's header.php and footer.php which are included on every page, but the middle part changes depending on what kind of page you're viewing, so there's archive.php, post.php, page.php etc which all need to be styled with correct HTML structure. And those files have lots of Php coding in them, which you need to know what they are doing, where the loop starts and ends etc. But for a simple design it might not be bad, just try take apart an existing theme, play around with individual includes and try to customise it. In terms of Usability, Wordpress is probably the best choice as it's very easy to use and maintain for a non-technical person. Joomla's theming is also very very easy, loads easier than Wordpress, as you only need 1 page - index.php and 1 Stylesheet, and you don't need to mess about with php loops etc. There's bits of php if...then...else but they're quite easy to understand. However in terms of usability - Joomla's not very good. It's very hard for a non-technical person to use Joomla's admin area, my clients really do struggle grasping the concept of Joomla administration, the whole create an Article -> create Menu item-> assign Modules to the menu item etc. So if you're comfortable with Wordpress's theming, then I'd recommend Wordpress. Hope this helps. Best of luck.
  14. Even though the database size might be 2.4MB, the generated SQL Dump shouldn't be the same size. If you're using "MYSQL Admin" then you can export the whole database as a text *.sql file which will have the table structure + data which can be dumped into another MySQL database. You can do this by the "Backup" option of the MySQL Admin program. If you're using PHPMyAdmin to export your data then you want the "Export" tab when you're not browsing any tables (i.e just after you've selected your database), highlight all the tables you want to export, then select the SQL option. If you're saying the generated *.sql file is 2.4MB then you can most likely just split this file into 2-3 chunks by splitting the file between different CREATE TABLE or INSERT INTO statements then importing them 1 by 1.
  15. $("ul li").mouseover(function(){ alert($(this).find("a").width()); });
  16. Just export that gradient image as transparent PNG, instead of GIF. That should do the trick.
  17. if ( cur.hasClass('last') ) cur = $("#wrapper .images:first"); else cur = cur.next(); cur.fadeIn( 700 ); or if ( cur.attr('class').indexOf("last") != -1 ) cur = $("#wrapper .images:first"); else cur = cur.next(); cur.fadeIn( 700 ); .hasClass('className') function returns true or false only.
  18. Thank you for replies. I found it however, it's called Stylish : https://addons.mozilla.org/en-US/firefox/addon/2108/ It's both a Firefox and Chrome plugin. You can make custom stylesheets for every website, and save them for your next visit, quite cool
  19. Not sure if this is the correct place to post this. Sorry if it isn't. I came across a browser plugin the other day that lets you change a website CSS (not your website, just any site) and the plugin saves your change and applies it to that site everytime you come back to it. Unfortunately I forgot the name for it, does anyone know the name for this plugin? Searched google but no luck, almost all results come up as Firebug etc. I'm not sure if it was a Firefox or Chrome extension, but any of them will do. Thanks in advance.
  20. Maybe this will come in handy: http://codex.wordpress.org/Multilingual_WordPress
  21. Maybe try also float:right or maybe just align the image vertically using vertical-align: middle / text-top / text-bottom etc
  22. Have you tried doing them in 2 lines? cursorcss: 'url(magnify.cur), -moz-zoom-in'; cursorcss: 'url(magnify.cur), -webkit-zoom-in';
  23. Yeah, so then it's either display:none or cater for people without javascript Tough ..
  24. Hide them using CSS: display:none Then show the first one when ur ready to show it using javascript
×
×
  • Create New...