Jump to content

Mudsaf

Members
  • Posts

    462
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Mudsaf

  1. Hello, i'm wondering how to make div element that has these features on. Inline-block (width depending on content) Block, space after divs. Margin to left & right working.
  2. Ah my bad, had wrong calculations
  3. Well yes its referencing to element and returning values.
  4. 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.
  5. Mudsaf

    Session problems

    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 :>
  6. Mudsaf

    Session problems

    The session "$_SESSION['date']" isn't created on index.php page, its removed if it exists.
  7. Mudsaf

    Session problems

    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); } }); }
  8. Mudsaf

    Session problems

    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.
  9. Hello, i'm wondering how i can import my SQL-table with php. So basically i wan't to receive my sql table data to .sql file with PHP?
  10. 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.
  11. So basically i want to make window/frame that interacts with the page where the frame/window is created, how to?
  12. Well as you see at table on index page the "lue lisää" images aint changing for me. http://poverihanke.mudsaf.info/ You can easily find starting line of modified code by "Source Code" & line <!-- MODIFIED WP-DATA 25.04.2013 Mudsaf -->
  13. 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.
  14. Website: http://poverihanke.mudsaf.info/ As you can see table is messed up atm, but if i remove both baselines from css its working correctly, but table.infoTD css editing wont effect the table. I just want it to center like here http://poverihanke.eu/
  15. 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
  16. Thanks for info, i will totally fix reloads part and going to give a try for new theme . Any critiques, style, functionality, errors, typos the critiques are endless!
  17. 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.
  18. 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
  19. Domain is changing atm http://mudsaf.info/shoutbox.phpORhttp://mudsaf.info/mudsaf/shoutbox.php
  20. 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.
  21. Hello, im not sure where to post this, but this prob would be htaccess question. How i can only allow users to go: http://innostus.info/ only with that domain, but not from my website subfolder: http://mudsaf.info/innostus_ky/Access:'>http://mudsaf.info/innostus_ky/Access: http://innostus.info/Deny access: http://mudsaf.info/innostus_ky/
  22. Please continue this thread on: http://w3schools.invisionzone.com/index.php?showtopic=47298 Seems like it came in double-post.
  23. I'd rather do it without old password. I would do it like how most "forgot password" methods worked. Also if user is logged in it would require no confirmation or security question confirmation.
×
×
  • Create New...