I have a form with a drop down box and a few other fields but I want to
put it in a javascript field and printed out when a link is clicked. So
it looks something like this:

function bla(){
    var test = '<label>Type</label>{{ form.embeddedvideo.0.type }}';
    return test;
}

the problem is that the formfield returns:

<label>Type</label><select id="id_embeddedvideo.0.type"
class="vSelectField" name="embeddedvideo.0.type" size="1">
    <option value="" selected="selected">---------</option>
    <option value="youtube">YouTube</option>
    <option value="google">Google video</option>
  </select>


which breaks the javascript because it doesn't support multi-line
strings. I was wondering what's the best way around this. I tried using
filters but I got

"Caught an exception while rendering: 'FormFieldWrapper' object has no
attribute 'replace'"

Any suggestions?


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to