[Code Review]: Print widget doesn't work with IIS7

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

[Code Review]: Print widget doesn't work with IIS7

hubu

Hi list:

 

I attached a patch for ticket #351, please feel free to review this patch.

URL: http://trac.osgeo.org/fusion/ticket/351

 

 

Comment:

There is a defect in either JxLib or IIS7. The Print dialog is implemented as a Jx.Dialog. The content of the Jx.Dialog could be set either by:

    Jx.Dialog.content = <html code>,

or Jx.Dialog.contentURL = <content page url>

But, with IIS7, the Jx.Dialog.contentURL doesn't work. The server always get a 400 Bad Request error.

This submission just use the Jx.Dialog.content = <html code> to load the dialog content, and remove the print.html.

Thanks,

-Buddy

 


_______________________________________________
fusion-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-dev
Reply | Threaded
Open this post in threaded view
|

Re: [Code Review]: Print widget doesn't work with IIS7

TJmapper
I have an install of Mapguide Enterprise 2010 and I tried this code to no avail. My print dialog comes up blank still and i get a 404 error instead of a 400. Mine is still looking for the Print/Print.HTML I believe.

Are there any other tricks with the Print.js I should try? Maybe there is something i am missing, but i can completely remove the Print.js file and it comes up with the same error. Does the Enterprise version read from some place else?

I have been struggling with this for a few days now.


Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: [Code Review]: Print widget doesn't work with IIS7

Kori Maleski
On line 59 of Print.js:

Change
this.dialogContentURL = Fusion.getFusionURL() + widgetTag.location + 'Print/Print.html';
to
this.dialogContentURL = Fusion.getFusionURL() + widgetTag.location + 'Print/Print.php';

Rename the file Print.html to Print.php (change the extension)

That may work.  IIS7 has an issue with GETs vs POSTs when utilizing html pages.


Cheers,

Kori Maleski


On Tue, Mar 30, 2010 at 5:53 AM, TJmapper <[hidden email]> wrote:

I have an install of Mapguide Enterprise 2010 and I tried this code to no
avail. My print dialog comes up blank still and i get a 404 error instead of
a 400. Mine is still looking for the Print/Print.HTML I believe.

Are there any other tricks with the Print.js I should try? Maybe there is
something i am missing, but i can completely remove the Print.js file and it
comes up with the same error. Does the Enterprise version read from some
place else?

I have been struggling with this for a few days now.


Thanks.
--
View this message in context: http://n2.nabble.com/Code-Review-Print-widget-doesn-t-work-with-IIS7-tp4150860p4824288.html
Sent from the Fusion Developers mailing list archive at Nabble.com.
_______________________________________________
fusion-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-dev


_______________________________________________
fusion-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-dev
Reply | Threaded
Open this post in threaded view
|

Re: [Code Review]: Print widget doesn't work with IIS7

Paul Deschamps
I think what you are looking for is here:

http://support.microsoft.com/kb/819267

Cheers

Paul D.

On Tue, Mar 30, 2010 at 5:05 PM, Kori Maleski <[hidden email]> wrote:

> On line 59 of Print.js:
>
> Change
> this.dialogContentURL = Fusion.getFusionURL() + widgetTag.location +
> 'Print/Print.html';
> to
> this.dialogContentURL = Fusion.getFusionURL() + widgetTag.location +
> 'Print/Print.php';
>
> Rename the file Print.html to Print.php (change the extension)
>
> That may work.  IIS7 has an issue with GETs vs POSTs when utilizing html
> pages.
>
>
> Cheers,
>
> Kori Maleski
>
>
> On Tue, Mar 30, 2010 at 5:53 AM, TJmapper <[hidden email]> wrote:
>>
>> I have an install of Mapguide Enterprise 2010 and I tried this code to no
>> avail. My print dialog comes up blank still and i get a 404 error instead
>> of
>> a 400. Mine is still looking for the Print/Print.HTML I believe.
>>
>> Are there any other tricks with the Print.js I should try? Maybe there is
>> something i am missing, but i can completely remove the Print.js file and
>> it
>> comes up with the same error. Does the Enterprise version read from some
>> place else?
>>
>> I have been struggling with this for a few days now.
>>
>>
>> Thanks.
>> --
>> View this message in context:
>> http://n2.nabble.com/Code-Review-Print-widget-doesn-t-work-with-IIS7-tp4150860p4824288.html
>> Sent from the Fusion Developers mailing list archive at Nabble.com.
>> _______________________________________________
>> fusion-dev mailing list
>> [hidden email]
>> http://lists.osgeo.org/mailman/listinfo/fusion-dev
>
>
> _______________________________________________
> fusion-dev mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/fusion-dev
>
>



--
    Paul Deschamps
    Applications Specialist
    DM Solutions Group Inc.

    Office: (613) 565-5056 x28
    [hidden email]
    http://www.dmsolutions.ca
    http://research.dmsolutions.ca
_______________________________________________
fusion-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-dev
Reply | Threaded
Open this post in threaded view
|

Re: [Code Review]: Print widget doesn't work with IIS7

TJmapper
Thank you for your help. My print widget works, but i have another question.

I had to edit a file called fusionSF-compressed.js to get this to work, not Print.js. I am assuming this is an autodesk thing? Like i said i installed using Mapguide Enterprise 2010. My issue is that this js file is just 1 long line of text almost 700k characters long. Is there a compiler or something i am missing? Im not nearly as fluent in the code as most of you guys so i appreciate your patience.

Thanks again.
Reply | Threaded
Open this post in threaded view
|

Re: [Code Review]: Print widget doesn't work with IIS7

