I have a specific question about instantiating a QuickTime object in Internet Explorer.
QuickTime in IE uses an <object> as a 'behaviour' template in order to enable DOM events. The behaviour <object> is referenced from the QuickTime plugin instance with IE's behavior style: style="behavior: url(#id_of_behavior_object)".
This works gre...
I came across some javascript at work today that used jQuery to fetch two elements. It then used elem.nodeIndex to determine the position in the elements parent for each element. Nothing is setting this property anywhere and I do now see a reference to it in the msdn, mdc, or anywhere else.
I stepped through this javascript in FireFox ...
$("id").clone()
then put the jQuery object into a div#target
how to do that?
...
I have two html select objects named with the same name (they are arrays with different indexes).
What I am trying to do, is if "off" is selected from the category[0] select element, I would like to disable the category[1] element. I have been trying to use document.getElementsByName() but am having no luck figuring out how to specific...
Hi i have problem with this code, i found it on the internet and when i tested it it gave me the following errorcode:
Parse error: parse error, unexpected $end on line 52
Here is the script:
<?php
function walkDom($node, $level = 0)
{
$indent =";
for ($i = 0; $i nodeType != XML_TEXT_NODE)
{
echo $indent.''.$node->nodeName.'...
Does someone used tinymce.dom.Selection class in tinyMCE? I'm unsuccessfully trying to apply a function to dom.Selection.onBeforeSetContent or onSetContent. The documentation shows the following syntax:
event_callback(<tinymce.dom.Selection> ed, <Object> o)
There's no neat example of its implementation. I'm in a hurry and tend to give...
I want to do this: http://docs.jquery.com/Events/live#typefn
Only .live() doesn't support the change event- any ideas for work arounds?
Need to bind a function to some on-the-fly DOM elements, but not until change.
...
I modify document.getElementById('').innerHTML with Java Script in a page. It's working fine in Firefox, but not IE8. Please see below for more details:
HTML Code:
<table>
<tr id="abc">
<td id="ccc" style="color:red;">ccc</td>
</tr>
</table>
Java Script code:
document.getElementById('abc').innerHTML = '<td id="bbc" styl...
I have some unknown webpages and I want to determine which websites they come from. I have example webpages from each website and I assume each website has a distinctive template.
I do not need complete certainty, and don't want to use too much resources matching each webpage. So crawling each website for the webpage is out of the questi...
<td>
<div class="resumehint"></div>
<input type="file" id="resume" />
</td>
How to get the div before "#resume" with jQuery?
That is ".resumehint"
...
<div id="container">
<div>
<div>
</div>
</div>
<div>
<div>
</div>
</div>
<div>
<div>
</div>
</div>
</div>
$('#container').find('div') will also include those inner divs.
How to fetch only the 3 top level divs?
...
Hi.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--This is auto-generated file. Do not change it!-->
<DB>
<foo />
<bar />
</DB>
I have one problem with it - when i start parsing (DOM) it says that document is not valid.
I've checked what's wrong and the problem is:
Line: 4
Column: 6
Error: Can not find declaration...
Some time ago, people here helped me very well with code. Now I'm tasked with adding a small function:
I really like to count the winning numbers which are defined in picks.
Can somebody explain/edit the code for adding a extra column behind the last column with the total of green/winning numbers?
Here is the website: http://www.cold...
My DOM skills are weak and I can't work out why a javascript variable is assigned this object pointer value rather than the string value itself.
Short story is that I am making an AJAX call for some screen data and it returns html and populates a div.innerHTML with the following :
<input id="page_tag_add_input"></input>';
<span...
I am running into a problem that just doesn't seem right. I've got a pair of anchor tags on the same level in the DOM. Structure below:
div.mcoup
div.lcoup
div.rcoup
div.rcoupmeta
a.rcoupedit
a.rcoupdelete
div.updcoup
div.delcoup
And here is the script I'm using:
$('div.delcoup').hide();
$('a.r...
I have a page that displays search results and has a DOM like the following:
div.mcoupdisplay
div.mcoup //search result 1
div.lcoup
div.rcoup
div.rcoupmeta
a.rcoupedit
a.rcoupdelete
div.updcoup
div.delcoup
div.mcoup //search result 2
div.lcoup
div.rcoup
div.rcoupmeta
...
i want to parse the following type of text. Example1
<root>my name is <j> <b> mike</b> </j> </root>
example 2
<root> my name is <mytag1 attribute="val" >mike</mytag1> and yours is <mytag2> john</mytag2> </root>
can i parse it using a DOM parser?I will not have the same format evry time .I can have different formats in which the ...
Hi,
I need to inject in an iframe window a document object that I instanciated previously, and I cannot serialize it into a string or a remote url (those are solutions proposed on previous stackoverflow posts), because elements of this document objects are bound to other objects in my code.
How can I do it ?
thanks,
b.
...
I'm using jquery and what I'm doing is binding the toggle method to a number of buttons on a webpage. It looks something like this
$('.button').toggle(function(){
// first function
}, function(){
// second function
});
However, there are animation in both of those functions. So a user can click the button while the first or second...
function getSelectedRadio(seeker_provider) {
var sign;
for (var i=0; i<seeker_provider.length; i++) {
if (seeker_provider[i].checked)
{
sign=i;
}
}
if(sign==0)
{
alert(sign);
window.location='updatcty.php';
}
if(sign==1)
{
alert(sign);
window.location='../registration_provider.php?proid=2...