Discussion Forums  >  Suggestions, Ideas, Wish List

Replies: 9    Views: 99

rasel
Lost but trying
Profile
Posts: 18
Reg: Nov 14, 2012
dhaka
4,780
08/15/13 11:04 AM (12 years ago)

html plugin

Hello dears, i am facing a little problem. i added html plugin. there i call jquery from their site then i design one html page. here is the link http://root.rasel-portfolio.com/app.html (see the source code to understand) On eclipse everything fine but when it goes live on my android mobile, it dosen't work. that's means it dosen't load jquery file. its from virtual device : http://root.rasel-portfolio.com/upload1.PNG http://root.rasel-portfolio.com/upload2.PNG i couldn't understand where is the problem ! could anyone please help me ?
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
08/15/13 11:15 AM (12 years ago)
Hi rasel, Where are you putting your jq reference? LA
 
rasel
Lost but trying
Profile
Posts: 18
Reg: Nov 14, 2012
dhaka
4,780
like
08/15/13 11:18 AM (12 years ago)
sorry Mr. LA i couldn't understand what you are saying :( i added like this <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> <script src="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script>
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
08/15/13 11:28 AM (12 years ago)
I think most people and I might be wrong here, reference the code to a folder in Eclipse. Like in the docs folder that you put your html inside. Make sense? I might be way off here since it shows up in your emulator but not in a device, correct? LA
 
rasel
Lost but trying
Profile
Posts: 18
Reg: Nov 14, 2012
dhaka
4,780
like
08/15/13 11:28 AM (12 years ago)
Actually i am not advance user :( i would be glad if you give me any solution with code Mr LA :) Thanks a lot for your time :)
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
08/15/13 11:46 AM (12 years ago)
It should work the same way on the device as it does in the emulator. Since you're referencing the JS via URL, which is totally acceptable, my first question would be whether you have a network connection issue on the device or not. Or perhaps there's some setting in Android that prevents the device from executing Javascript? One way to get more info is to have the device attached to Eclipse when you run the app, and see what LogCat says. If there are errors, or strange behaviors, they should be logged there. Mark
 
rasel
Lost but trying
Profile
Posts: 18
Reg: Nov 14, 2012
dhaka
4,780
like
08/15/13 11:53 AM (12 years ago)
yes my device has internet connection but not sure is here have any option that prevents javascript. Actually i know little bit about javascript. however my be its would be better for me to use css instead of javascript Thanks a lot Mr Mark & LA
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
08/15/13 11:54 AM (12 years ago)
Javascript should work just fine. Lots of people use it. See what LogCat says, and we can go from there!
 
rasel
Lost but trying
Profile
Posts: 18
Reg: Nov 14, 2012
dhaka
4,780
like
08/15/13 12:27 PM (12 years ago)
LogCat haven't any error, i just saw carefully & also took some snap those are here http://root.rasel-portfolio.com/error1.PNG http://root.rasel-portfolio.com/error2.PNG http://root.rasel-portfolio.com/error3.PNG Thanks Rasel
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
08/15/13 12:32 PM (12 years ago)
Your in great hands with @GoNorthWest! LA
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.