[jQuery] [jqmodal] target a textarea
we are trying to create a modal that contains a form with a textarea into
which we want to include content from an ajax call. unfortunately, any
content from the ajax call that is wrapped in HTML tags is stripped out
along with the HTML tags themselves. for example
hello world
would not be displayed in the textarea. it seems like either jqmodal or
jquery itself is preventing html to be displayed in the textarea of a form,
perhaps for security reasons.
here is the javascript we are using for setting up the modal:
$().ready(function() {
var target = $('#ContentModal textarea.target')[0];
$('#ContentModal').jqm({ajax: 'content.php', target:
'.target'});
});
and here you have the html:
<div id="ContentModal" class="jqmWindow">
<div class="jqmClose">X close
</div>
<form id="form" action="." method="post">
<fieldset>
<textarea id="id_content" cols="50" rows="5"
class="target"></textarea>
</fieldset>
<fieldset class="buttons">
<label for="id_submit"> </label>
<input type="submit" value="Submit" />
<input type="button" name="cancel" value="Cancel"
class="jqmClose" onclick="" />
</fieldset>
</form>
</div>
we are using jquery-1.2.3.min.js and the latest release of jqmodal.
any thoughts?
--
View this message in context: http://www.nabble.com/-jqmodal--target-a-textarea-tp15702413s27240p15702413.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.