Skip to content

Instantly share code, notes, and snippets.

modal-box
=========
simple modal-box
Basic Usage:
------------
MODAL.init();
MODAL.show("Saving...");
MODAL.hide();
WARN 30-10-2014 19:06:17 [resin-port-80-37@tnusvTpwWUP36fcq4fhA-5-1-iLhs] (JDBCExceptionReporter.java:100) - SQL Error: 1064, SQLState: 42000
ERROR 30-10-2014 19:06:17 [resin-port-80-37@tnusvTpwWUP36fcq4fhA-5-1-iLhs] (JDBCExceptionReporter.java:101) - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order=22, creation_tstamp='2014-10-17 16:35:29' where id=24' at line 1
ERROR 30-10-2014 19:06:17 [resin-port-80-37@tnusvTpwWUP36fcq4fhA-5-1-iLhs] (AbstractFlushingEventListener.java:324) - Could not synchronize database state with session
org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:90)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:275)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:266
public class Temp extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
wv = (WebView) findViewById(R.id.webView1);
wv.getSettings().setJavaScriptEnabled(true);
// register class containing methods to be exposed to JavaScript
Page link: https://documentation.appboy.com/Enabling_Message_Channels/Push_Notifications/Android
Title of section: ACCESSING PUSH TITLES & CONTENT FOR ADDITIONAL DISPLAY
String title = intent.getExtras().getString(AppboyGcmReceiver.TITLE_KEY);
String content = intent.getExtras().getString(AppboyGcmReceiver.CONTENT_KEY);
var _weq = _weq || {};
_weq['webengage.licenseCode'] = '76aa1cd';
_weq['webengage.widgetVersion'] = "4.0";
_weq['webengage.feedback.defaultRender'] = false;
_weq['webengage.onReady'] = function(){
if(!(webengage.BrowserDetect.isMobile() || webengage.util.isSmallScreen())) {
webengage.feedback.render();
}
id hash_name demo_item_category pre_html_content post_html_content context publish_rules_json demo_order creation_tstamp last_modified_tstamp
1 welcome welcome <div id="pre-info-box" class="info-box-common">
\n <div class="info-box-header" style="text-align:center;">
\n <span class="info-box-header-heading">Welcome to WebEngage Demo</span>
\n </div>
\n <div style="border-top: 1px solid #eee;margin-top: 20px;margin-bottom: 30px;"></div>
\n <div style="text-align:centre;"><input type="button" id="start-demo-button" value="Click here to start the demo!" style="margin: 0px; margin-bottom:20px;">
\n </div> web_demo [{
\n "preInfoBoxDuration": 0,
\n "widgetDuration": 0,
var eles = document.getElementsByClassName("detail");
function doNext(curIndex){
var ab= eles[curIndex].getElementsByTagName('a');
if(ab[0].innerHTML.indexOf("Free") > -1) ab[0].click();
setTimeout(function(){
if(curIndex < (eles.length - 1)) {
doNext(curIndex + 1);
}
}, 500);
using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
Applications:
Books & Reference
Business
Comics
Communication
Education
Entertainment
Finance
Health & Fitness
Libraries & Demo
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /Applications/Android Studio.app/sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here: