Posts

e commerce - Integrating Netbanking to website using JAVA/PHP (in India) -

how integrate netbanking feature website in java/php technology? is there common api available integrate of banks website or else should separate api each bank wish integrate? imho there no free api ..but can use paid api of ccavenue but costly. other alternates google checkout & paypal can used getting payments credit cards

How would i figure out the price difference efficiently with PHP? -

i have page , if scroll second "customize" in middle of page , click see print_r() products , thing trying figure out difference in price between selected , other 2 products....all 3 products in array , if below see radio buttons need....here php looks awful...any suggestions $current_price = $product[$selected_product]['product_price']; $standard_price = $product["standard"]['product_price'] - $current_price; $business_price = $product["business"]['product_price'] - $current_price; $premium_price = $product["premium"]['product_price'] - $current_price; if($standard_price == 0){ $standard_price = "included"; } if($standard_price > 0){ $standard_price = "subtract " . $standard_price; }else{ $standard_price = "add " . $standard_price; } if($business_price == 0){ $business_price = "included"; } if($business_price > 0){ $business_price = ...

java - JSF - base page refresh automatically after close popup window -

i have 3 pages main page popup page started main page using onclick javascript method (consists input , button) foo page i'm creating form on main page, operations admin key needed, popup window opened button. when popup window filled, submitted , key found in database, popup window redirected foo page , closed. i'm on main page , need automatically refresh take changes. i can't using onclick="window.opener.location.href='main.xhtml'; on button because quick there time delay find key in database. do have suggestion? how close it? injecting javascript after postback? add function refreshes opener; window.onbeforeunload = function() { window.opener.reload(true); }; window.close(); untested. balusc right in comment, sufficient with window.opener.reload(true); window.close();

c# - Problem with SQL Query Tracking -

okay here's issue. the user can go onto site , retrieve 8 records @ time, he/she given option load more. these 8 records can sorted param passed proc. when these 8 records on front end, have id's (hidden user though obviously), id's not in specific order because records sorted variety of possible things. when click "load more", should able next 8 records database, sorted in same fashion first 8 were. for example, "give me top 8 records sorted age". -> click load more -> give me next 8 oldest records without showing me onces saw. how can call proc , make sure none first result set returned though? want return 8 records @ time efficiency reasons. select top 8 m.message, m.votes, (geography::point(@latitude, @longitude, 4326).stdistance(m.point)) * 0.000621371192237334 distance, m.location, datediff(hour,m.timestamp, getdate()) age, m.messageid, ml.voted, ml.flagged tblmessages m ...

android - What does getLastKnownLocation really do? -

does give user's current location if device online? how determine last known location? locationmanager docs taken docs & reworded getlastknownlocation returns last known location fix obtained given provider. device not need start provider information battery life. however, if users phone has been sleeping or turned off , has moved location out-of-date. if need location up-to-date wouldn't use method, instead request single update, depending on applications requirements. note: requesting location updates available provider effect users battery life if used irresponsibly

Discovering the cause of Vim exit status -

on running: vim /tmp/blah :q echo $? i exit status of 1 . breaking various things including git. if run vim without vimrc: vim -u none /tmp/blah :q echo $? i exit status of 0 . use pathogen disables plugins. have suggestion efficiently determining cause of exit status? i'm aware of running vim verbosely , logging file. should looking specific in file? if there method of finding exact line determines exit status love know of searching around didn't turn up. finally found command in help: :cq[uit] . after verbose logging, search \<cq\%[uit]\> . update: there methods alter exit status using vim compiled interpreters support: @ least, following works: python import sys python sys.exit(1) " (same python3) perl exit 1 i not know other languages enough write here examples of code quit vim different exit status. note such commands inside files sourced using :pyfile , :rubyfile , other :*file should work, code in modules not distributed plugin...

jquery: when select list value is changes, date field is required -

i've got form , when status select list changed, status effective date needs required field. function checkstatuses(){ $('.status').each(function (){ thisstatus = $(this).val().tolowercase(); thisorig_status = $(this).next('.orig_status').val().tolowercase(); target = $(this).parents('td').nextall('td:first').find('.datepicker'); if ( thisstatus == thisorig_status ) { target.val(''); } else if( thisstatus == 'production' || thisstatus == 'production w/o appl') { target.val('<cfoutput>#dateformat(now(), "mm/dd/yyyy")#</cfoutput>').focus(); alert('the status effective date required.'); return false; } else { target.val('<cfoutput>#dateformat(now(), "mm/dd/yyyy")#</cfoutput>'); return false; ...