Jump to content

speedlearner

Members
  • Content Count

    19
  • Joined

  • Last visited

Community Reputation

0 Neutral

About speedlearner

  • Rank
    Newbie
  • Birthday 02/20/1970

Previous Fields

  • Languages
    VBScript, Javascript, SQL, XML, XQuery, CSS, HTML

Contact Methods

  • Website URL
    http://www.youtube.com/user/speedlearner

Profile Information

  • Location
    Illinois
  1. Here is the hyperlink to the article I was reading: http://www.itk.ilstu.edu/faculty/javila/SVG/SVG_drawing1/elliptical_curve.htm
  2. I don't understand the X-Axis-Rotation. One definition says it indicates how the ellipse is rotated relative to the current coordinate system. What do they mean by rotated? What do they mean by the current coordinate system?
  3. I tried to combine XHTML and SVG in one of my latest projects. It worked until I started adding namespaces. Then I discovered the Namespace-based Validation Dispatching Language. I wasn't sure if it could be linked to the eXist database program. And if it can, how can I use it? By all means let me know.
  4. I've isolated the problem. I created a new HTML document. SVG_Ellipse_1.html <html> <head> <title>SVG Ellipse</title> <link rel = "stylesheet" type = "text/css" href = "http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.css"> </link> <script language = "javascript" src = "http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse_Test_2.js"> </script> </head> <body onload = "Setup()"> <svg id = "Image_Box"> <ellipse id = "My_Ellipse"> </ellipse> </svg> <input id = "My_Data" ty
  5. I changed a few things in my Javascript document. I removed the for next loop and replaced it with the following code: document.getElementById("My_Ellipse").setAttribute("cx", "100"); document.getElementById("My_Ellipse").setAttribute("cy", "100"); document.getElementById("My_Ellipse").setAttribute("rx", "40"); document.getElementById("My_Ellipse").setAttribute("ry", "40"); I verified that the computer was setting the attributes by using the getAttriibute command. I also changed my html document into an XHTML document. <html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="http://
  6. I found one error and corrected it. In the Javascript code I have two for next loops. In the second for next loop I listed Coordinate_Pair instead of Coordinate_List. I'm unable to locate the second error. It says: Uncaught InvalidCharacterError: Failed to execute 'setAttribute' on 'Element': '' is not a valid attribute name. What is this error?
  7. I'm using the eXist database program. I stored the following documents inside the HTML_Student collection: SVG_Ellipse.html <html xmlns="http://www.TedTheSpeedlearner.com" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.TedTheSpeedlearner.com XML_SVG_Ladder.xsd"> <head> <title>SVG Ellipse</title> <link rel="stylesheet" type="text/css" href="http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.css"/> <script language="javascript" src="htt
  8. Why did I place commas after the quotation marks? I was taught years ago that when you create a Javascript array, you have to place a comma after each piece of data. Had I known that I would have to separate the data once the computer retrieved it from the database, I would have used a different character to separate the array elements. Now that I know this, I will try to create a Javascript object that will fill this void. Once I do, I will let you know.
  9. I began this project by storing my array data inside a XML document so I and the eXist database can find it easily. I retrieved this data by concatenating the data and then used an XMLHTTPRequest to send the data from the database to a Javascript variable. Now you're suggesting that I disassemble the data using a search pattern (regular expression) and a string search method before storing it inside a Javascript array? I find that very inefficient. I think Brendan Eich or one of his staff should create a more efficient means of transferring data from a variable to an array. Perhaps a new
  10. I used AJAX to retrieve concatenated data from a XML document. Now I need to store that data into a Javascript array. How do I do this? My Javascript Code: var SVG_Data var Retrieved_Data var Coordinate_Pair var Element_List var Counter function Setup() { SVG_Data = new XMLHttpRequest(); SVG_Data.open("GET","http://localhost:8080/exist/rest/db/apps/HTML_Student/Database_Retrieval.xq", true); SVG_Data.onreadystatechange = function () { if (SVG_Data.readyState = 4) { Retrieved_Data = SVG_Data.responseText; docu
  11. I have an update. I changed my Javascript document. Now it looks like this: var Data_Display var My_Data var My_Data2 function Setup() { My_Data2 = ""; My_Data = new XMLHttpRequest(); My_Data.open("GET","http://localhost:8080/exist/rest/db/apps/HTML_Student/Database_Example.xq", true); My_Data.onreadystatechange = function () { if (My_Data.readyState > 0) { My_Data2 = My_Data2 + " " + My_Data.readyState document.getElementById("Information").value = My_Data2; } } My_Data.send(); Whe
  12. In the eXist database, folders are called collections. That's why I stored Database_Example.js into the HTML_Student collection. I'm sure I won't be the last person to ask about the Google Chrome developer tools. So I found them and I will now share them with everyone else. If anyone is looking for the developer tools, all they have to do is open a webpage, hold down the ctrl button, hold down the shift button, and press the letter J. You can also right click the webpage and click inspect element in the pop up dialog box. I made adjustments to some of my code. Database_Example.
  13. I read the article you sent to me. And I have a few questions var invocation = new XMLHttpRequest();var url = 'http://bar.other/resources/public-data/';function callOtherDomain() {if(invocation) {invocation.open('GET', url, true);invocation.onreadystatechange = handler;invocation.send(); In the invocation.open statement, I see the word Get, the URL of the resource I want to open, and the word true. What is the word true? I also see the invocation.onreadysetchange. Why is it set to handler? And what is the word handler? I don't understand.
  14. WHat adjustments would I need to make to create a CORS request in my Javascript document?
  15. I stored the Javascript code inside the eXist database program. What does that mean? It means I stored a copy of my Database_Example.js into the HTML_Student collection in eXist. Use your browser's developer tools to look at the ajax request and check the response from the server. In order for responseXML to be populated, the response from the server will need to have the content-type header set to XML, so check the response headers for the ajax request to make sure it has the right content type. You can also look at the response body to see the actual data that the server responde
×
×
  • Create New...