Hi All,
I want to insert my own custom tags and scripts around the selected text. Something like this
var range = window.getSelection().getRangeAt(0);
var sel = window.getSelection();
range.setStart( sel.anchorNode, sel.anchorOffset );
range.setEnd(sel.focusNode,sel.focusOffset);
highlightSpan = document.createElement("abbr");
...
Hi guys I want to be able to append divs to my page such that they are appended after a div of a certain class and before teh divs that follow it i.e:
<div class="header">Header DIV</div>
<!-- Want to add using javascript some HTML right here-->
<div class="one-basic-div">...</div>
<div class="one-basic-div">...</div>
<div class="one-ba...
Hi all;
Html Code:
<table>
<tr>
<td>test</td>
</tr>
</table>
Jquery Code:
$(document).ready(function(){
$('table tr:eq(0)').after('<tr><td>bla</td></tr>').css({'color':'red'});
});
ı need after append add css
<tr><td>bla</td></tr> >>> color red
How to make ?
...
Actually that's it. What does this error mean? I've googled on it, but found nothing.
This error appears in firebug console after the page is loaded, or when i click on tabs. It does not prevent the execution of another JavaScript code, but the nature of it is mysterious for me.
...
Hi, I have a problem where if a form submission (set up to submit via AJAX) fails validation, the next time the form is submitted, it doubles the number of post requests - which is definitely not what I want to happen. I'm using the jQuery ValidationEngine plugin to submit forms and bind validation messages to my fields. This is my code ...
I have weird problem,
i've placed an google ads on my page and it is visible in firefox but it's not visible in IE. I tried in different systems..
I could not find the problem...
Javascript is on and google ads are no blocked and no specific ad blocker are enabled. I'm sure about that but i could not find about this issue..
My link ...
I have two list boxes(A,B) with some values and i can send values from A to B or B to A
and i have one save button.
For the first time without updating any list box if i click on save button i am showing message like "NO changes or Done"
But once i send one item from A to B and again sending that same item from B to A it means no chang...
hallo all
i have a site which has a very big scroll on it, and there is an iframe in the middle
set to have no scroll and its height is 3000
anyway the document being opened in the iframe has a jquery dialog in it.
when im looking at the top of the parent
and click a button inside the iframe that opens the dialog
the dialog opens a...
I am trying to make a Login popup window. For example, if someone clicked the login button a popup window will show and it will change the opacity of the main page and give focus to the popup window. Here is an example of a web site that utilizes what I want to implement.
Here
...
I am looking for real-world scenarious for using Web Workers API.
...
I'm now using http://jqueryui.com/demos/autocomplete/ based on some previous recommendations and it's working well for me.
I am looking to format the results in the auto-complete list in a table. Right now my results are something like:
Last name, first name - id number - status code
When there is a list of names nothing lines up ni...
Hello All,
I am creating a pop up window. After I am finished with the work on child(pop up) window and click close button, i need to call a javascript function of the parent window. How can I achieve this.
I am not creating the child window myself but displaying the contents of some other url.
...
Hi,
I have designed a long web page and there are many photos in one column from top to bottom listed one by one.
In order to create a high-level interection with the client, I want those photos loaded when the client scroll-down to the page. The more the go bottom, the more photos are loaded.
For Instance -> mashable.comn)
Waiting fo...
My form is submitted by a link using JavaScript, but I am also trying to validate the from justing jQuery validate. The validation doesn't work when submitted by the link, but it does if I change the link to a submit button. What am I doing wrong?
My form:
<form id="findmatch" method="post" action="search">
<div>
...
Thanks all for the help, rod.
Hi All,
I have a div that contains many spans and each of those spans contains a single href.
Basically it's a tag cloud. What I'd like to do is have a textbox that filters the tag cloud on KeyUp event.
Any ideas or is this possible?
Updated question: What would be the best way to reset the list to ...
I'm coding a WYSIWYG editor width designMode="on" on a iframe. The editor works fine and i store the code as is in the database.
Before outputing the html i need to "clean" with php on the server-side to avoid cross-site-scripting and other scary things. Is there some sort of best practice on how to do this? What tags can be dangerous?...
Hi. I am trying to add some additional html to a div with id slideshow using jQuery. My code:
$("#slideshow").append("<a id="prev" title="Previous Slide">Previous Slide</a><a id="next" title="Next Slide">Next Slide</a>");
This isn't working, can anyone tell me what I am doing wrong?
...
Is there anyway by which i can use the $ or $$ utility selectors with arguments containing special characters?
<div id="my example">
$('my example')
<div class="item1\item2">
$$('div.item1\item2')
I've tried using the standard escape sequence \ but am having no luck.
...
How do I javascript automatically click on a hyperlink (id is link_page) after 5 minutes?
...
<html lang="en">
<head>
<style>
#thisdiv {padding:10px; margin:-15px 0 0 40px; background-color:#333; position:absolute; display:none;}
div.block {margin-top:10px; width:200px;}
div#thisdiv a {color:#fff;}
</style>
</head>
<body>
<div id ="one" class="block"><a href="">one</a></div>
<div id="thisdiv">hello</div>
<div id ="two"class="bl...