Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About phdphd

  • Rank
    Advanced Member

Profile Information

  • Gender
    Not Telling
  1. phdphd

    Move Div To After Parent Sibling

    Actually, simply $(this).insertAfter($(this).parent().siblings(".sibling")); does the job.
  2. Hi All, I am trying to move a DIV with a specific class after one of its parent's sibling with a specific class too, but it does not work. The HTML <div class="sibling"> </div> <div class="hello"> <div > Hello </div> <div class="world"> world </div> </div> The jQuery $('div').each(function (){ if($(this).hasClass("world")){ $(this)(".world").insertAfter($(this).parent().siblings(".sibling")); } }); I would like that output <div class="sibling"> </div> <div class="world"> world </div> <div class="hello"> <div > Hello </div> </div> Thanks!
  3. Hi All, When I put echo memory_get_usage(); at the very beginning of a php file I get 51207808. Is this normal while there is not much processing to do ? This happens even for very small php files that only display html syntax. Thanks!
  4. phdphd

    Mysql Starts Then Stops

    I uninstalled, and reinstalled my LAMP stack, and restored the database. Everything is back to normal now.
  5. phdphd

    Mysql Starts Then Stops

    I initially created the database using phpmyadmin. Since then I had an issue (HD crash) a couple of years ago you helped to solve. From that time I had no issue while feeding the above mentioned table every 4 months.
  6. phdphd

    Mysql Starts Then Stops

    After some fixing, I no longer have this error, but instead I have the following one : In the file my.ini, in the [mysqld] section I added However I still get the same error on server restart. I also noticed the presence of a file called "ibtmp1", whether the server is running or stopped. Should I put it also in the innodb_data_file_path option ? In the message, the table_name is a quite large table (around 4 MB) that is regularly fed with new records. This is the first time I have this error. Thanks!
  7. phdphd

    Mysql Starts Then Stops

    Hi All, I have been using the uWamp package. Since this morning while Apache starts correctly, MySQL starts then stops. What does this line mean in mysql log :[ERROR] unknown option '--datadir C:/UwAmp/bin/database/mysql-5.7.11/data' ? Thanks!
  8. HI All, On Windows 10 systems (and I guess on others) there is a display setting called something like «Change the size of text, apps, and other items » that the user can set to their liking (100%, 125%, …). Let’s suppose UserA et UserB each use exactly the same laptop (same brand, same model, Windows 10 installed, same physical screen resolution) and that they use the same web browser with zoom level set to 100%. Let’s suppose also that UserA sets the above Windows 10 display setting to 100%, and that UserB sets it to 125%. For a given web page, UserB will likely see the text in a bigger size than UserA. Is there a way for a web developer to take this into account with pure CSS in such a way that their website looks the same on both computers ? Thanks!
  9. phdphd

    Apply Hex Color To Div With JQuery

    Hum, I think I need to go to my ophthalmologist...
  10. phdphd

    Apply Hex Color To Div With JQuery

    Yes I am sure it comes from css(). And it works with any color by name, like red or FireBrick.
  11. Hi All, I am trying to apply some fading effect to a Div, for which I want also to set an hex color. This works : $('#myDiv').css('color', 'blue'); $('#myDiv').fadeIn(5000, function() { $(this).delay(3000).fadeOut(3000); }); This doesn't: $('#myDiv').css('color', '#050709'); $('#myDiv').fadeIn(5000, function() { $(this).delay(3000).fadeOut(3000); }); Thanks !
  12. Hi All, Is it possible in JS (or jQuery) to get the height of the contents of a scrollable DIV ? I am not looking for the height of the scrollable DIV itself, but its contents (i.e, height of visible content + height of not visible content). Thanks!
  13. Hi all, I want to make a div follow the mouse vertical position, with some fading effect. It turns out that the code does not stop running despite the "off" method. I would like to make it run just once every time the mouse is moved. Thanks! $(document).on('mousemove', function(e){ $( "#nav2" ).delay(2000).fadeIn(1000).delay(2000).fadeOut(1000); $('#nav2').css({top:y = e.pageY}); $('#nav2').off('mousemove'); });

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.