jquery-mobile,worklightRelated issues-Collection of common programming errors


  • oneday
    jquery jquery-mobile mobile
    This is the site: www.alweso.2ap.plI can’t make it work on mobile phones (resizing the browser works fine). I finally figured out that a big part of the problem is the fact that jQuery on this website doesn’t seem to work on mobile phones. What should I do about it?I know there’s something like jQuery mobile, but is it a must to install it? The typical jQuery library shouldn’t be enough?

  • ULLAS MOHAN.V
    json jquery-ajax url jquery-mobile cordova
    Am working in jQueryMobile and PhoneGap. Currently am facing an issue that; For get the details in JSON format ; I post parameters into an URL (URL1) and I get the JSON response from another URL (URL2) Currently i cant access the JSON data from the second URL.My code is ; function proceed_payment(){ var cardholder_= $(‘#input_Cardholder_name_’).val(); var card_num_ = $(‘#input_CreditCard_’).val(); var payment_ =$(‘#card_type_’).val(); var cvv2_=$(‘#input_cvv2_’).val(); var url;url=’https://www.s

  • Invincible
    jquery ajax phonegap jquery-mobile
    I am developing an Mobile application based on the jQuery Mobile and Phonegap Framework. I am using jQuery Mobile’s Ajax Based Navigation in my application. I mean all the pages in single page template using data-role=”page”. However I am stuck with one problem.I am using the jQuery mobile’s $.mobile.changePage(‘#xyz’); method to navigate between pages.but the problem is when I tap on the button the page go to other page and again comes back on the page from where I had tapped on the button or l

  • Serge Pashkevich
    jquery-mobile
    I am opening a pop up screen on clinking the header button actually after open of pop up I fill my field than my keyboard will open. Along with black screen also open. How to remove this unnatural behaviour. Actually the the theme move upward when open the keyboard. I used simple code :http://jsfiddle.net/ravi1989/jDKDW/<div data-role=”page” id=”Home” > <div data-role=”header” data-theme=”b” data-position=”fixed” data-tap-toggle=”false” ><h1 class=”ui-title” id=”hdr” style=”text-

  • ninetwozero
    android json api phonegap jquery-mobile
    I tried to put a an Android phonegap app with WP serving content. while phonegap app running JQM framework. I did this a couple of time and it worked fine.However, in this new app i did, i had this uncaught syntaxerror unexpected token < My codes to retrieve jsonfunction loadWPCatIndex() {$.getJSON(“http://www.skywin.my/?json=get_category_index&callback=?”, function(data){console.log(data);plistmenu = $(‘#product_list’);$.each(data.categories.reverse(), function(i, item) {categoriesID[i]

  • Sanket K.
    android jquery-mobile cordova worklight
    I am having problems while testing an application built in worklight for different android phones. I have nexus 4 and samsung note2 for testing, application is working fine on nexus with all the native and jquery mobile features but in case of samsung note2, the features don’t work consistently. In fact most of the times, both – native and JQuery mobile Functions don’t work at all in samsung note2! and we are unable to track the problem.The JQuery mobile part which does not work on Samsung note2

  • user806135
    javascript jquery jquery-mobile
    I am a beginner of js and just begin to learn jQuery Mobile. I have created a listview page, I wrote the html code like this:<li data-iconshadow=”true” data-wrapperels=”div” data-icon=”arrow-r” data-iconpos=”right” data-theme=”c”class=”ui-btn ui-btn-icon-right ui-li-has-arrow ui-li ui-corner-top ui-btn-up-c”><div class=”ui-btn-inner ui-li ui-corner-top”><div class=”ui-btn-text”><a href=”#” class=”ui-link-inherit”>Chuan</a></div><span class=”ui-icon ui-icon-

  • Beginner
    jquery-mobile cordova
    I have written a method to first display the contents of database as listview and upon clicking on the listview i will display a popup to enter the student name.Upon entering the student name i will check in the database whether the name exists, if name exists i will alert saying name already exists else i will write the date into database$(‘#storedList’).children(‘li’).off(‘click’).on(‘click’, function () {name = $.trim($(this).text());$(“#existing_Name”).popup(‘open’);$(‘#exisitng_Namebutton’)

  • chris
    jquery-mobile
    I’m puzzled about the execution order of the following:$(‘#home’).live(‘pageinit’,function(){$(‘#test’).hide();$(function() { alert(‘test1’);});$(‘#button’).click(function(event) {event.preventDefault();}); });$(‘#home’).live(‘pageshow’,function(){alert(‘test3’); });Here is the sequence:pageinit gets fired $(‘#test’).hide() is executed $(‘#button’).click()… is executed pageshow and alert(‘test3’) go off alert(‘test1’) is firedWhy isn’t alert(‘test1’) executed as number 3?Thanks

  • Michele
    jquery jquery-mobile
    I have programming a Jquery Mobile application and I use an ajax request (method $.ajax(config)) to get my data. Well when I use tha value “json” in the “dataType” property, I have an error javascript which tell me “Non-Access-Control-Orogin” in the header. And when I use the value “jsonp” in the “dataType” property I have the response from the server but I get an error in the Json of response. “Unexpected token: :”. Any advice to resolve this problem?This is the URL to connect my server: http:/

  • Angelo Scafuro
    android iframe webview worklight
    I am working with Worklight tutorial – Integrating server-generated pages in hybrid applications and have a few questions would like to ask:I can use <iframe src=”http://m.ibm.com” /> to embed the remote webpage in local HTML. Apart from there are some additional APIs which can control the WebView (e.g. set if JavaScript is enabled, clear history, etc). Is there any other benefit to use the WebViewOverlayPlugin over iframe? I have tried to add webViewOverlay.getSettings().setBuiltInZoomCon

  • User42590
    javascript html worklight
    I am trying to set different Viewports for different android devices. for this i use this piece of code.<head><meta name=”viewport” content=”width=device-width; initial-scale=0.91; maximum-scale=0.91; user-scalable=0;target-densityDpi=device-dpi” /><script>if (window.devicePixelRatio == 1) {document.querySelector(“meta[name=viewport]”).setAttribute(‘content’, ‘width=device-width, initial-scale=0.51, maximum-scale=0.51, user-scalable=0,target-densityDpi=device-dpi’);} else if (w

  • Sanket K.
    android jquery-mobile cordova worklight
    I am having problems while testing an application built in worklight for different android phones. I have nexus 4 and samsung note2 for testing, application is working fine on nexus with all the native and jquery mobile features but in case of samsung note2, the features don’t work consistently. In fact most of the times, both – native and JQuery mobile Functions don’t work at all in samsung note2! and we are unable to track the problem.The JQuery mobile part which does not work on Samsung note2

  • Jason
    sql worklight worklight-adapters
    I want use “%” char in Worklight SQL Adapter.It’s my Code:var selectStatement = WL.Server.createSQLStatement(“SELECT * FROM studentinfo WHERE studentinfo.sname like ‘%?%'”); function getStudentInfos(param1) { return WL.Server.invokeSQLStatement({preparedStatement : selectStatement,parameters : [param1]}); }But It’s error:{“errors”: [“Runtime: Parameter index out of range (1 > number of parameters, which is 0)..\nPerformed query:\nSELECT * FROM studentinfo WHERE studentinfo.sname like ‘%?%'”

  • Jonathan Sweetman
    worklight
    The following error occurs when I start worklight:objc[732]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre/bin/java and /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined. Launching worklight (WebSphere Application Server 8.5.5.0/wlp-1.0.3.20130524-0951) on Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_40-b43 (en_US) [AUDIT ] CWWKE

  • christianmenkens
    worklight worklight-adapters
    I have seen some questions about dynamic adapter configuration at run-time how to pass domain,port number,username and password from user input to worklight http adapterWith a Worklight Adapter can I change the domain and port for a procedure at runtime?but my question is about adapter configuration after deploy on WL server 5.0.6 from external – not at runtime from code.Our scenario is that in our enterprise development and testing process requires the QA and Testing team to change the destinat

  • Naveed S
    adapter worklight
    read values from user inputXML:`<protocol>http</protocol><domain>192.168.1.10</domain> <port>9080</port><username>user</username><password>pwd</password>`ok….i will explain briefly…….. i am trying to access from process servers running in different pcs….. if i specify details like above it will become specific to one system only…So i want to pass details from my app to which i want to connect

  • Rajin
    worklight worklight-adapters
    my adapter.xml<?xml version=”1.0″ encoding=”UTF-8″?> <wl:adapter name=”DbConnect”<displayName>DbConnect</displayName><description>DbConnect</description><connectivity><connectionPolicy xsi:type=”sql:SQLConnectionPolicy”><!– Example for using a JNDI data source, replace with actual data source name –><!– <dataSourceJNDIName>java:/data-source-jndi-name</dataSourceJNDIName> –><!– Example for using MySQL connector, do not f

  • Idan Adar

  • Idan Adar
    worklight websphere-7
    environment config : Windows Server 2008 R2 Entreprise WebSphere Application server V7 Worklight server V6 DataBase Derby (default install trough worklight server install)My Application contains in the server/conf/authenticationConfig.xml a customLogin module that use two java class located in server/java/com/authentication/After deploying and starting my application on worklight server, when I try to reach it using the following URL : http://ip_address:9080/context_root/consoleI have this erro

Web site is in building