[Cartoweb-users] What is smarty doing to my href!!!!
Oliver Christen
oliver.christen at camptocamp.com
Wed Oct 3 04:25:47 EDT 2007
3DSite< and > shouldnt be a problem as they are encoded and decoded automaticaly by cartoweb ajax layer. Sending html fragments via ajax doesnt cause any problem in other plugins so it shouldnt in your.
but imbricating quote and doublequote may be problematic.
why dont you put the popup code in a function in a .js and simlpy call it from the template ?
... onclick="openMe({$value})" > in the template
and in a .js
function openMe(value) {
window.open('http://wssoilution.bosqom.nl/Boorstaat.aspx?width=450&height=250&language=nl&layout=someBPLname&view=single&measurementobjects='+value+'outputtype=jpg&database=BoormanagerV2', value, 'width=250,height=450,scrollbars=yes,resizable=yes');
}
something like that
(btw, below you tried to inlcude a <img into a <a href, that certainly wont work)
----- Original Message -----
From: Milo van der Linden
Cc: cartoweb-users at lists.maptools.org
Sent: Tuesday, October 02, 2007 6:52 PM
Subject: Re: [Cartoweb-users] What is smarty doing to my href!!!!
I am one step further, it probably has to do with the fact that I use ajax and xml, the <> signs in my code are not ajax compatible, so I probably should use some sort of function to transfer them to html valid characters, is there a function for that?
Milo van der Linden schreef:
I am entering the following in a tables.tpl
{capture name=some_content assign=popText}
<img SRC="http://wssoilution.bosqom.nl/Boorstaat.aspx?width=550&height=250&language=nl&layout=someBPLname&view=single&measurementobjects={$value}&outputtype=jpg&database=BoormanagerV2">
{/capture}
<a href="#" {popup caption='Server Info' text=$popText}>MouseOver Me!</a>
The href gets completely screwed up, everything gets mixed: Firebug reports this:
<a boorstaat.aspx?width="550&height=250&language=nl&layout=someBPLname&view=single&measurementobjects=1-4&outputtype=jpg&database=BoormanagerV2"" wssoilution.bosqom.nl="" http:="" onmouseover="return overlib('<img SRC=" href="#">\r\r',CAPTION,'Server Info');" onmouseout="nd();">MouseOver Me!</a>
unterminated string literal
http://cartoweb.bosqom.nl/cartoweb3/htdocs/index.php
Line 1
This problem is really messing with my mind, for a complete day already. Is there anyone that is able to answer me?
--
Milo van der Linden
skype: milovanderlinden
mlinden at zeelandnet.nl
milovanderlinden at gmail.com
milo at 3dsite.nl
http://www.3dsite.nl
De informatie in dit bericht reflecteert mijn persoonlijke mening en niet die van een bedrijf of instantie. Aan de informatie kunnen geen rechten worden ontleend. Indien dit bericht onderdeel is van een forum, mailing-list of community dan gelden automatisch de bij het betreffende medium behorende voorwaarden. The information in this message reflects my personal opinion and not that of a company or public body. All rights reserved.If this message is contained in a mailing-list or community, the rights on the medium are automatically adapted.
----------------------------------------------------------------------------
_______________________________________________
Cartoweb-users mailing list
Cartoweb-users at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/cartoweb-users
--
Milo van der Linden
skype: milovanderlinden
mlinden at zeelandnet.nl
milovanderlinden at gmail.com
milo at 3dsite.nl
http://www.3dsite.nl
De informatie in dit bericht reflecteert mijn persoonlijke mening en niet die van een bedrijf of instantie. Aan de informatie kunnen geen rechten worden ontleend. Indien dit bericht onderdeel is van een forum, mailing-list of community dan gelden automatisch de bij het betreffende medium behorende voorwaarden. The information in this message reflects my personal opinion and not that of a company or public body. All rights reserved.If this message is contained in a mailing-list or community, the rights on the medium are automatically adapted.
------------------------------------------------------------------------------
_______________________________________________
Cartoweb-users mailing list
Cartoweb-users at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/cartoweb-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20071003/6b23ab00/attachment.html
More information about the Cartoweb-users
mailing list