Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.

#1 Dec. 20, 2010 14:20:16

T.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

template concat of string trouble


hello

i don't the the name of ' and this " but is about my trouble with it ...

i try to made a script for open layers with url :http://ipadress/webserviceslike this

var wms0=new
OpenLayers.Layer.WMS(restcl_bus_line,'http://192.168.12.60/cgi-bin/mapserv?map=/var/www/geomod/demo.map&;',

from string concatenation wmsdef +="'http://192.168.12.60/cgi-bin/mapserv?map=/var/www/geomod/demo.map&;',"

but i receive this in the web page

wms0=new
OpenLayers.Layer.WMS(restcl_bus_line,'http://192.168.12.60/cgi-bin/mapserv?map=/var/www/geomod/demo.map&',

// make comment for the rest of the line :(
and & became &
and ' became '

so my script not working

did someone knows how to change this ?

regards

tonton

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#2 Dec. 20, 2010 14:37:26

Tom E.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

template concat of string trouble


On Mon, Dec 20, 2010 at 2:20 PM, Tonton <to.ton...@gmail.com> wrote:
> hello
>
> i don't the the name of ' and this " but is about my trouble with it ...
>
> i try to made a script for open layers  with url
> :http://ipadress/webservices>
> like this
>
> var wms0=new
> OpenLayers.Layer.WMS(restcl_bus_line,'http://192.168.12.60/cgi-bin/mapserv?map=/var/www/geomod/demo.map&;',
>
> from string concatenation wmsdef
> +="'http://192.168.12.60/cgi-bin/mapserv?map=/var/www/geomod/demo.map&;',"
>
> but i receive this in the web page
>
> wms0=new
> OpenLayers.Layer.WMS(restcl_bus_line,&#39;http://192.168.12.60/cgi-bin/mapserv?map=/var/www/geomod/demo.map&amp;&#39;,
>
> // make comment for the rest of the line :(
> and & became &amp;
> and ' became &#39;
>
> so my script not working
>
> did someone knows how to change this ?
>
> regards
>
> tonton
>http://docs.djangoproject.com/en/1.2/ref/templates/builtins/#autoescapeHTH

Tom

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#3 Dec. 20, 2010 14:41:48

T.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

template concat of string trouble


yes i am reading on this

but this
{{script|escapejs}} seems to not work
i investigate more

thanks


On Mon, Dec 20, 2010 at 3:37 PM, Tom Evans <tevans...@googlemail.com> wrote:

> On Mon, Dec 20, 2010 at 2:20 PM, Tonton <to.ton...@gmail.com> wrote:
> > hello
> >
> > i don't the the name of ' and this " but is about my trouble with it ...
> >
> > i try to made a script for open layers with url
> > :http://ipadress/webservices> >
> > like this
> >
> > var wms0=new
> > OpenLayers.Layer.WMS(restcl_bus_line,'
>http://192.168.12.60/cgi-bin/mapserv?map=/var/www/geomod/demo.map&;',
> >
> > from string concatenation wmsdef
> > +="'http://192.168.12.60/cgi-bin/mapserv?map=/var/www/geomod/demo.map&;
> ',"
> >
> > but i receive this in the web page
> >
> > wms0=new
> > OpenLayers.Layer.WMS(restcl_bus_line,&#39;
>http://192.168.12.60/cgi-bin/mapserv?map=/var/www/geomod/demo.map&amp;&#39> ;,
> >
> > // make comment for the rest of the line :(
> > and & became &amp;
> > and ' became &#39;
> >
> > so my script not working
> >
> > did someone knows how to change this ?
> >
> > regards
> >
> > tonton
> >
>
>http://docs.djangoproject.com/en/1.2/ref/templates/builtins/#autoescape>
> HTH
>
> Tom
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
>http://groups.google.com/group/django-users?hl=en.
>
>

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

Board footer

Moderator control

Enjoy the 20th of October
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support