Any Javascript guru's willing to help me?

For everything that's not in any way related to PureBasic. General chat etc...
AndyMK
Enthusiast
Enthusiast
Posts: 587
Joined: Wed Jul 12, 2006 4:38 pm
Location: UK

Any Javascript guru's willing to help me?

Post 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.
User avatar
GeoTrail
Addict
Addict
Posts: 2799
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

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

Post 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.
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
User avatar
Blood
Enthusiast
Enthusiast
Posts: 161
Joined: Tue Dec 08, 2009 8:34 pm
Location: United Kingdom

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

Post by Blood »

C provides the infinitely-abusable goto statement, and labels to branch to. Formally, the goto is never necessary, and in practice it is almost always easy to write code without it. We have not used goto in this book. -- K&R (2nd Ed.) : Page 65
User avatar
the.weavster
Addict
Addict
Posts: 1583
Joined: Thu Jul 03, 2003 6:53 pm
Location: England

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

Post 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 :)
AndyMK
Enthusiast
Enthusiast
Posts: 587
Joined: Wed Jul 12, 2006 4:38 pm
Location: UK

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

Post by AndyMK »

Thanks Guy's ill check your suggestions out :)
User avatar
Blood
Enthusiast
Enthusiast
Posts: 161
Joined: Tue Dec 08, 2009 8:34 pm
Location: United Kingdom

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

Post by Blood »

AndyMK wrote:Thanks Guy's ill check your suggestions out :)
I'm a girl! :evil:
C provides the infinitely-abusable goto statement, and labels to branch to. Formally, the goto is never necessary, and in practice it is almost always easy to write code without it. We have not used goto in this book. -- K&R (2nd Ed.) : Page 65
User avatar
GeoTrail
Addict
Addict
Posts: 2799
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

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

Post by GeoTrail »

Have you thought about going for HTML5?
Lots of cool stuff you can do with that. And it looks pretty easy too.
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
AndyMK
Enthusiast
Enthusiast
Posts: 587
Joined: Wed Jul 12, 2006 4:38 pm
Location: UK

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

Post by AndyMK »

@Blood, Sorry :oops:

HTML5 is still in its early stages :( i tried streaming ogg with google chrome but no joy
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

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

Post 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.
Post Reply