Posts

HTML form data to JSON(php) -

i passing data mobile via api server.for have made html form,which has combination of text boxes,labels, select boxes, etc.now on button click want convert form data json format.what possible way it. like example, <label for="register_email">email:</label> <input type="text" name="email" id="register_email" /> <label for="register_password">password:</label> <input type="password" name="password" id="register_password" /> <label for="register_password_confirmation">password confirmation:</label> <input type="password" name="register_password_confirmation" id="register_password_confirmation" /> <input type="submit" value="register" /> so when user enters data,after click form data should converted json format. in other page... <?php if(isset($_post)) { foreach($_...

php - Changing specific html table row by jquery.ajax -

i have html table generated php querying mysql table. <table> <tr> <th>sl</th> <th>id</th> <th>article name</th> <th>publish status</th> </tr> <?php $i = 1; foreach ($obj->showallfromtable('pattern') $pattern) { extract($pattern); ?> <tr> <td><?php echo $i++; ?></td> <td><?php echo $id; ?></td> <td><?php echo $pattern_name; ?></td> <td id="publish_<?php echo $id; ?>" class="status_pattern"> <?php echo $publish; ?> </td> </tr> <?php } ?> </table> i want change status of article clicking on 'publish' cell of corresponding article row. trying use ajax method of jquery purpose shown in following: <script type="text/javascript"> $...

I have WCF(odata) services how can i get response in android -

i have wcf(odata) services database values client mobile. how can response service , store in local database. if give example useful me there different possible java libraries connect client odata source. give 1 of following try: odata4j apache olingo jaydata (you can find more libraries on odata.org ) each of them capable read/write odata source. further information on storing data on android devices, recommend android develoeprs

asterisk - SIP/2.0 500 Service Unavailable issue -

Image
i getting sip/2.0 500 service unavailable, created sip trunk nexmo server. status 200 ok. when call on trunk through mobile server getting sip response 500 "service unavailable" 119.xx.xx.x:5060. detailed log please go through attachment! appreciated. did set freepbx server this: host=sip.nexmo.com type=friend insecure=port,invite qualify=yes allow=ulaw,alaw dtmfmode=rfc2833 fromuser=apikey secret=apisecret register string apikey:apisecret@sip.nexmo.com

php - Fatal error: Uncaught exception 'Zend_Db_Table_Exception' -

i using zend1.12. placed index.php public root folder , changed configuration after throwing below error. i getting following error , configuration looks fine. fatal error: uncaught exception 'zend_db_table_exception' message 'no adapter found application_model_content' in /var/www/html/library/zend/db/table/abstract.php:756 stack trace: #0 /var/www/html/library/zend/db/table/abstract.php(740): zend_db_table_abstract->_setupdatabaseadapter() #1 /var/www/html/library/zend/db/table/abstract.php(269): zend_db_table_abstract->_setup() #2 /var/www/html/library/zend/db/table.php(77): zend_db_table_abstract->__construct(array) #3 /var/www/html/application/views/scripts/common/topnav.phtml(2): zend_db_table->__construct() #4 /var/www/html/library/zend/view.php(108): include('/var/www/html/a...') #5 /var/www/html/library/zend/view/abstract.php(888): zend_view->_run('/var/www/html/a...') #6 /var/www/html/application/layouts/scripts/front_hea...

Display dialog box on top right corner in android activity -

how display dialog box in top right corner in android activity. below code dialog box item.xml <tablelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="150dp" android:layout_height="wrap_content" > <com.customtogglebutton android:id="@+id/togglebutton2" android:layout_width="150dp" android:layout_height="wrap_content" android:textoff="@string/off_txt" android:texton="@string/on_txt" /> </tablelayout> activitymy.java dialog_box = new dialog(activitymy.this); dialog_box.setcontentview(r.layout.item); dialog_box.show(); do window window = dialog.getwindow(); windowmanager.layoutparams wlp = window.getattributes(); wlp.gravity = gravity.top | gravity.right; ...

how to create the special table to wrap my data in python? -

Image
here data. ['date', 'x1', 'x2', 'x3', 'x4', 'x5'] ['2014-02-26', '302964.13', '11715.30', '1389.87', '404.63', '304354.00'] ['2014-02-25', '297672.69', '7406.57', '1733.45', '345.70', '299406.14'] ['2014-02-24', '297957.19', '9933.49', '1514.91', '345.56', '299472.10'] ['2014-02-21', '312826.51', '9365.13', '1308.66', '266.03', '314135.17'] ['2014-02-20', '325884.05', '10152.87', '1576.65', '483.17', '327460.70'] ['2014-02-19', '330013.56', '17205.76', '1729.29', '709.73', '331742.85'] ['2014-02-18', '327645.32', '11282.95', '1359.65', '190.63', '329004.96'] ['2014-02-17', '...