I'm having problems with a custom JS object (XMLLoadObject) I designed to load XML and XSL files, perform an XSL transform with them and embed the resultant HTML fragment into the host HTML document. I designed this object so that I could generate and embed HTML fragments from more than one XML/XSL source into a single HTML document. This is done by instantiating an XMLLoadObject with an XML filename, an XSL filename, and the ID of the HTML element as arguments. Once the object is created, XSL Parameters can be assigned to the transformation with a member function. Finally the documents are loaded and transformed with call to the member function xmlLoad(). A distinct object must be instantiated for each transform. The object assigns closured member functions as event handlers to give access to the object's XML Document and XSL Document objects (member data). Code:
I'm a very beginner in Javascript. In a nutshell, I need a code which will transform a link name once user is hovering over link. Nothing really fancy, just a basic transformation, switch to upper case will do perfectly.(I got my own code for operations with text, which works when text is entered from a form. I just don't get, how to get string name on hover and put it back after). I've already googled for over an hour with no result.
I have several xml files and a common stylesheet on the server. In my html I have a sidebar of links. For each link I fire an onClick event that triggers an xml load and transform with the output displayed in a small popup. Everything works great for one click. My issue is that in Firefox, each subsequent click concatenates the results to the previous tranformed results. How can i start fresh each time. I've tried resetting all variables involved but the problem won't go away. This works fine in IE by the way. Does anyone have an idea on what the issue could be?
I got an php page who picks up data out of my data base and puts it ina multidimensinal array. That array is being encoded to Json$event = json_encode($super_array);Then i made an javasript get funtion to get that array to my mainpage.
function get(){ $.get("../position of my file/test.php", function(data){ alert (""+data);
I currently have a <p> where it changes to a textarea when a button is clicked How do I preserve the whitespace when saving that text to a database and displaying back to a <p>?
I am ok with using objects creating classes if someone else defines, but when it comes to defining my own, I hit a nasty brick wall... I am using an XML/XSLT wrapper called Sarissa to help with programming a utility to transform XML into HTML in different views. For this to happen, I have created a Loader class which loads in XML required. I am aware of prototyping for binding methods to objects (as opposed to replicating the same method every time an instance is created)... The aim being I want to create a progress bar for the essential files that need to be loaded in. Presently I have them load in Synchronous mode just to get the utility working, which I know is poor, so would like to address it.
I have the following script sent to me and would like to know if I can edit this javascript to transform the layout of the products that are added to the cms system that it renders items for?
I have a HTML/Javascript code which dynamically calculates the entries and gives the grand total.I have it working in table form using textboxes, but when I try to transform it using iWebkit to Form using small fields, the calculator does not work.I want to simply subtract 1 text field from another and user presses a button and gives an answer in a 3rd text field
THIS IS THE GENERIC HTML USING JAVASCRIPT WHICH WORKS FINE....
I have a php code that creates a select combo box depending on some values stored in a database and I am trying to make it look nicer I found the jquery slider I found this but it does not work in the environment I am working (joomla) well, it does but it disappears as soon as I move the slider. so if I had