I am getting an error "Unterminated String Contant" on this code. The PHP writes out the javascipt, so here is the HTML. This works fine with apache on Linux, but I am using IIS on Win2000.
The error hits after the javascript call - I think because there is a numeric (1) in the string?
when I try to use double quotes, it gives me an illegal character error.
It doesnt get to the OpenCalendar function - I put an Alert at the front of this function and it doesnt show, so it isnt even getting there. Here is function though. The function displays an Iframe and loads page Calendar.php inside of it.
hmmm...after adding dummy implementations of getXYcoord(), CloseCalendar() and calendar.php it worked on my box.
Maybe you should use an debugger, e.g. the mozilla debugger (http://www.mozilla.org)
Your original code (without the PHP call) works for me under Windows NT with IE 5.5. Perhaps the double-single-quote in your VALUE parameter in the "person#1#Birthdate" field should be two double-quotes? Just something else to try.
ok - so I am no longer getting the error, but I cannot access a function in another file - so when I move the function to the top of my page, it works, but I would like to reference this function in another .js file. Is my syntax to reference the js file incorrect?
dont really know the answer to this, but when I moved the js file to the root, and set the URL to http://localhost/calendar.js, this works - i double and triple checked the previous path (just one more folder /scripts/) and it doesnt seem to want to navigate into that folder. Oh well - this will do fine.