Jquery Mobile framework problem

Put your problem here if it does not fit any of the other categories.

Jquery Mobile framework problem

Postby sigster » Tue Jan 11, 2011 2:49 pm

Jquery Mobile framework problem

Hi hope someone can help me Please

I was try to use this sample

http://jquerymobile.com/download/
http://www.elated.com/articles/jquery-m ... o-for-you/

in my mobile I only get normal HTML with out Jquery but in my PC it work well with Chrome
Have anyone manage to get this to work ?

Regards
Sigster


Here is a sample I was try to test
http://blog.csdn.net/GEOLO/archive/2010 ... 63782.aspx

index.html
Syntax: [ Download ] [ Hide ]
  1. <!DOCTYPE html>  
  2. <html>  
  3. <head>  
  4. <title>Page Title</title>  
  5. <link rel="stylesheet" href="../jquery/jquery.mobile-1.0a1.min.css" mce_href="jquery/jquery.mobile-1.0a1.min.css" /> 
  6. <mce:script src="../jquery/jquery-1.4.3.min.js" mce_src="jquery/jquery-1.4.3.min.js"></mce:script> 
  7. <mce:script src="../jquery/jquery.mobile-1.0a1.min.js" mce_src="jquery/jquery.mobile-1.0a1.min.js"></mce:script> 
  8. </head>  
  9. <body>  
  10. <div data-role="page"> 
  11. <div data-role="header"> 
  12. <h1>Page Title</h1> 
  13. </div><!-- /header --> 
  14. <div data-role="content">  
  15. <p>Page content goes here.</p>  
  16. </div><!-- /content --> 
  17. <div data-role="footer"> 
  18. <h4>Page Footer</h4> 
  19. </div><!-- /header --> 
  20. </div><!-- /page --> 
  21. </body> 
  22. </html> 


main.xml
Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.         android:orientation="vertical" android:layout_width="fill_parent"
  4.         android:layout_height="fill_parent">
  5.         <WebView android:id="@+id/webView01" android:layout_width="fill_parent"
  6.                 android:layout_height="wrap_content" />
  7. </LinearLayout>
  8.  
Parsed in 0.002 seconds, using GeSHi 1.0.8.4




myActivity.java
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. package com.geolo.android;
  2. import android.app.Activity;
  3. import android.os.Bundle;
  4. import android.webkit.WebChromeClient;
  5. import android.webkit.WebView;
  6. public class MainActivity extends Activity {
  7.         /** Called when the activity is first created. */
  8.         @Override
  9.         public void onCreate(Bundle savedInstanceState) {
  10.                 super.onCreate(savedInstanceState);
  11.                 setContentView(R.layout.main);
  12.                 WebView mWebView = (WebView)findViewById(R.id.webView01);
  13.                 mWebView.getSettings().setJavaScriptEnabled(true);
  14.                 mWebView.setWebChromeClient(new WebChromeClient());
  15.                 mWebView.loadUrl("file:///android_asset/sample/index.html");
  16.         }
  17. }
  18.  
Parsed in 0.032 seconds, using GeSHi 1.0.8.4
sigster
Junior Developer
Junior Developer
 
Posts: 21
Joined: Fri May 14, 2010 10:06 am

Top

Re: Jquery Mobile framework problem

Postby samyboy » Tue Jan 11, 2011 3:04 pm

Perhaps the people on the JQuery forums might be able to help you out.
My Android Game Development Blog:

Android Game Development
samyboy
Developer
Developer
 
Posts: 40
Joined: Mon May 03, 2010 6:36 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 15 guests