Re: [mapguide-users] Ajax viewer, URL in Properties Pane

2017-02-09 Thread gom
That function does the trick. Thanks for all the support! -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Ajax-viewer-URL-in-Properties-Pane-tp5306236p5307188.html Sent from the MapGuide Users mailing list archive at Nabble.com.

Re: [mapguide-users] Ajax viewer, URL in Properties Pane

2017-02-08 Thread RenoSun
Hey gom, I think I found the solution. Please change the HtmlDecode function with following code: function HtmlDecode(input) { var txt = document.createElement("textarea"); txt.innerHTML = input; return txt.value; } -- View this message in context: http://osgeo-org.1560.x6.nabbl

Re: [mapguide-users] Ajax viewer, URL in Properties Pane

2017-02-08 Thread gom
OK. I did that and the console shows 4 property values. The url property value shows as null, all the other 3 show as they exist in the database. G20070192 1 null ADV01 -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Ajax-viewer-URL-in-Properties-Pane-tp5306236p5307046.h

Re: [mapguide-users] Ajax viewer, URL in Properties Pane

2017-02-08 Thread RenoSun
Please copy and paste the code of last propertyctrl.txt that I attached, and let me know what it print under the console. The if statement with brackets should look like this I assume: function HtmlDecode(input) { if (input == null || input == ""){ return input; } if (_el == n

Re: [mapguide-users] Ajax viewer, URL in Properties Pane

2017-02-08 Thread gom
Using the debugger on the browser here is what I am seeing. When the line /*console.log(input);*/ is included in the HtmlDecode function, the code path followed is through that first if statement and return input gives the expected result. When that same line of code is left out of the function,

Re: [mapguide-users] Ajax viewer, URL in Properties Pane

2017-02-07 Thread RenoSun
I would think you should try to clean all the browsing data and history to make sure the browser is using the latest propertyctrl.templ Also, don't use alert, but using console.log('abcd') maybe. Try to use before and after the HtmlDecode. for(var i=0; i < properties.length; i++) *co

Re: [mapguide-users] Ajax viewer, URL in Properties Pane

2017-02-07 Thread gom
I added some alert statements to the HtmlDecode function, just before the return statements, in the hopes of gaining some feedback. Oddly enough, the function, as shown below, now correctly shows the links in the properties pane. Any thoughts? Thanks again. -- View this message in context:

Re: [mapguide-users] Ajax viewer, URL in Properties Pane

2017-02-07 Thread gom
When I use the code from the propertyctrl.txt file that is attached, I get no properties at all. The console shows no errors. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Ajax-viewer-URL-in-Properties-Pane-tp5306236p5306782.html Sent from the MapGuide Users mailing list

Re: [mapguide-users] Ajax viewer, URL in Properties Pane

2017-02-07 Thread gom
Not a question really but a comment. When I preview the data source, using "View Data" both in Maestro and Infrastructure Studio, I see the link exactly as expected in those data tables. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Ajax-viewer-URL-in-Properties-Pane-tp

Re: [mapguide-users] Ajax viewer, URL in Properties Pane

2017-02-07 Thread RenoSun
Hi Gom, I am using nvarchar(255) as the data type of my HTML hyperlink. Here is the HTML hyperlink field looks like on our SQL Server 2008 R2: Property Report Also, maybe use target="_blank" in your hyp

Re: [mapguide-users] Ajax viewer, URL in Properties Pane

2017-02-07 Thread gom
Reno, Would it be possible to see the exact format of the url string from the database, for the sample record you showed me? I have copied and pasted the string from my database table below. That string always shows up as null in my properties window. I have tried this in SQLite and SQL Server

Re: [mapguide-users] Ajax viewer, URL in Properties Pane

2017-02-06 Thread gom
The XML looks as expected in Maestro. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Ajax-viewer-URL-in-Properties-Pane-tp5306236p5306639.html Sent from the MapGuide Users mailing list archive at Nabble.com. ___ mapguide-users ma

Re: [mapguide-users] Ajax viewer, URL in Properties Pane

2017-02-06 Thread gom
-- View this message in context: http://osgeo-org.1560.x6.nabble.com/Ajax-viewer-URL-in-Properties-Pane-tp5306236p5306638.html Sent from the MapGuide Users mailing list archive at Nabble.com. ___ mapguide-users mail

Re: [mapguide-users] Ajax viewer, URL in Properties Pane

2017-02-06 Thread RenoSun
Okay...would you please post the codes of your original propertyctrl.templ? I don't know why add a simple JavaScript function will cause your map window to hang up... -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Ajax-viewer-URL-in-Properties-Pane-tp5306236p5306637.html

Re: [mapguide-users] Ajax viewer, URL in Properties Pane

2017-02-06 Thread gom
Copying and pasting your complete page also causes my map window to hang up. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Ajax-viewer-URL-in-Properties-Pane-tp5306236p5306623.html Sent from the MapGuide Users mailing list archive at Nabble.com. __

Re: [mapguide-users] Ajax viewer, URL in Properties Pane

2017-02-06 Thread gom
I'm using Mapguide 3.1 if that matters at all. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Ajax-viewer-URL-in-Properties-Pane-tp5306236p5306619.html Sent from the MapGuide Users mailing list archive at Nabble.com. ___ mapguide

Re: [mapguide-users] Ajax viewer, URL in Properties Pane

2017-02-06 Thread gom
No errors in the console window -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Ajax-viewer-URL-in-Properties-Pane-tp5306236p5306617.html Sent from the MapGuide Users mailing list archive at Nabble.com. ___ mapguide-users mailing

Re: [mapguide-users] Ajax viewer, URL in Properties Pane

2017-02-06 Thread Gord McKenzie
--Original Message- From: mapguide-users [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of RenoSun Sent: Monday, February 06, 2017 10:43 AM To: mapguide-users@lists.osgeo.org Subject: Re: [mapguide-users] Ajax viewer, URL in Properties Pane No problem. The solution for Ajax viewer

Re: [mapguide-users] Ajax viewer, URL in Properties Pane

2017-02-06 Thread RenoSun
Here is the full codes of my propertyctrl.templ -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Ajax-viewer-URL-in-Properties-Pane-tp5306236p5306615.html Sent from the MapGuide Users mailing list archive at Nabble.com. ___

Re: [mapguide-users] Ajax viewer, URL in Properties Pane

2017-02-06 Thread RenoSun
I will suggest you undo the modification, and just add function HtmlDecode() function first. var _el = null; //Our "parser" element function HtmlDecode(input) { if (input == null || input == "") return input; if (_el == null) _el = document.createElement('div');

Re: [mapguide-users] Ajax viewer, URL in Properties Pane

2017-02-06 Thread gom
This is the correct viewer for my situation. When I replace the two functions in propertyctrl.templ, my webpage doesn't load. The map window freezes. I assume it is failing when it tries to load the propertyctrl.templ file. Any idea why this might happen? Thanks -- View this message in con

Re: [mapguide-users] Ajax viewer, URL in Properties Pane

2017-02-06 Thread RenoSun
No problem. The solution for Ajax viewer is similar. Please modify the following codes. C:\Program Files\MapGuide\www\viewerfiles\propertyctrl.templ function SetProperties(count, properties) { var code; propCount = count; if(count != 1) { var text; if(count == 0)

Re: [mapguide-users] Ajax viewer, URL in Properties Pane

2017-02-06 Thread gom
Thanks for those links. I have read them. As you can see from my post, my problem is with the Ajax viewer, not the Fusion viewer. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Ajax-viewer-URL-in-Properties-Pane-tp5306236p5306516.html Sent from the MapGuide Users mailing

Re: [mapguide-users] Ajax viewer, URL in Properties Pane

2017-02-03 Thread RenoSun
I think these links will help you :) enable-hyperlink-in-selection-panel-of-fusion-viewer SQL - html display problem in properties pane

[mapguide-users] Ajax viewer, URL in Properties Pane

2017-02-03 Thread gom
Following advice in the newsgroup I have created a column in my SQL Server Spatial table that has a url in the form shown below. In the Ajax Properties Pane this is always rendered as null. I can label the feature with this column value and it looks exactly as shown below. Is this behavior broke