I have the coordinates (X,Y) of a point in an HTML document. How do I determine what DOM node is at those coordinates?
Some ideas:
Is there a DOM hit test function that I missed, that takes a point (X,Y) and returns the DOM element there?
Is there an efficient way to walk the DOM element tree to find the containing element? This seems...
Say I had to links with up/down arrows for moving a table row up or down in order. What would be the most straightforward way to move that row up or down one position (using jQuery)?
There doesn't seem to be any direct way to do this using jQuery's built in methods, and after selecting the row with jQuery, I haven't found a way to then ...
I've searching forever trying to figure out why IE will not save the current caret position and then reload it. To be descriptive of the situation it works like this:
Client wants Tinymce custom built with an ajax image loader that is simplistic in the nature that any "idiot" can upload and set some settings to an image within the text...
How would you split Regex subexpression matches in to multi-dimensional string arrays?
I have a "myvar" string of:
1-4:2;5-9:1.89;10-24:1.79;25-99:1.69;100-149:1.59;150-199:1.49;200-249:1.39;250+:1.29
which is a repeat of QuantityLow - QuantityHigh : PriceEach ;
I used this "myreg" Regex /(\d+)[-+](\d*):(\d+\.?\d*);?/g
Used it with ...
What is the logic of Lightbox 2 on where to position the popup?
It seems that when using Firefox or Chrome it shows up in different places on different pages. Is there any setting to have it show at the same height on every page for consistency?
What is the CSS or logic it's using to determine positioning?
...
I have this ajax call to a doop.php.
function doop(){
var old = $(this).siblings('.old').html();
var new = $(this).siblings('.new').val();
$.ajax({
url: 'doop.php',
type: 'POST',
data: 'before=' + old + '&after=' + new,
success: function(resp) {
if(resp == 1) {
$(this).siblings('.old').html(new);
}
}...
Hi there
I'm lookin for a javascript plugin (for js/any framework)
I want to create a textarea that while I type will using a supplied data array, check for predictive matches to the current word im typing and try to suggest a solution.
All solutions I've found so far (for jquery) only match one word, then end...
I want to write like...
Just a simple question that I can't seem to find the answer to.
myarray.length()
The above will return the length including deleted items. How do I get the length without deleted items? Thanks
EDIT:
Thanks for the answers. I am deleting by writing 'delete myarray[0]' and this works well. Other sections of the script rely on the l...
hi
I have downloaded a tiny_mce.js file and implemented it. In that there is a style drop down but it is empty, I want to show different styles in it, what will be I do for implementing styles in style dropdown? Any one help me in details?
...
Work on ASP.net vs 05 C#,There are three textBox.Length,Height,Sft.I want to multiply Length*Height and want to put value on Sft text.
<asp:TextBox ID="txtLength" runat="server"></asp:TextBox>
<asp:TextBox ID="txtHeight" runat="server" onblar="javascript:ComputeSft( );" ></asp:TextBox>
<asp:TextBox ID...
I have an ASP.NET repeater that shows a list of items with a delete LinkButton.
I want to setup the Delete LinkButtons to show a JQuery Dialog for a confirmation. If the "OK" button is clicked, I want to do the postback.
The obvious problem is that each LinkButton in the repeater will have it's own ID and I don't want to have to dupli...
Hi,
I did JSON.parse & getting output in javascript variable "temp" in format like this
{"2222":{"MId":106607,
"Title":"VIDEOCON Semi Automatic Marine 6.8kg",
"Name":"washma01",
}}
I tried like
alert(temp[0][0]);
alert(temp.2222[0].MId);
but not getting out put.
How will i access this data in java script ?
...
Hi all:
I am trying to use JSTestDriver to automate my Javascript tests with Hudson as the Continuous Integration backend. I'm aiming to get Hudson to at least produce a report on the test results, with failing a build upon failed test as the most desirable outcome.
I did a quick search on the web, and found that Hudson doesn't appear...
I have an element that is dynamically created with new Element('div') and is then faded in, moved, and faded out. In every browser, my code works as expected – every browser but IE.
Internet Explorer complains that 'undefined' is null or not an object exactly as documented on Prototype's Lighthouse.
To get the error, I write, new Mess...
I have some SQL output that id like to format into a collapsible div. The problem is that all the JS show/hide div code i find isnt really meant for dynamic instances, they all need to be pre assigned to a particular div. Since my results may vary from 1-30...this isnt really a good option.
My question. Is there an easy way to dynamical...
I'm generating HTML elements on the fly using javascript. These controls are located within an update panel on the browser.
For some reason, I'm unable to access those elements in the Page.Form[] array.
Is there a reason for this?
My current solution creates an array of strings, turns that into a JSON string, stores that in a hidden v...
Hello,
Try running the code below:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script> b = jQuery.noConflict(true); </script>
<script src="http://ajax.googleapis.com/ajax/libs/mootools/1.2.3/mootools-yui-compressed.js"></script>
<script>
(function($){
$.a = funct...
for example
<a href="http://stackoverflow.com" class="selected">stackoverflow</a>
my jquery is here
alert($('.selected').attr('href'));
but this don't work
How to get attribute from selected object?
...
How to get iframe src page title and then set main page title
...
Hi All,
I have to create one expandable /collapseable panel in jQuery, and facing some issues.
code
HTML
<div>
<img src="8A7FA0A1FFEC5443785B9B29AF7629.jpg" alt="" />
<div>
<span>
Hello
</span>
<ul class="myul">
...