- Code: Select all
function loadArticle(divID, page) {
var url = page+"?pseudoParam= "+new Date().getTime();
var realId = "div#" + divID;
$(realId).load(url, function(){
$('.wymeditor').wymeditor();
});
}
the form is very simple at the moment.
- Code: Select all
<form name="editArticle" action="'.$_SERVER['PHP_SELF'].'" method="post">
<input type="text" name="title" value="'.$article['title'].'" /><br />
<textarea class="wymeditor">'.$article['article'].'</textarea><br />
<input type="submit" name="submit" value="Update" />
</form></div>
the head of the document contains these 3 scripts
- Code: Select all
<script type="text/javascript" language="javascript" src="'.$config['root_dir'].'js/jQuery.js"></script>
<script type="text/javascript" language="javascript" src="'.$config['root_dir'].'includes/wymeditor/wymeditor.pack.js"></script>
<script type="text/javascript" language="javascript" src="'.$config['root_dir'].'js/scripts.edit.js'.'"></script>
firebug is throwing me this error...
- Code: Select all
jQuery(jQuery.grep(jQuery("script"), function (s) {return s.src && s.src.match(/jquery\.wymeditor(\.pack){0,1}\.js(\?.*)?$/);})).attr("src") has no properties
Does anybody have an idea of how to fix this?
Thanks