Posts

javascript - Passing model data to partial view after updating model again -

Image
i having main view , few partial views. the main view displays list of registered users : the main view code : @model webapplication9.models.user @{ layout = null; } <!doctype html> <html> <head> <meta name="viewport" content="width=device-width" /> <title>index</title> <link ref="~/styles/usermanagement.css" rel="stylesheet" /> <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script> <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> <script src="https://code.jquery.com/jquery-1.12.4.js"></script> <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> </head> <body> <p> <button type="submit" name="btndefinetraj" onclick=...

php - How to echo only one parameter with union all -

i have database tables. want print union names both tables , if there more 1 name appears print once , make red example. php: <?php include 'verification/verify_form_details.php'; $result5 = getusers(); if (!$result5) { die('invalid query: ' . mysqli_error()); } while($row5 = mysqli_fetch_array($result5)) { $username = $row5['username'] ; echo '<ul>'; echo"<li>". $username ."</li>"; echo '</ul>'; } ?> and query: function getusers() { global $con; $sql = "select username `user_project` union select username `user`"; return mysqli_query($con,$sql); } how can achieve this? modify query group user name $sql = "select username ( select username `user_project` union select username `...

python - Creating a Web Interface for Raspberry Pi Display -

i have raspberry pi running web server , i'd able create web interface change colors , images on rgb display. i control rgb display navigating directory , executing python file , lights up, ends looking pi@raspberrypi: sudo python test.py cool, works! how can execute on pi webserver, don't know begin. sort of framework can use accomplish goal here? you use example flask or bottle . flask, use on webserver. way raspberry pi. think framework have developer server, haven‘t set ‚real‘ webserver. maybe use jupyter notebook too, didn‘t try on pi.

How to Disable button using javascript or jquery inside PHP code -

i need invisible buttons when table column selection value not none . how disable button using javascript or jquery inside php code. suggestions welcome task using php code inside javascript or jquery.i have buttons list follows. <?php include("db_conection.php");$sql = "select selection users"; $result = $dbcon->query($sql); if ($result->num_rows > 0) { while($row = $result->fetch_assoc()) { $value = $row['selection']; if($value !='none'){ //need add jquery or javascript here //$('button').attr("disabled", "disabled"); //$('button').text('disabled'); } } }?> <script type="text/javascript" > // $('button').attr("disabled", "disabled"); // $('button').text('disabled'); < /script> <tr> <td> <button type="button" class="btn btn-primary" id="q1-...

spring boot - When i am using it with db2 for pagination, my next page is giving error -

i using spring data jpa db2. first set of record coming. when next, giving me error. guess may because of db2. when use index 0 working fine. when use index 1 giving data access exception. on second page getting below error pageable object pageable pageable = new pagerequest(2, 10, direction.asc, "messageid"), because of 2(as mentioning index should 0), throwing below error com.ibm.db2.jcc.am.sqlsyntaxerrorexception: db2 sql error: sqlcode=-199, sqlstate=42601, sqlerrmc=of;??( [ desc asc nulls range concat || / microseconds microsecond, driver=3.69.24 actually org.hibernate.dialect.db2dialect class generates invalid query why failing have correct query overiding method. replace over( order order of inner2_) over()

voip - Can a SIP call's media address changed mid-call? -

Image
i referring c value of sdp header. is possible media stream address changes during call? , scenarios? it may changed re-invite or update. example scenarios: pabx system consisting of multiple machines decides route media through media endpoint because of e.g. high server load or other problem machine after receiving fax cng, ced and/or modem preamble pabx passes call fax server call passed specialized music-on-hold or ivr server also, addresses advertised in sip headers or in sdp quite not matching real addresses used communication because of nat or misconfiguration - best results b2buas may ignore them.

node.js - when trying to connect ibm db2 using nodejs i am getting Database name not found error -

installed nodejs installed ibm_db downloaded nodedb2test.js file changed database details per db2 database ran file. got error [ibm][cli driver] sql30061n database alias or database name "xyz " not found @ remot e node. sqlstate=08004