Hi, one of my pages makes IE8 report an js error in line 5942 of jquery (uncompressed). Other pages using the same jquery version works fine. Any ideas what could be the reason ?
Hello, I'm looking for a way to display an editable html code with basic syntax highlighting. I don't need a wysiwyg editor. Basically a textarea with html code highlighting would be enough.
Hi, I'm using the validation plugin and I have a lot of rules set on my page:
$("#myform").validate( rules: {
my_field: {
number:true , required:true },
my_field2: {
required:true }.
my_field3: {
email:true }
.....
} });
The validation works fine.
My question, how can I disable all the rules or the entire validation ? I can submit the form via two buttons to either save the page (here I need validation) or "delete" the current view (here I do not want any validation)
Hello, I have ajax request with a success function. The data I'm getting back are an entire <html> ..</html> page. Is there a way to retrieve from those data only a given DOM element by its id ?
Hello, I'm using ColorBox to open a simple popup and it works fine. In the same page I have a link which sends an ajax request which return the entire <body> content that I then use to replace the body of the current page. After I do this replacement, the colorbox does not open anymore. I got no JS errors.
Hello, I have page with an Ajax request which returns an entire <hml>..</html> page and I would like to use this response data to replace the current page. I wrote the following :
but I'm getting some strange java script errors on the resulting page like "s is undefined (line 1)" but there is no code on that line. I suspect that my it is a problem with the jquery libraries include so I'm wondering if I'm correctly generating the resulting page.
I have a table which have a droppable <tr> and draggable <div>s . In the drop function, I'm always getting the 1st row of the table even if I drop on another row of the table when using IE8. It works in other browsers. Live demo : http://jsbin.com/anogo3
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
On the drop even on the <tr> element, I do another function:
$("#myselector tr").droppable({
drop: function(event, ui) {
...
}
});
The problem is that when I drop something on the link, the "doFunctionA" is called and then only the function defined on the tr element.
How can I disable the doFunctionA() in this case ? I tried overriding it in the "ondrop" function:
$("#myselector tr").droppable({
drop: function(event, ui) {
$(this).find('a').first().click(function(e) {});
}
});
but this doesn't work.
EDIT: I'm actually dragging one tr to another and it's the onClick() of the tr being dragged which is called. So I have the override that onClick event.
ui.draggable.find('a').removeAttr("onclick");
A better solution would be to dump the onClick event totally and do it also in jquery.