POST
|
Sorry for not getting back to you sooner. I had to focus on a more pressing issue. Your last post helped quite a bit, especially pointing out that my print function cannot be in my init() method. However I am still receiving an error. IE is giving this error for the MapPrinter.js file: 'this.map.layerIds' is null or not an object I am hopeful because at least it is calling the function now. Any ideas? Also, I should apologize about the code that I posted because I did not include the code within an external JS file that I was referencing. That's where the print function (<a href="javascript:print();" class="print">Print</a>) was being called. I've been troubleshooting so much that my code is a mess. And once again, thank you thank you for your help. ~Ann
... View more
02-15-2011
10:32 AM
|
0
|
0
|
523
|
POST
|
The code is attached. Thank again for your help, Ann
... View more
02-04-2011
10:14 AM
|
0
|
0
|
523
|
POST
|
Marcello, Thank you so much for your reply, I really appreciate your help. Unfortunately it is still not working. I took your advice and called MapPrinter.js instead. I even looked at the sample.js which also used MapPrinter.js and is automatically installed with Map2PDF (and it works!) and tried to find what I'm doing wrong. No luck. The print button is now doing nothing and I have a browser error that says "Syntax Error; Line: 1; Char: 24" I can't help but think that maybe the WAR file wasn't deployed properly. Do I have to create a virtual directory for it in IIS? Thanks for sticking with me, Ann
... View more
01-26-2011
09:12 AM
|
0
|
0
|
523
|
POST
|
I am a fairly new JSAPI programmer and I am trying to utilize the Map2PDF service in an application. However it doesn't seem to be working completely. I don't think I am calling the PrintMap.js function correctly as nothing is being returned for the layers parameter. I keep receiving the error: "Invalid input json 'layers': A JSONObject text must begin with '{' at character 1 of ." Any advice? Thanks, Ann
... View more
01-24-2011
07:18 AM
|
0
|
8
|
1191
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|