Results 1 to 9 of 9

Thread: Ajax notepad: making it work ..help!

  1. #1
    Join Date
    Nov 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Ajax notepad: making it work ..help!

    Hello everyone, I found this script on the internet, and is pretty damn amazing. What ever you type in, it automatically gets stored in the notepads.

    But when I used the code, I get an error box message saying "processXMLDoc : Unknown"

    I plan to use it for my college website, but I have no clue as to what to do to fix it.

    Following is the code:

    First the index.htm

    Code:
    <html> 
    <head> 
    <meta name='keywords' content='Web,JavaScript,Scratch,Pad,Note'> 
    <script language="JavaScript" src="AJAXRequest.js"></script> 
    <script language="JavaScript" src="ScratchPad.js"></script> 
    <style type='text/css'> 
    body { 
       font-family: Arial, Verdona, Helvetica; 
       font-size: 11pt; 
    } 
    </style> 
    </head> 
    <body> 
    Instructions: Press the <b>Add</b> button to create a new scratch pad.  Use <b>Show All</b> to show scratch pads you had previously hidden<br> 
    using the menu provided.  System automatically handles saving entries.<br><br> 
    <input onclick="javascript: addSP('', event);" value="Add" type="button">&nbsp;&nbsp;&nbsp; 
    <input type='button' value='Show All' onclick="javascript: unhideSPs();"> 
    </body> 
    </html>
    Next, the AJAXRequest.js
    http://www.b3ta.cr3ation.co.uk/data/js/AJAXRequest.js


    And the scratchpad.js
    http://www.b3ta.cr3ation.co.uk/data/js/ScratchPad.js


    I get an error box message saying "processXMLDoc : Unknown"
    I presume that might be related to AJAXRequest.js, maybe somewhere in the following code:
    Code:
     *    <body onload="req.loadXMLDoc('http://localhost/MonkeySite/workerPage.cfm?theAge=41');">
    What should I do to fix the error? HELP!
    thanks in advance.. Jeathrow

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Linking to a page with the file on it would really help.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Nov 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation

    Quote Originally Posted by djr33
    Linking to a page with the file on it would really help.
    Here s the page:
    http://www.b3ta.cr3ation.co.uk/data/htm/scratchpad.htm

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Interesting.

    Is there any other file(s)?
    With AJAX, I'd generally expect php or something.

    That is likely what is giving a bad response.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  5. #5
    Join Date
    Nov 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Code:
     *    <body onload="req.loadXMLDoc('http://localhost/MonkeySite/workerPage.cfm?theAge=41');">
    There does seem to be one, as this code snippet from AJAXRequest.js [http://www.b3ta.cr3ation.co.uk/data/js/AJAXRequest.js] suggests.

    But I have no clue as to what type of document, or with what function.

  6. #6
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    That would appear to be the issue, then.

    localhost means "this server"
    So... you should have a folder on the root of your server called "Monkeysite/workerspage.cfm

    However, I don't know what it does. Also, you could change that line AND any others referring to the file to be another location/name, which might help.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  7. #7
    Join Date
    Apr 2006
    Location
    London
    Posts
    77
    Thanks
    0
    Thanked 0 Times in 0 Posts

  8. #8
    Join Date
    Nov 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation

    yes thats wat i was looking for but i dunno the code

    how should i get the .cfm page or its functions?

    HELPPPP!!!

  9. #9
    Join Date
    Nov 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation

    Does anyone know wat to substitiute for tht function?
    what do i do to that .cfm file?? i cant even get hold of it on from the local host link

    HELP!!!! really desperate!"
    jeath

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •