Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. dougalim

    How can I round numbers up and to 2 decimal places?

    Try the toFixed(n) function - this appears to give you what you want. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html...
  2. dougalim

    Creating Objects for OOP

    I was experimenting a little to try and get past errors. Instead of TYPE agingBucketsType IS TABLE OF VARCHAR2(20) INDEX BY PLS_INTEGER, it should read TYPE agingBucketsType IS TABLE OF agingBuckets_curs%rowtype INDEX BY PLS_INTEGER,
  3. dougalim

    Creating Objects for OOP

    I'm trying to figure out if I can use the OO capabilities in Oracle. I've had a little success but while trying to do a bit more I'm getting errors and don't know if I can do what I'm trying to do. I want to instantiate an object where the constructor loads a table with a small number of rows...
  4. dougalim

    &lt;th&gt; table element

    If cell = row.insertRow(-1) creates a new <td> element in a table row, is there an equivalent to create a <th> element?
  5. dougalim

    Newb question regarding dynamic data pulled from xml

    This is something I've played around with before. You have all the data loaded in the xmlDoc so why not use it dynamically like this. I've added descriptions to the jobs <?xml version="1.0" encoding="ISO-8859-1" ?> <CAREERS> <JOB> <TITLE>Director of Sales</TITLE> <DESC>Description for Director...
  6. dougalim

    OO Problem

    Thank you. This has been bugging me for a long time now and your solution opens up a lot of possibilities for me. Once again, thank you.
  7. dougalim

    if then statements in javascripts ????

    try if (output==1) strSQL=strSQL + "and SF_DATE_ON_SERVICE__c = LAST_N_DAYS:30"; else if (output==2) strSQL=strSQL + "and SF_OFF_SERVICE_CODE__c<>'9' and SF_DATE_OFF_SERVICE__c = LAST_N_DAYS:30"; else if (output==3) strSQL = strSQL + "and SF_OFF_SERVICE_CODE__c='9' and...
  8. dougalim

    OO Problem

    That doesn't make any difference. Have you tried it yourself - I'd like to know it does the same thing for you.
  9. dougalim

    OO Problem

    Ok, here's an alternative version yeilding the same result <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html...
  10. dougalim

    OO Problem

    I've tried it with and with out assigning the object to a variable. Same result. It isn't absolutely necessary to assign an instance of an object to a variable.
  11. dougalim

    OO Problem

    I'm trying to encapsulate code in an object but I'm having problems with setTimeout and setInterval calling functions within an object. Heres a simple example that attempts to increment a number displayed in the browser: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
  12. dougalim

    Long Raw Datatype

    A third party vendor stores a text file in a long raw datatype field in the database. In PL/SQL I can see the data in the Large Data Edior when I click on the box with ... after a running a simple 'select column from table' sql statement. How can I retrieve the column into a varchar2 in a...
  13. dougalim

    Firefox not loading CSS background image with XSL

    I have a simple HTML document like this rendered in Firefox and IE, it works with the background image: <html> <head> <style> body { background-image:url('background.jpg'); } </style> </head> <body> Page contents </body> </html> But if I combine this xml: <?xml version="1.0"...
  14. dougalim

    CDATA - FireFox and IE difference

    Thank you, this has saved me a lot of work and stress. I had tried something similar but had not found any reference to \x3c or made the connection if I did see it.
  15. dougalim

    CDATA - FireFox and IE difference

    In Firefox I can store CDATA as javascript var.innerHTML and then render it exactly as intended. IE renders it as text. The follow xml and xsl should help to understand what I'm having a problem with: XML <?xml version="1.0" encoding="ISO-8859-1"?> <?xml-stylesheet type="text/xsl"...
  16. dougalim

    Redirection to a .xsl

    Ok, that was easy - I've spent the last couple of hours looking for this in reference books and tutorials on the web but everything seems to skip this. Thank you.
  17. dougalim

    Redirection to a .xsl

    I'm a little puzzled - I'm using Dreamweaver 8 where all I have to do is press F12 to open the current file in the default browser which works fine with my xsl files. Dreamweaver generates a defaults xsl file and links my xml file with <!-- DWXMLSource="testmenu.xml" --> But when I open the...
  18. dougalim

    Redirection to a .xsl

    I'm new to XML/XSLT but having great success transforming xml to display in a browser. My question is, say I want to build a home page using my xsl file would it work with index.xsl? I've tried redirecting from a html page with javascript using "window.location=file.xsl" but all that did was...
  19. dougalim

    Ajax post to PHP

    I read the artice and I'm doing basically exactly what the article shows in the POST method section. The problem i'm having is I do not appear to setting the $_POST[] values using http.send("var=value") I'm expecting $_POST['var'] to have a value of "value" but it's not, is appears to be null...
  20. dougalim

    Ajax post to PHP

    How can I post data from javascript using XMLHTTPRequest and then read the data in PHP. It works using POST with a form and hidden field but I want to send a large XML string without using a form and hidden field leaving the current page in the browser. What value do I need to use for send...

Part and Inventory Search

Back
Top