javascript

write cell data to a html table using innerHTML

having trouble putting together the final function displayLetter(a,b,c,d,e,f,g) and writing to table with innerHTML with array element and variables in variableTest() I know I need to use .length and to determine how many cells I need. W3C only gets me so far. Thanks for the help! <html> <head> <title> </title> <script> </script> ...

JavaScript selection/range framework

I've been working with selection/range objects, and because to the incredible amount of inconsistencies between browsers for specific selection/range stuff (even more than the DOM) I was wondering if there was a framework that would help me get through them. ...

RichFaces / Ajax4JSF: How to turn off JavaScript obfuscation?

How can I turn off JavaScript shortening in A4J? I remember there was an option, possibly used during build, which made .js files not being processed by some shortner / obfuscator, thus remaining nicely formatted. But I can't remember what it was or find it on the web. Anyone knows? Thanks ...

Export FireBug Data

I know there are plugins to export FireBug data, but adding new plugins to our environment is difficult. Is FireBug raw data available in JavaScript or HTML? ...

Troubleshooting Help With IE8/Superfish Problem on SOME Computers Only

Our website uses the superfish jQuery plug-in for our menus (http://users.tpg.com.au/j_birch/plugins/superfish/), and they work fine in Firefox, IE6, IE7, Safari, Chrome, etc. ... and even in MOST IE8 installations. The problem is, in some IE8 installations, the menus don't work (they highlight on mouseover but don't drop-down the menu)...

Adding a jQuery style event handler of iPhone OS events.

I'm looking for a super simple jQuery extension. Basically I need to use some events that jQuery does not explicitly support. These events are the iPhone touch events like ontouchstart, ontouchend, and ontouchmove. I have it working via this: // Sucks $('.clickable').each(function() { this.ontouchstart = function(event) { //do ...

Choose license with extremely modified parts from another script

So I've got a JavaScript script that uses extremely modified pieces of another script. That script has an GNU General Public License. Do I need to use that license too or can I choose my own and just reference to that other script? ...

Loop through javascript improvement

The below code works properly, but it is hard coded. I would like to be able to create an array of field sets, hide those fields, then each time I click on the "#createEventForm-eventInformation-addElement" button it displays the next one. The problem with the below code is that it is hard coded and thus would break easily and be much ...

reading / updating array of arrays object in javascript / jquery

Hi, I am trying to do the following but I am not sure how to do it. I have a grid (like excel) where the user will enter information. The grid has columns like "empno", "paycode", "payrate", "hours" etc. The user will enter a separate record in the grid for each paycode for each employee in the system. so the grid will look like the fol...

What is a good javascript editor for editing custom DSL code?

I'm looking for a nice / customisable editor to put on a web page for editing scripts for a custom DSL. Ideally with syntax highlighting (and intellisense would be great! ) Anyone know of anything suitable? ...

Javascript Execute After Page Render IE6

I am having trouble with some JavaScript running before the page is completely rendered in IE 6 (maybe other versions too but just testing IE6 for now. Firefox seems to be OK). I can get around this by calling the js on window.onload like this: window.onload = function(){doIt();} However, my concern is the fact that I will overwrite...

What's stopping my page's JavaScript being invoked?

Hello y'all! Now I'm still learning, so forgive me if this is simple to some of you. But my Joomla-powered community site is having a bit of difficulty since updating JomSocial, a Joomla component, to 1.6 today. I think something is stopping other JavaScript being loaded on the homepage and other pages too. If you look at the site: h...

How can you dynamically load Javascript functions using Ajax?

(Rhetorical Question) I ran into a bizarre scenario today where I wanted PHP to update how the javascript behaved on-the-fly. It was irritating, here is what I tried... /* * ajax-php-javascript-function-loader.php * * this gets called by AJAX and defines or re-defines the * definition of dynamicDoStuff() */ <script type="text/ja...

Large-scale jQuery Architecture

I do a lot of work on large-scale ecommerce systems. Our backend-code and html are fairly compartmentalized into large chunks based on functionality for the major sections of the system - product (browse, detail), account, checkout, etc. There are section-specific files for JS, but they are currently being concatenated and minified into ...

how to fix javascript error in ie7/8?

if you open the page: http://www.rhino.com/shop/product/the-monkees-the-birds-the-bees-the-monkees-boxed-set you will see at the bottom of the page, a next and previous buttons, these are navigation buttons, they work fine in firefox but in ie the style is removed from the page when they are clicked!. please advise on what might be the ...

onclick event is broken in IE8

I have the following snippet which works as expected: <a href="http://google.com" onclick="return false;">Will go to google</a> Clicking on the href does not take me to google. But... if I include JQuery 1.4 and wire up a live click event to anything on the page (whether it exists or does not) this unrelated event handler stops wor...

How do I determine where this javascript is coming from?

So I've been handed an older website, and been asked to make some modifications. It's been made with ASP, and I'm not really familiar with it. http://www.littleairplane.com/who-we-are/default.aspx I've been asked to get rid of that awful scrolling. By looking at the page source, I determined that the scrolling is done using some inline...

Custom Object Properties in ExtJs Component

Hi everyone, How can I add custom properties into control objects in ExtJs. For example : var button = new Ext.Button({ text:"something", id:"somethingId" }) This control comes from server dynamically and I want to write my custom property as well like below : var button = new Ext.Button({ text:"something", id:"some...

Codes fail to run when not wrapped in an anonymous function in jquery

If you paste these codes http://paste.plurk.com/show/152772 in http://htmledit.squarefree.com/ You will see the codes run without any problem. The images altogether will turn into a slideshow. However, if you paste the following codes: http://paste.plurk.com/show/152773 The codes will fail to run, no slideshow. These two pieces of c...

show/hide works with JQuery 1.3.2 but not JQuery 1.4

I have a function which submits data to my server, and then removes the edit UI and replaces it with the regular UI. This works perfectly under JQuery 1.3.2 but does not work with JQuery 1.4.0. Any ideas? function save_edit(point_id) { var data = {}; data.id = point_id; $.post("/foo", data, function(responseData) { $("#value...