Jump to content

Mudsaf

Members
  • Posts

    462
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Mudsaf

  1. Somehow i can't get my JSON, JavaScript & jQuery function working.

     

    item = selectData.selectList[i].selectLevel.length; //Example Returns 2console.log(selectData.selectList[i].selectLevel.substr(item,1)); //Doesn't work gives empty string
    item = 2; //Returns 2console.log(selectData.selectList[i].selectLevel.substr(item,1)); //Works gives received string

    I've tried parseInt() function on item and everything but just cant seem to get it working.

  2. Hah fixed it by own logic. Actually this wasn't my code what i linked but it was very similar.

     

     

    Thanks for all who tried to help :>

  3. Yes i have session in index.php Also i have jquery script that updates the data with get method every 2s.

    This function will be runned in every 2s the cat variable has been created and can be changed with jquery.	function showContent() {	$.get('data.php?category=' + cat function(data) {			if (data != "NOUPDATE") {				$('#mydiv').html(data);			} 		});	}
  4. Alright so now i have problem with my code. Ill explain bit

     

    Index.php

    This basically receives data by jQuery get method, lets say from file name "data.php?cat=potato" and in flight i may change the receive get to data.php?cat=carrot

    Data.php

    //Alright so here i have the problem. I'm starting the sessions like this.session_start();$cat = $_GET['category'];$query_get_data_latest_date = "SELECT * FROM ms_date WHERE category = '$cat' ORDER BY DESC LIMIT 0, 1";$result blablabla... you know it$row_date['date'] //This returns to latest date value (Correctly)$_SESSION['date'] = $row_date['date']; //Returns older value gained before changing WHERE at query.

    So basically $_SESSION['date'] sticks to first value created by session and will not update.

     

  5. Well i copyed to whole html of script and modified it style attribute, check cleaned file here http://mudsaf.info/d..._no_border.html Btw the script you're linking is javaScript and i would highly recommend jQuery version of this because the file has about 47 200 characters that you're linking. Noticed the script i added removes after script reloads... Not sure how to fix anymore, but i suggest you to find jQuery versiono f tihs.

    • Like 1
  6. so im wondering how i can make my script work on mouse enter function. ATM

    <script>$(function() {$(".infoTD_image").mouseenter(function() {$(this).attr('src', 'MY_NEW_URL');console.log("ENTER: " + $(this).attr('src'));}).mouseleave(function() {$(this).attr('src', 'MY_OLD_URL');console.log("LEAVE: " + $(this).attr('src'));});});</script><img class='infoTD_image' src='MY_OLD_URL'>

    So my script works and it displays the Src changes, but somehow the image wont really change.

  7. Wondering is jQuery tabs enabling changed since 1.9.1 since below code doesnt work anymore.

    $("#mudtabs").tabs({ disabled: [ 2 ] }); //Works$("#mudtabs").tabs({ enable: 2, active: 2 });  //Active works but not enable

  8. Things that I noticed within 5 seconds:
    1. The Navigation Bar's Font is VERY hard to read. There is no contrast for the font to stand out and be easily read.
    2. The background's gradient is way to harsh, going from pure white to pure blank is a general no-no.
    3. "Reloads" at the time is spelled wrong.
    4. Personally, I think you could do a much, much better design. Don't let this be your design. Work harder, and design a much more eye pleasing design. It will take time, but I am sure you could do it!

    All my opinions but I do feel you could make a MUCH better design if you take the time.

    Thanks for info, i will totally fix reloads part and going to give a try for new theme :).
    What do you like feedback on specifically?
    Any critiques, style, functionality, errors, typos the critiques are endless! :)
  9. Hello, i would like to get critiques about my website, at the moment shoutbox is under developement and isn't fully functioned, but works.

    http://mudsaf.info/index.php

    Feel free to test & report errors + improvement ideas here. JavaScript and latest browsers required to display the webpage correctly. Google Chrome returns with best results.

  10. Only thing that caught my eyes was email displaying normally, you might want to edit it bit to prevent email spam systems. Not an actual error but small notice comes from website.

    FB.getLoginStatus() called before calling FB.init().

    Downloads page gets straight to pdf file (I just personally dont like this)

    http://www.headstartafricafoundation.org/terms.php = empty

    http://www.headstartafricafoundation.org/bursary_application_form.pdf  = Dead link (Linked from news page)
    http://www.headstartafricafoundation.org/twitter.com/headstartAfrika = Twitter link from footer is dead

    jQuery could get updated (using: 1.6.4, latest: 1.9.1) Else very good site :)

  11. Hello, i have my shoutbox online

    http://mudsaf.info/shoutbox.php

    Its currently refreshing with session that checks if latest shout has changed. (Really bad method). What method you would recommend for refreshing since i want to use less bandwith than refreshing the whole shoutbox everytime. So if you understanded anything i tried to explain.Shoutbox updates every 2 seconds and checks if latest message has been updated. Uses only bits of bandwith. When there is new shout it updates whole shoutbox data using about 20kb data.

×
×
  • Create New...