Jump to content


  • Posts

  • Joined

  • Last visited

Profile Information

  • Location

conradin's Achievements


Newbie (1/7)



  1. Hi all,Forgive me if this is the worng place for this.I have a webserver running a stream of audio files in a folder on my server on port 8080I can access the streaming audio using a media player like vlc. The server has http, and php.What I want to do is have a visual player object, where if you visited my site you could listen into my stream by clicking on the embeded media player. I Tried the examples, from http://www.w3schools...html_sounds.aspbut I dont know how to use the code to specify the ip and port where I am streaming from. <embed height="100" width="100" src="" /><object height="100" width="100" data=""></object> Things like that, just dont work. What am i doing wrong? How can I embed a way to play the audio I am already streaming on my server?
  2. Ok, I get that the url value needs to be a string. What I dont get is how to have flot load a variable without reloading the entire page. all i want to do in click on an item in the select box and have it display in the place holder in flot.
  3. Hi all Im trying to load a URL into a textbox that when a user clicks submit or something like that, the url typed then loads the corresponding data into flot. The problem is I have no idea how to get it to work. Can someone walk me through this?<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Flot Examples</title> <link href="layout.css" rel="stylesheet" type="text/css"></link> <!--[if IE]><script language="javascript" type="text/javascript" src="flot/excanvas.min.js"></script><![endif]--> <script language="javascript" type="text/javascript" src="flot/jquery.js"></script> <script language="javascript" type="text/javascript" src="flot/jquery.flot.js"></script> </head> <body> <div id="placeholder" style="width:600px;height:300px;"></div><p><form>File name: <input id="cat" type="text" name="FileName" value="" /><br /> <input class="fetchSeries" type="button" value="Submit dataset"> - <a href="">data</a> -</form> <script id="source" language="javascript" type="text/javascript">$(function () { var options = {}; var data = []; var placeholder = $("#placeholder"); $.plot(placeholder, data, options); // fetch one series, adding to what we got var alreadyFetched = {}; $("input.fetchSeries").click(function () { var button = $(this); // find the URL in the link right next to us var dataurl = button.siblings('a').attr('href'); // then fetch the data with jQuery function onDataReceived(series) { // extract the first coordinate pair so you can see that // data is now an ordinary Javascript object var firstcoordinate = '(' + series.data[0][0] + ', ' + series.data[0][1] + ')'; button.siblings('span').text('Fetched ' + series.label + ', first point: ' + firstcoordinate); // let's add it to our current data if (!alreadyFetched[series.label]) { alreadyFetched[series.label] = true; data.push(series); } // and plot all we got $.plot(placeholder, data, options); } $.ajax({ // usually, we'll just call the same URL, a script // connected to a database, but in this case we only // have static example files so we need to modify the // URL url: "cat.value", method: 'POST', dataType: 'json', success: onDataReceived }); }); });</script> </body></html>
  4. Hi all, I'm trying to use a cfselect list box to display a list of items that the double click event will create a variable comprised of the domain, the user name and the file name of the selected item.does anyone have insight on this?FileURL is a cold fusion variable I have defined within my webpage which on-load, point to the most recently modified file.</cfform> <cfselect class="fetchSeries" name="jumpBox" size="5" id="jump2" ondblclick="document.getElementById(jump2).value =document.getElementById().value" multiple> <cfoutput query="FileListJSON"> <CFIF len(FileListJSON.Name) LE 4> <cffile action = "copy" source = "#PathJSON##FileListJSON.Name#" destination = "#PathJSON#NoName.json"> <cffile action = "delete" file = "#PathJSON##FileListJSON.Name#"> <CFELSE> <cfset FileToGraph = LEFT(FileListJSON.Name, len(FileListJSON.Name) - 4)> <option value="#FileToGraph#">#FileListJSON.Name#</option> </CFIF> </cfoutput> </cfselect></cfform>
  5. Ah, well it did work as described. There was some trouble. When I went to edit the datasource it simply refused to make the edit. The Database check returned ok, but then no one could log in, and ###### started breaking loose. Finaly, I deleted the old data source and wrote in a new one, and that worked fine. Thanks For the assistance! --Also, do I need to mark this thread as solved?
  6. Hi all, when I use the <CFQUERY name="getData" datasource="Data">the Data.mdb is assumed to be in the 1 directory up from the script that called it.(is that right? -- Thats what I think)anyways, Im working on a page that has the Data.mdb inside the web accessible directories. I want to change itso the data.mdb is not internet accessible. Can I specify another filepath for the local directory such as D:\Data or D:\Data.mdbAlternatively, should I use ../ notation to navigate to the data source?
  7. conradin


    www.oswd.orgfree templates for basic webpages. Ask your school for some server space/ a domain to work with. Since your volunteerism is for them, then they should be willing to assist you.
  8. Hi All,I am trying to use a select box to show file names of any given users account where clicking on any of the select box item would then load the data into flot. I know flot is probably beyond the scope of this forum. What I am trying to do is use <select> as an input type. A tutorial I followed uses the value tag of a select box to store the urls until the OnChange event occurs.http://www.davesite.com/webstation/js/theory1jump.shtmlhowever, the URLs I have are different for every user. I tried creating a value tag set as a variable but that wouldn't work.What i want to do is have a select box that is filed with the sort file names of a users files. When a user clicks on the file name, the data loads. as this pertains to flot, I only know how to load data from a button or a select box. Also note, I'm using coldfussion, and my server doesn't have php. Below, is a (snippet) code for a working input button, and a non-working select box. I would really appreciate any help I can get. <input class="fetchSeries" type="button" value="First dataset"> - <a href="<cfoutput>#FileURL#</cfoutput>">data</a> - <span></span> </p><!--- Select List box ---> <!--- Populate a SELECT (list box control) ---> <!--- Form is listed for compatability issues. jump2 said location ---> <form name="jump2"> <!--- Files list for user ---> <select class="fetchSeries" name="jumpBox" size="5" id="Files" OnChange="location.href=jump2.jumpBox.options[selectedIndex].value" value="<cfoutput>#FileURL#</cfoutput>" multiple> <cfoutput query="FileListJSON"> <CFIF len(FileListJSON.Name) LE 4> <cffile action = "copy" source = "#PathJSON##FileListJSON.Name#" destination = "#PathJSON#NoName.json"> <cffile action = "delete" file = "#PathJSON##FileListJSON.Name#"> <CFELSE> <cfset FileToGraph = LEFT(FileListJSON.Name, len(FileListJSON.Name) - 4)> <option value="#FileToGraph#">#FileListJSON.Name#</option> </CFIF> </cfoutput> </select> </form> If anyone really wants to be my hero and try using a set test set up I created, goto:http://icn2.umeche.maine.edu/newnav/NewNav...r/LoginForm.cfmlogin with the username: testotpassword: 111111then navigate to http://icn2.umeche.maine.edu/newnav/NewNavigator/e/ajax.cfm
  • Create New...