Lots of WYSIWYG editor implements HTML table functionalities, however I noticed that such functionalities were not spread evenly accross browsers..
And by editable table, I mean the ability to add/remove rows and columns and resize the table with controls like these:
However if I edit a table in another WYSIWYG editor I get this:
No...
Is there a way for an inner object (t1) to access its container object.
var t = {
fnc1: function(){
alert("fnc1");
},
t1: {
fnc2: function(){
alert("fnc2");
},
fnc3: function(){
...
How would you implement a constructor together with named functions on an object in JavaScript?
This is how I'd like to use the object:
o("..."); // use the object's constructor
o.namedFunction("..."); // use a named member on the object
I don't want to have to "new up" object before it's usable... You could say I want the equivalen...
I've found plenty of information on how to change the background image of a div using Javascript, but I am trying to use Javacript to determine which background image is being displayed. The code to set the image goes like this:
document.getElementById("widgetField").style.background="url(includes/images/datepicker_open.png)";
I hav...
Can any one tell me why i am loosing content in settimeout checked in firebug and i am loosing the content, though i the height of the content is showing!
all replies are welcome!
function Tableslide_down(content,height)
{
var contentID = document.getElementById(content);
if(contentID.offsetHeight < height)
{
conte...
I have a page where I import most of my js in the <head> section.
The main page, however, has some inline javascript.
In one of my scripts imported in the <head>, I have $(document).ready... which uses some JS variables defined inline on the page.
As far as I can see, this works as I would expect -- $(document).ready doesn't run into an...
Basically, I want the same effect as the oldschool html 'frameset' I think.
Take a look at this page please:
http://onomadesign.com/wordpress/identity-design/alteon-a-boeing-company/
If a user selects a project from industry -> transportation for example, I would like that the right scrollmenu keeps its initial state when the new proje...
I am building a very dynamic web-based application using a lot of Javascript to handle user events. I am in the process of making things a little more usable and came across a problem that I've never had before.
I am using jQuery, so factor that in to your answers. Thanks in advance.
I have a set of button elements defined as:
<input...
Hi all,
I have a problem with JavaScript code, it works in IE7/8, but doesn't work in Firefox
for (var i = 1; i < document.getElementById(obj).rows.length; i++)
{
var numColumns = document.getElementById(obj).rows(i).cells.length;
if (numColumns > 0)
{
if (document.getElementById(obj).rows(i).cells(numColumns - 1)....
I have a php array that gets returned from a database, the array contains paths to images that I want o make up the background of my wrapper div in my HTML, I want to be able to add some javascript that will cycle through the array and a set interval show the next image in the array, is this possible, and is it possible to also have some...
I'm currently working on problems in Project Euler with JavaScript. For the most part I've been using for loops to iterate through the problems but wanted to use recursive functions. However, it seems that all of the JavaScript engines have limits to the amount of recursion they can handle.
I compiled/installed SpiderMonkey to try and r...
I've searched around for the answer to this and found lots of much
more complicated questions, but none that gave me insight enough to
figure this one out.
What I'm doing:
1- open a page with a number that will probably be large
2- get the X Path to where that number is and store it to a variable
3- do a javascript to compare the above s...
Once I create a range how do I display the HTML content of it in Firefox?
range.toString() only gives me the text content. In essence, like innerHTML returns the markup in IE.
Thanks
function innerHTML(oTarget, sContent, bAppend){
if (document.getElementById && !document.all) {//is this a non ie browser
var range = document.createR...
I recently decided to try jQuery 1.4, excited that I would finally have support for live event handlers that work for change events in IE. However, it seems like they don't always work. If I try to assign a live change handler on a select element, it doesn't work when I change it in IE.
I tried this in IE 6, 7, and 8. In every other bro...
Is it possible to avoid having the white screen when a page loads? Particularly for the iframes i'm using on my page? it looks odd having a box of white on the screen while the parent contents are themed already.
Thanks in advance!! :)
...
I'm requesting a json feed using the standard jquery getJson request. The json url is not hosted on my domain.
$.getJSON('myfeed.json?jsoncallback=?',
function(data){
console.log(data);
})
However using Firebug, I'm not seeing any data logged in the console. But I can see the json data has been loaded as is available when I look und...
I have an aspx page which has a few textboxes used to change a password. The user types in their current password along with a new and a confirmed new password. I have a cancel button and a change button. If cancel is clicked, nothing happens which is what it is supposed to do. If change is clicked and validation is passed, it should...
Problem
I'm trying to make a method that passes objects to a similar method in a popup window. I don't have control over the code in the target method, or the object passed in. The target method currently serialises the object, using JSON.stringify where possible, or instanceof Array.
The first problem with this is a bug in IE8 (see ...
Hello.
i want a jQuery modal box which is like the following shape, and also, it should opens near to the clicked button wherever it is.
Thank you so much.
...
I have a simple html doc with a flex app and an iframe side-by-side (using a 1x2 table).
There is a button in the flex app that, when clicked, sets the "src" property of the iframe to a URL by using the ExnternalInterface.call method to call a javascript function "doNavClick(url)".
Or that's the idea.
When I comment out the iframe obj...