Posts

javascript - Target div in iframe -

i have link multiple effects happening, a description appearing onmouseover of image, opening iframe, targeting # specific div description on iframed page. and onclick div slide-toggling , opening iframe. (not important problem) i'm sure there better ways way did went i'm familiar with. works except problem /descriptions#456. div targeting #456 appears on firefox after mouseout , mouse in, other times seems point blank part of iframe page. on chrome targets #456 div without mistakes. firefox works maybe 60% of time. here unnecessarily complicated code using. <a id="slideup" class="description-div-name-1st-iframe-is-in" href="#" onmouseover='document.getelementbyid("1stiframeid").src="example.com/descriptions#456";' onclick='document.getelementbyid("2ndiframeid").src="http://www.example.com";'> as mentioned know there simpler way code doesn't bother me fact targeted di...

deployment - Azure Continuous Integration with user uploads -

i have configured online tfs account azure websites means when commit changes automatically deploys latest commit production. the problem having every deployment flushes old , replace new files including resources/images i.e. remove user uploaded images/files. is there way can exclude folders can put user uploaded images , files ci don't override it? it preferable store user data outside website's file system, leaving application code. you can use blob storage storing files, explained in this answer .

deleting properties in neo4j without any nodes -

i cleaning db , chose delete nodes reloaded. deleted nodes , links, , found db had 1024 properties left. have no nodes now. cannot delete properties. can help? are basing off web console? numbers notorious never being correct. it's impossible system have properties without nodes or relationships, neo4j use lazy delete system, properties aren't removed @ time deleted file store, should impossible system access them.

php - How can I convert a series of parent-child relationships into an array of there sequence? -

i have bunch of parent child id in array given bellow, child => parent array ( [1] => 0 ===>parent [2] => 1 [4] => 1 [5] => 4 [6] => 2 [7] => 0 ===>parent [8] => 2 [9] => 7 [10] => 2 [11] => 2 [12] => 2 [17] => 12 [18] => 17 [19] => 0 ===>parent [20] => 19 [21] => 20 [22] => 20 [23] => 20 ) and parsing tree is 0->parent ____________|___________________________ | | | 1(0's child) 7 19->0 parent's child[1]->[0],[7]->0,[19]->0 __|_______ | | | | 9 20 2 4 (2 & 4 1 parent's child) | | | 21,22,23 | 5 | 6,8,10,11,12 | 17 | 18 and want take 0 root element id , check child , gr...

php - Can't run jquery functions on forms added from jquery script -

i made script create login form if user not logged in. i've created form html() function (let me know if there better alternative). far working fine , form log user in once proper username/pass given. my problem that can't run jquery functions on these newly added forms if code added after fact. example, $('#usernamefield').attr('value', 'login'); will nothing. i'm doing wrong i'm not sure what. i've provided relevant code below (the section on submitting server removed). code creates form when user not logged in. want alert pop when click on username form, part doesn't work in example. //this create login form , submit data server , perform action based on results var loginform = function(){ $('.logindiv').html("<!-- form code start --><form id='login' method='post' accept-charset='utf-8'><input type='hidden' name='submitted' id='submitted' value...

file get contents - Php - character returned by file_get_contents -

i'm using file_get_contents retrieve content of external webpages , log received content txt file. the problem i've founded void in middle of page, , since part of page human written text exclude void present in page. so i've output this: lorem ipsum void sit avoidet, consectetur adipisici elit, sed eiusmod tempor so characters may returned "void" file_get_contents? thanks lot

php - Single Quotes not parsing -

i have simple form textarea when submitted updates rows in database! want user able enter single quotes reason not getting parsed! have parsing file.. <?php $sql = "select * testimonials id='$pid'"; $pid = $_post['pid']; $testtitle = htmlentities($_post['ts_tt']); $testbody = htmlentities($_post['ts_tb']); $compowner = htmlentities($_post['ts_co']); $ownertitle = htmlentities($_post['ts_ot']); $compname = htmlentities($_post['ts_cn']); $compwebsite = htmlentities($_post['ts_cw']); include_once "../php_includes/db_conx.php"; $sql = "update testimonials set testtitle='$testtitle', testbody='$testbody', compowner='$compowner', ownertitle='$ownertitle', compname='$compname', compwebsite='$compwebsite' id='$pid'"; if (!mysql_query($sql, $connection)){ die('...