Jump to content

duncan_cowan

Members
  • Content Count

    109
  • Joined

  • Last visited

Community Reputation

0 Neutral

About duncan_cowan

  • Rank
    Member
  • Birthday 05/26/1993

Previous Fields

  • Languages
    PHP, HTML, CSS, SQL, JAVASCRIPT, JQUERY

Contact Methods

  • Website URL
    http://www.worldwarsix.com
  • ICQ
    0

Profile Information

  • Location
    Liverpool, England, UK
  1. Thanks, I think it may work if I just prevent javascript from being reloaded. Or I may just use http requests to reload content that will change, such as the contents of the table, as opposed to the whole content. Thanks very much for the help
  2. To be honest there's way too much code for me to post it all, however:The bit that loads the content: $("#mid_content").load(link,parameters); And this may load a page that includes this script: <script type="text/javascript">$("#<?php echo $row_unit['id']; ?>_tbody").children().hover(function() { $("#<?php echo $row_unit['id']; ?>_details").stop().animate({height:35});}, function() { $("#<?php echo $row_unit['id']; ?>_details").stop().animate({height:0});});</script> Which works fine the first time, however changing the content overwrites the previou
  3. Hi, I am currently rewriting the user interface of my site in JQuery and making the pages dynamic so that no page loads are required as the content is loaded using HttpRequests through JQuery's .load() function. This is working well, however often the content will contain some javascript code blocks relevant to that specific page. Everytime the content is loaded through JQuery, the blocks are added to the cache, even if the content has already been loaded. Therefore after navigating around the site for a while, the javascript processing gets slower and slower, presumably due to the increase in
  4. Hi, sorry my mistake. after some more testing it turns out it is not a problem with the function but one with setting a variable.The variable is first set: var status = "wait"; Then inside a function it is changed: function beginAni() { status = "fade"; document.getElementById("block1").style.display = ''; introFade('block1');} However, the time it is changed is not working for some reason. Any ideas?Thanks
  5. Hi, i have a function that fades elements, however i am trying to get it to work with IE9 but it doesnt seem to recognise when the element has fully faded.This may be a problem with the beta, but i think my function may need changing...Function var TimeToFade = 1000.0;function introFade(eid){ var element = document.getElementById(eid); if(element == null) return; if(element.FadeState == null) { if(element.style.opacity == null || element.style.opacity == '' || element.style.opacity == '1') { element.FadeState = 2; } else { element.FadeState = -2; } } if(element.FadeState == 1 || e
  6. How are you trying to do it?With style you can probably make it work: E<b>xam</b><u style="font-weight:bold">ple</u><u> Tex</u>t
  7. It might just be simpler to use:str_replace("'", "", $file_name);Instead, I find preg_replace quite confusing sometimes...
  8. http://www.thedesignworld.com/articles/web...-to-the-iframe/This tutorial shows how to make a div have a slider, however the tutorial is for vertical sliding, but im sure it would not be hard to change the code a little for a horizontal slider.
  9. Hi,here is what i think you should have: function TestDataCheck(){var name = document.getElementById('frm').contact.value;var email = document.getElementById('frm').email.value;var phone = document.getElementById('frm').phone1.value;var course = document.getElementById('frm').course2.value; I think this may work however it may not, if not then try: function TestDataCheck(){var name = document.getElementById(contact).value;var email = document.getElementById(email).value;var phone = document.getElementById(phone1).value;var course = document.getElementById(course2).value;
  10. I believe that the main reason for iframes to be classed as bad is due to the way content included in them cannot be seen by search engine spiders and therefore can comprimise search engine optimism, however as your iframe only includes pictures i think that it is fine for you to use it.However an alternative method if you want to get rid of your iframe would be to use ajax.Hope this helps.
  11. htmlspecialchars is a php function which converts special html characters such as quotes and the '&' sign into their html codes such as '&'this prevents text inputed from a website user from being outputted as code by the webpage.also the:}else {echo "Where is no profile here"}as you can see from the 'else' is what will happen when no id is set in the url ($_GET['id'])ie. 'Where is no profile here' is outputted onto the pageI have a feeling this should be 'There is no profile here' however i may be mistaken and is up to you.
  12. I recommend google for this question:http://www.google.co.uk/search?hl=en&q...tiple+files+phpplus for the image path you will have to get the upload path, the name of the file and the type of file and put them together. I am not very good with uploading files but again there is alot of content on google about this topic.Hope i have helped.
  13. I agree that your way is better as i find that it is easier to identify which code is ran in which outcome, especially as my editor program highlights brackets around code.
  14. you need to either have web hosting or a localhost server, there are many free webhosting servers avaliable online (just make sure they support php) and you can upload your web files to the web and look at them online. Alternativley you could use a localhost server, i recommend 'xampp' which contains apache, phpmyadmin, php, a mail client, ftp software and more, however there are many other packages which include the same or similar contents.Similarly you could install apache yourself, however it is not that easy.Hope this helps.
  15. Have you considered using javascript / ajax and some sort of scrolling script, or even frames?
×
×
  • Create New...