I am considering writing an online graphing utility. I plan it to be
of good quality, such that an undergraduate university student can
print it out and include it with a lab report.
Data points will be entered, having been generated by another program;
the utility will NOT accept functions for plotting--just the data
points.
As far as I know, Javascript does not provide graphing functionality.
Could somebody in this group please let me know what the best language
to use for writing this utility.
The attached was developed in IE 6. It will likely work in IE 5 but not Netscape, sorry.
J-Graph will plot a formula(function), solving for x, in the +,+ coordinate plane. (My terminology may be off, its been a while since my last math class.)
Max X and Max Y are the limits of the functions. Dot Color is the color of the plotted points. Axis Color is the color of the axis. Detail is the number of plots (resolution) of the line. The higher the detail, the sharper the line, the longer it takes to plot. Magnification allows you to zoom in and see more detail. The higher the magnification, the more detail you see, the longer it takes to plot. Graph Lines is the interval at which to place lines on the graph. Zero results in no lines. Graph Color allows you to change the colors of the x and y Graph Lines.
The function must be regraphed to view any change in the above parameters.
Although there are two functions only one can viewed at a time. Sample functions are provided so the format can be viewed. The functions are written in/with javascript parameters.
The "Show Math Functions" at the bottom of the page will provide a list of javascript math properties and methods.
Planned Updates: Ability to mouseover a plotted point and display the coordinates. Print the graph with the parameters. Label the Graph Lines
What is the correct way to work with multiple language JavaScript files? So how to use your PHP language variables in your JavaScript files? The way I do it now is create JavaScript files like 'script_js.php' like this:
The previous developer who has been working here used javascript on some forms and they're not functioning properly when opened with IE (any version)
The link to the form: Quote: http://www.avis.com.lb/reservation-inquiry?group=%27Group+V+(e.g.+Renault+Kangoo)%27&cor=%27Lebanon%27&corofres=%27LEBANON%27&hr=%2709%27&monthcoll=04
On firefox, it doesn't prompt any error and as you can see, it auto selects "Lebanon" as a country and it selects the date with 3 days in between till the return date. These don't work on IE, it just shows blank.
If I want to detect a user's language, so that I can change some text to suit them, how do I do that in Javascript?
Or aren't modern browsers supposed to be able to cope with more than one language on a page, separated somehow by language identifiers, and display only the appropriate text? Maybe I was dreaming when I read that.
Is there an easy way to detect the local language settings of a client browser or system?
I want to for example determine if the users browser or system is set to English, French, or Italian and display a message in the appropriate language.
How to and in which memory variable read the 'Preferred language', and make another HTML page call based on this value ? A HTML instruction, a JavaScript or a jQuery instruction ? Which one ?
How can I detect the language of a website through javascript? (ex: if i visit lefigaro - french news - the javascript to 'tell ' me we have french in it).
I have below code to change a textbox language that works fine in IE but i want to write for firefox.i have tried e.which instead window. event. keyCode for firefox but it seems to be read only.[code]
I want to detect input language of client. so i tried in java script with(navigator)it dosent work for my perpose i also used ( HTTP_ACCEPT_LANGUAGE) it return system language not keyboard language?
I am trying to develop a form that will be used to place orders. The form contains a table that has 1/2 dozen columns. Three of the columns are named: Item-Name, Quantity, and Price.
Item-Name and Price are literals (readable only). Quantity is a number the user will enter. Multiple items can be selected.
At the bottom of the table, I would like to have a box called "Total". In HTML, is there a way to do arithmetic functions? In my case: QUANTITY times PRICE and add the amount to whatever was in TOTAL. If it can't be done using HTML, is there any script language I can use within the HTML page?
Is there an easy way to detect the local language setting of a client browser?
I would like to determine if the users browser is set to English, French, Italian or German language and display a message in the appropriate language but don't want to redirect user.
Basically, the script is an onMouseover slideshow which works fine. The problem is that in internet explorer, it says there is a syntax error relating to the javascript code. (this doesn't appear on chrome or firefox) here is the code:
Code: <script> <script language="JavaScript1.1"> var myimages=new Array() var gotolink="#" </script>
basically, by putting the script language here, IE8 is saying there is a syntax error! removing it stops the error but stops the script from working. What can I do here? If I put it in an external .js file instead (right now it is in the head of the HTML page) will this solve the problem?
I need to program a language protocol compatibility patch for multiple OS'. I don't know where to start, I'm new to programming BUT at least I know what is needed. If anyone is willing to help, I'm willing to elaborate.:thumbsup:
I have the source code to an old BASIC program that a friend of mine would like to run online. I am a beginner at JS, but I think that it would be a good choice for the project. My background is in C/C++ and web development.
Any suggestions that might get me off to a good start here? I can provide more information if needed, but I am not sure what would be helpful. The program is 550 lines in what appears to be BASIC and is a calendar conversion program. You give it a date and it will convert it into one of many other date reckoning systems (Gregorian, Hebrew, Egyptian, etc, etc).