The problem is I have a script that draws 3d models that are in the OBJ Wavefront format onto the canvas. I have narrowed the problem I have down to a small section of the code, the code creates an array within an array to store the X,Y and Z co-ordinates, there is also some code that stores the linking of the vertices. The arrays are as arranged as follows:
coordinate
0
X
Y
Z
1
2
3 etc.
the vertices linking array is as above but with point 1 and point 2 as opposed to X,Y and Z. Within the array X,Y and Z (and also points 1 and 2 in their array) are numbered 0,1 and 2.
the code is this (I'll show it in context):
function drawmodel() {
var coordinate = new Array();
var edges = new Array();
The childNodes[0] that the script keeps editing is the text node that starts out as "test". The problem is that I want the text that I put in the table to be parsed if any markup is in it (so that a <br /> will become a break, and not literally printed out as "<br />"), something that the DOM automatically escapes. It seems a very cumbersome means of doing this is to write a javascript parser, which would go through the text and create different types of nodes as it stumbles upon markup.
I have been using jQuery 1.2.6 to parse XML and find specific nodes. However, when I simply change the jQuery version to 1.3.2 the following fails to work in IE, though still continues to work fine in Firefox.
Ok I have followed the instruction but its still not working. Ive made sure all of the files connect properly. The only thing I can think of that I might be doing wrong is where to attach the script on the text box so here is what I have maybe this is wrong
My code works great except that the margin and padding CSS isn't doing anything. Which doesn't make sense to me because the font size, style, and alignment is affected by the CSS. Does anyone know why this is??
I have a page that needs to have accessibility features for people with poor vision, namely, I need them to be able to resize the text across the page.
[URL]
I know you can do this through the browser, but my company wants me to have it in the page.
Also, I've used most of the code from our head office, but I can't figure out why it won't work on my page.
ps. Also most of the other javascripts on the page are not working (like the contrast, but I'll tackle one thing at the time).
i have an ajax script that requests data from a database. Some of the fields contain html. I would like to know the easiest way to parse an xml file that looks like such:
<response> <poster>Poster name here</poster> <title>Title goes here, may contain a link</title> <text>html content here</text> </response>
i can't seem to figure out an easy way of parsing all the contents between a tag, what is the easiest way? I'm trying to fix a script that doesnt work when the text area contains html and i can't get it to work.
Working with a script I had found/pieced together online. It toggles the display of certain content along with selected text (i.e., "view/hide"). It's working great in all browsers except for IE7 (go figure). The showing and hiding of the content works, just not the switching out of the values for "show/hide".
I've written a function to change the font, this is working in IE but not in FF or Chrome. No errors come up in Firebug. Once this is working in both browsers I will change the function to gradually increase the size of the font to make it look as if the font is growing. This is why I haven't just assigned a class to the text. URL of the site with the script is [URL]
Looks fine in IE and Opera, but is designed to write into a textarea instead of the <div> if the brower is not IE4+ (why is it working in Opera?) so on Firefox you can see the ugly textarea....
Is there a way to either turn off the Javascript in Firefox so it doesn't work at all, or test specifically for that browser (it's not testing for anything but IE right now as I understand it) and put the text into an absolutely positioned element? Code:
My problem is that i need an algorithm parse parse HTML. For an HTML page, my script has to parse all tags to get all forms values, even if there is frame, iframe, ... How can i do such a script ?
The code works OK in Firefox and Google Chrome, but it fails in Konqueror (khtml) or IE 8.0: the resulting array is empty although the xml read by Ajax call is OK. I tried also with "$("tagname", xml).each()" - same result.
I'm trying to work with XML DOM for the first time as I need to grab a value from a SOAP request. I've been following this: [URL], which says modern browsers won't parse xml files from another server for security reasons. How would I got about doing this then? I've been using the price of crude oil as an example [URL] and want code portable enough to put on something like Tumblr, so I don't think I can actually save the file locally first.
I am trying to split an IP address into it's 4 octets using a RegExp and assigning the result to an array but it is not working. Here is my function so far:
<script type="text/javascript"> function lastoctet(ipaddress){ var ipoctets = new Array();
I have a project coming up this summer that will include having to run a quiz like application from several machines disconnected from the internet.
I was hoping to be able to have all of the quiz data in an XML file and the actual quiz page as html/js. The machines will be using IE5/Mac.
Unfortunately, I won't be able to get a hold of a machine for testing until very close to the deadline, so I need to know what technologies will and wont work for the browser. What kind of compatibility issues (if any) should I be weary of?
I'm using thickbox for getting a popup at my screen where the user can write info into inputfields.Only I want that the first inputfield is selected/focus.I have use the following codes but nothing is working.