Discussion Forums  >  Self Hosted Control Panels

Replies: 13    Views: 167

Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
01/21/13 02:21 PM (13 years ago)

Jquery

Has anybody tried to make a plugin with Jquery and can anybody give me their thoughts on how to do this. Can the jquery be used and wrapped in xcode or eclipse when creating the plugin. I was thinking about starting my plugin project using the hTML 5 plugin as a base structure. I am really not sure what I am attempting but conceptually is it possible and can anyone offer some advice? Joe
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
01/21/13 02:42 PM (13 years ago)
Go download the Villa Grove Football app for iPhone or Android. It was done with BuzzTouch. That app has TONS of HTML and JavaScript and CSS in it. Perhaps you can learn how to get it done without the need for a custom plugin. Contact the Developer, I am sure he would love to share his knowledge with a fellow BT'er. -- Niraj
 
Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
like
01/21/13 02:50 PM (13 years ago)
Thanks I'll look but I think if coding is acceptable then the versatility that query provides can make coding much easier if the the BT backend works with it? Joe
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
01/21/13 03:13 PM (13 years ago)
hey, yea ive made android plugins using jquery. what do you need to know?
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
01/21/13 03:21 PM (13 years ago)
There have been discussions about this going back a long time. I built an ebook type plugin using jquery ages ago, it's on buzztouchmods. I didn't like it. My view was that part of bt's power is that it's native code. Go down the jquery route and bt becomes just another web app builder in a native framework. I don't think anyone agreed with me! To me, if jquery is a route to go down, the plugin needs to be really awesome. Not just some video player or local storage form data saver. Make something brilliant and that could be interesting!
 
Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
like
01/21/13 03:24 PM (13 years ago)
@ceerup what is the process? can you point me in the right direction. I am thinking using the plugin creator but I have not created a plugin yet and only have watched the videos on how too. I can understand file placement and css if you can get moving in the right way? can I place query code in a plugin and does it compile as a native plugin? I can understand it if you can tell anything to get rolling
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
01/21/13 03:26 PM (13 years ago)
oh you want to create the plugin and put it on BT? That i do not know how to do. I just know that all the jquery plugins go in the bt_docs and you call it using html documents
 
Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
like
01/21/13 03:28 PM (13 years ago)
@ceerup thanks
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/21/13 03:36 PM (13 years ago)
I was thinking (later, much later) about a local database driven by jquery that could work on iPhone/Android. That would be useful. Other than that, I concur with raveyd re: web app vs native. Cheers! -- Smug
 
WebNevees
Code is Art
Profile
Posts: 206
Reg: Oct 28, 2012
KL
11,660
like
01/21/13 11:28 PM (13 years ago)
Hi everyone, I would love to use jquery and jquery mobile myself. using Javascript is just my thing. But as raveyd and Smug pointed out, that would be kind of not getting the full buzztouch benefits. You would just be using buzztouch as a container. Might work for some, and definitely worked for me in the beginning. But using Buzztouch has let me dive into the iOS sdk and fiddle with Android development. You can learn much from it, and try to extend it natively. To use JQuery, HTML 5, and CSS you would have to use the html doc or custom url plugins of buzztouch. These essentially provide webviews to you in your program, then fill the webview with content from a local HTML file in the BT_Docs folder or an url on the net. Now this is where the problem resides. Apple and the review committee are not too keen on accepting apps that rely mainly on webviews instead of native ios ui elements and code. They say you would be better off making a web app and bookmarking it to the user's device. This is why I would be personally cheering for native plugins in the market, instead of JQuery and HTML plugins. Although I am sure you can make quite a few nice and usable plugins through that route. And implementing it would be much easier too, since it's mainly a copy paste of files. If you have any problems or questions, there might be some tweaks to help you out. Let me know and I'll share my experiences... Also for your database idea, try out your localStorage options using JSON. Worked for me...
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/21/13 11:35 PM (13 years ago)
"How" did it work for you? This isn't a BT thing, right? Can it be tied in to BT? I haven't even gotten that far yet; still working online with a MySQL/PHP setup... Cheers! -- Smug
 
WebNevees
Code is Art
Profile
Posts: 206
Reg: Oct 28, 2012
KL
11,660
like
01/21/13 11:49 PM (13 years ago)
Hi everyone, I would love to use jquery and jquery mobile myself. using Javascript is just my thing. But as raveyd and Smug pointed out, that would be kind of not getting the full buzztouch benefits. You would just be using buzztouch as a container. Might work for some, and definitely worked for me in the beginning. But using Buzztouch has let me dive into the iOS sdk and fiddle with Android development. You can learn much from it, and try to extend it natively. To use JQuery, HTML 5, and CSS you would have to use the html doc or custom url plugins of buzztouch. These essentially provide webviews to you in your program, then fill the webview with content from a local HTML file in the BT_Docs folder or an url on the net. Now this is where the problem resides. Apple and the review committee are not too keen on accepting apps that rely mainly on webviews instead of native ios ui elements and code. They say you would be better off making a web app and bookmarking it to the user's device. This is why I would be personally cheering for native plugins in the market, instead of JQuery and HTML plugins. Although I am sure you can make quite a few nice and usable plugins through that route. And implementing it would be much easier too, since it's mainly a copy paste of files. If you have any problems or questions, there might be some tweaks to help you out. Let me know and I'll share my experiences... Also for your database idea, try out your localStorage options using JSON. Worked for me...
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
01/22/13 12:39 AM (13 years ago)
@WebNevees -- please explain more on how you had used localStorage + JSON within BuzzTouch Thanks, -- Niraj
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
01/22/13 07:55 AM (13 years ago)
the downside of using localstorage is that it's not going to be a cross platform capable database. I can see using jquery for a few fancy screens, but as pointed out - that's not a native app. It has it's place tho and the fact it does help build cross platform apps can't be denied.
 

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.