Kori Maleski
In reply to this post by Paul Deschamps
Thanks Paul!

On Tue, Mar 30, 2010 at 8:27 PM, Paul Deschamps <[hidden email]> wrote:
I think what you are looking for is here:

http://support.microsoft.com/kb/819267

Cheers

Paul D.

On Tue, Mar 30, 2010 at 5:05 PM, Kori Maleski <[hidden email]> wrote:
> On line 59 of Print.js:
>
> Change
> this.dialogContentURL = Fusion.getFusionURL() + widgetTag.location +
> 'Print/Print.html';
> to
> this.dialogContentURL = Fusion.getFusionURL() + widgetTag.location +
> 'Print/Print.php';
>
> Rename the file Print.html to Print.php (change the extension)
>
> That may work.  IIS7 has an issue with GETs vs POSTs when utilizing html
> pages.
>
>
> Cheers,
>
> Kori Maleski
>
>
> On Tue, Mar 30, 2010 at 5:53 AM, TJmapper <[hidden email]> wrote:
>>
>> I have an install of Mapguide Enterprise 2010 and I tried this code to no
>> avail. My print dialog comes up blank still and i get a 404 error instead
>> of
>> a 400. Mine is still looking for the Print/Print.HTML I believe.
>>
>> Are there any other tricks with the Print.js I should try? Maybe there is
>> something i am missing, but i can completely remove the Print.js file and
>> it
>> comes up with the same error. Does the Enterprise version read from some
>> place else?
>>
>> I have been struggling with this for a few days now.
>>
>>
>> Thanks.
>> --
>> View this message in context:
>> http://n2.nabble.com/Code-Review-Print-widget-doesn-t-work-with-IIS7-tp4150860p4824288.html
>> Sent from the Fusion Developers mailing list archive at Nabble.com.
>> _______________________________________________
>> fusion-dev mailing list
>> [hidden email]
>> http://lists.osgeo.org/mailman/listinfo/fusion-dev
>
>
> _______________________________________________
> fusion-dev mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/fusion-dev
>
>



--
   Paul Deschamps
   Applications Specialist
   DM Solutions Group Inc.

   Office: (613) 565-5056 x28
   [hidden email]
   http://www.dmsolutions.ca
   http://research.dmsolutions.ca


_______________________________________________
fusion-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-dev
Reply | Threaded
Open this post in threaded view
|

Re: [Code Review]: Print widget doesn't work with IIS7

Michael Adair
In reply to this post by TJmapper
That is the compressed and single file version of Fusion (which can be
re-created using the Ant build script build.xml  
http://trac.osgeo.org/fusion/wiki/ANTBuildSystem).  That file is useful
for a production site, but for debugging and developing, it is easier to
just load fusion.js in place of fusionSF-compressed.js - that will pull
in all the other files required.  That way you can modify the individual
files and then you can create the compressed single file build to
optimize performance.


Mike


TJmapper wrote:

> Thank you for your help. My print widget works, but i have another question.
>
> I had to edit a file called fusionSF-compressed.js to get this to work, not
> Print.js. I am assuming this is an autodesk thing? Like i said i installed
> using Mapguide Enterprise 2010. My issue is that this js file is just 1 long
> line of text almost 700k characters long. Is there a compiler or something i
> am missing? Im not nearly as fluent in the code as most of you guys so i
> appreciate your patience.
>
> Thanks again.
>  

--
   Michael Adair
   Senior Software Architect
   DM Solutions Group Inc.

   Office: (613) 565-5056 x26
   [hidden email]
   http://www.dmsolutions.ca
   http://research.dmsolutions.ca


_______________________________________________
fusion-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-dev
Reply | Threaded
Open this post in threaded view
|

Re: [Code Review]: Print widget doesn't work with IIS7

TJmapper
Thank you sire. That is very helpful.


                                                                                                                                     
  From:       "Mike Adair [via OSGeo.org]" <[hidden email]>                                          
                                                                                                                                     
  To:         TJmapper <[hidden email]>                                                                                          
                                                                                                                                     
  Date:       03/31/2010 12:23 PM                                                                                                    
                                                                                                                                     
  Subject:    Re: [Code Review]: Print widget doesn't work with IIS7                                                                  
                                                                                                                                     





That is the compressed and single file version of Fusion (which can be
re-created using the Ant build script build.xml
http://trac.osgeo.org/fusion/wiki/ANTBuildSystem).  That file is useful
for a production site, but for debugging and developing, it is easier to
just load fusion.js in place of fusionSF-compressed.js - that will pull
in all the other files required.  That way you can modify the individual
files and then you can create the compressed single file build to
optimize performance.


Mike


TJmapper wrote:

> Thank you for your help. My print widget works, but i have another
question.
>
> I had to edit a file called fusionSF-compressed.js to get this to work,
not
> Print.js. I am assuming this is an autodesk thing? Like i said i
installed
> using Mapguide Enterprise 2010. My issue is that this js file is just 1
long
> line of text almost 700k characters long. Is there a compiler or
something i
> am missing? Im not nearly as fluent in the code as most of you guys so i
> appreciate your patience.
>
> Thanks again.
>

--
   Michael Adair
   Senior Software Architect
   DM Solutions Group Inc.

   Office: (613) 565-5056 x26
   [hidden email]
   http://www.dmsolutions.ca
   http://research.dmsolutions.ca


_______________________________________________
fusion-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-dev


View message @
http://n2.nabble.com/Code-Review-Print-widget-doesn-t-work-with-IIS7-tp4150860p4831864.html

To unsubscribe from Re: [Code Review]: Print widget doesn't work with IIS7,
click here.