Hello
I'm looking for a way to make specific elements in a Html rich text editor read-only and not possible to modify by the user. Is there any way to achieve this behavior?
An example of the rich text editor Im refering to would be this code snippet:
<html>
<head>
<script type="text/javascript">
var Editor = {
Init: functi...
I'm working with IE7 and some jQuery dialogs and I'm running into about a 6meg leak per dialog opened. I'm assuming it's to do with closures, but so far everything I've done to remove them haven't helped. At this point I think I've taken care of all the closures except on for a callback function I pass in, but it's still leaking 6 megs e...
High!
I just wondered why this won't work?
$.post($("#jsCheckoutForm_1b").attr("action"), {
sLoginName: $("#sLoginName").val(),
sPassword: $("#sPassword").val()
}, function(sData){
alert(sData);
}
);
the fun thing is that if i hard code the action in stead of using $("#jsCheckoutForm_1b").attr("action"), th...
I am using jquery to get a count of children elements within a parent div.
$('#slideshow > div').size()
Then using append(), I'd like to inject the number of div elements that are in #slideshow into another div called .mainImageBrowserTabButtonWrapper
Any help on this would be appreciated.
EDIT
I realize my initial question didn't ...
<div class="divorder">
<table class="formfieldsmall">
<tr>
<td style="width: 2%;">
<img class="trigger" src="/SPLockerWebApp/Assets/themes/default/images/plus.png" />
</td>
</tr>
</table>
</div>
I need to change the image, but the following is no...
Hi, I am having some issues with drag, drop and positioning in jquery.
Here is what I am trying to achieve:
You drag a clone of a div to another div which is the "stage"
I need to position of the clone and not the original
Here is my attempt so far:
$(function() {
$("#workspacemaster").droppable({
accept: '.draggable',
drop: func...
Okay, I have enough code that I probably shouldn't post the code directly, but I'm not sure where the problem lies within it.
The page in question is at letterlyyours.com/design.php. How it's supposed to work is that you type in a word, press "Submit", and then little photos of each letter appear below--that you can scroll up and down....
I have some HTML:
<div id="tagCloud">
<a class="5" title="1 records" href="tags=Battleship">Battleship</a>
<a class="4" title="1 records" href="tags=Cabbage">Cabbage</a>
etc...
I want to take the class value, and convert it to a word.
So if class = 5 append class five?
...
I have a table of locations. Each location has a individual url associated with it. I am using one column to activate / deactivate that url so I can turn locations off and on. I'm using jQuery's bind / click to do that with an AJAX request.
I now want to make clicking anywhere on that table row take the user to that individual url.
va...
Hi there,
I have a draggable list (.field) where you can drag & drop items from it into a sortable list (.sortlist). I did it this way because I didn't want the master list (.field) altered in any way. It works fine, except I cannot work out how to manipulate the dropped field in a sortable list.
I can do it from a draggable into a dr...
given the following string:
var htmlStr = '<p class="red_349dsa01">This is</p><p class="blue_saf9vsaz">a test</p>';
how can I remove the very first and last tag off this string? This would be the result:
var htmlStr = 'This is</p><p class="blue_saf9vsaz">a test';
I know this will create invalid HTML, but I just want to know if thi...
Hello.
I'm working on a site with HTML/CSS/jQuery that is trying to act like a Flash site. I've had to use @font-face to get the desired font to work. The client wants the fade in of text and content too (so it looks like the Flash file). The problem is, the font's look jagged and ugly in Internet Explorer.
My CSS for the font face loo...
Hi,
i have this function :
jQuery.fn.getParent = function(num) {
var last = this[0];
for (var i = 0; i < num; i++) {
last = last.parentNode;
}
return jQuery(last);
};
and this html :
<div class="statuscontainer">
<div class="title">
Title of div here
</div>
blah blah blah blah <br>
<a onclick="$(this).getParent(4).fadeTo("slow"...
Next to an input field, I want to have a small '[?]' link which will display a brief clarification. I would like this link to display this tooltip both when the mouse hovers over the [?] as well as when the [?] is clicked. There is no other action associated with this [?] link.
A normal tooltip (as provided by browsers when faced with H...
I have a dynamic navigation and need to open one link in a new window.
As such I am using jQuery to help, but the following code does not seem to work:
<script type="text/javascript">
$('a[href="http://globalhealth-dev.oit.duke.edu/education/global-health-courses"]').attr("target", "_blank");
</script>
To try it for yourself: http:/...
I am trying to use the SimpleModal plugin for jquery to load a popup div with a CKEditor in it, but when the modal box opens up, the CKeditor is all disabled and won't let me type text into it. I am using all default settings.
Any suggestions would be great.
...
Given the following strings:
htmlStr1 = "<img>test1</img>";
htmlStr2 = "<div>test2</div>";
I'd like to know if there's a way to write a function just to detect for the "img" tag (for example). So if both of these strings are passed to it, and it should not do anything if the 2nd string is passed to it.
so for example, you'd run a fu...
When I move my JQUERY dialog box, the button bottom area gets resized (getts longer vertically). How can I stop this from happening and what is causing for this to happen?
...
Hey, my script seems to be getting this warning message whenever I run it.
This happens when I call a jquery function in the script. I have included the script below and put - Warning: Unresponsive Script - comment where I called the function. I don't really know why I'm getting the warning message.
Here is the project Im working on, i...
<ul>
<li>one</li>
<li>element</li>
<li>text</li>
<li>val</li>
</ul>
how can i get the position in the ul of the clicked li ?
...