Page 1 of 1

Any Javascript guru's willing to help me?

Posted: Sat Aug 14, 2010 5:08 pm
by AndyMK
Hi guy's, i have been developing DJ software for a while now. The latest incarnation streams live using OGG to an icecast server. I have managed to hash together a Flash vorbis web player http://www.digitalselecta.com/eminentlive/link.html or http://www.digitalselecta.com/eminentlive. The Player is a flash SWF controlled by Javascript. I have no idea how javascript works but i managed to get it going. I would like to add volume control. The original example had volume control but it was a rotary knob that didnt work very well. I couldn't modify it so i just didn't display it on the page. The functions are still in the html. I am looking for simple slider style volume control. Can anyone help?

Thanks

Andy.

Re: Any Javascript guru's willing to help me?

Posted: Sun Aug 15, 2010 7:27 pm
by GeoTrail
I don't javascript is the way to go if you want a slider. I'd go for XHTML or Ajax.
Have you thought about doing the controls in Java?
I might help there.

Re: Any Javascript guru's willing to help me?

Posted: Tue Aug 17, 2010 9:18 am
by Blood

Re: Any Javascript guru's willing to help me?

Posted: Wed Aug 18, 2010 8:52 am
by the.weavster
There's a very nice LGPL library and visual designer for JS UIs here: http://www.sigmawidgets.com/products/si ... ilder.html
You can visually design your page and then click 'Save' and download the JS/HTML as a zip file.

I've just started experimenting with the library and I like it a lot, it feels much more like programming for the desktop than making a web page. You barely need to bother with HTML/CSS at all, you can just do everything with JavaScript which I quite like now I'm starting to get a feel for it.

e.g: (warning - I've been using the library for < 2 hours so this is not the work of a guru!)

Code: Select all

linb.UI.setTheme('vista');
var host=this

var btn=new linb.UI.Button();
btn.setHost(host,"btn")
btn.setCaption("Click Me")
btn.setLeft(10)
btn.setTop(10)
btn.setShadow(true)
btn.setHeight(25)
btn.setWidth(100)
//   btn.onClick(function(){... do whatever ...})
btn.show()

var blkGrid=new linb.UI.Block({width:320,height:250,top:40,left:10});
blkGrid.setShadow(true)
blkGrid.show()

var grid=new linb.UI.TreeGrid();
grid.setHost(host,"grid")
grid.setRowNumbered(true)
grid.setHeader(['col 1','col 2','col 3'])
grid.setRows([['a1','a2','a3'],['b1','b2','b3']])
grid.show(blkGrid)
Having done it this way it seems my HTML only needs to be HEAD, BODY, SCRIPT and nothing more :)

Re: Any Javascript guru's willing to help me?

Posted: Sat Aug 21, 2010 1:39 am
by AndyMK
Thanks Guy's ill check your suggestions out :)

Re: Any Javascript guru's willing to help me?

Posted: Mon Aug 23, 2010 8:35 am
by Blood
AndyMK wrote:Thanks Guy's ill check your suggestions out :)
I'm a girl! :evil:

Re: Any Javascript guru's willing to help me?

Posted: Mon Aug 23, 2010 8:45 am
by GeoTrail
Have you thought about going for HTML5?
Lots of cool stuff you can do with that. And it looks pretty easy too.

Re: Any Javascript guru's willing to help me?

Posted: Sat Sep 18, 2010 2:08 pm
by AndyMK
@Blood, Sorry :oops:

HTML5 is still in its early stages :( i tried streaming ogg with google chrome but no joy

Re: Any Javascript guru's willing to help me?

Posted: Sat Sep 18, 2010 3:05 pm
by Trond
I don't javascript is the way to go if you want a slider. I'd go for XHTML or Ajax.
Umm, Ajax is javascript.