javascript

Convert APPLET tags to OBJECT tags for IE6

Hello all, I have converted the following applet tags to object tags so that it can work. But for some reason the below isn't working. Firstly, Is the below a correct conversion that should work? Applet: document.writeln('<applet'); document.writeln(' code="LittleShootApplet"'); document.writeln(' id="LittleShootApplet" name="Littl...

FLEX App, Disabling the Back Button & Backspace/Delete Key from bumping out of the FLEX App

Should disabling the back button, backspace/delete key be done in the FLEX App or in JavaScript? Any suggested solutions? Thanks! ...

Getting Enter key to submit a dojo.form

I have a form element I want to use in many forms, a standard submit button. <div dojoType='dijit.form.Button' type='submit' iconClass='dijitEditorIcon dijitEditorIconRedo' style='float:left;margin:0 2px 00;padding:0;' onClick=\"filter{$this->_grid->getId()}(); return false;\">Refresh </div> Current, this submit buttons ...

jquery late binding

hi, i have a code that bind's on click action on page load, it is a link. When i clicking it, it send ajax request and replace content in some div with jquery append() function. This new content has a links and i need to bind some action for them, but i could't.. bind did't work i think, because jquery append doesn't update DOM tree. How...

JavaScript and Flash incompatibility with IE

Hey! I have a JavaScript Picture gallery. The arrows under the gallery make possible to move through all pictures of the gallery. When I have added to that page also a .SWF flash animation the gallery arrows stoped working properly in IE. But in other browsers like Mozilla, Google Chrome, Opera and so on it works! I have removed the .SW...

cookie in javascript and php

Can I set a multi-dimensional array 30x200 in JavaScript as a cookie and then read it back in PHP? ...

JQuery Checkboxes Group check

All, I have the following code. How can I fix it so that the category checkbox for each category is checked only if all the items under that are checked? Thanks <html> <head> <script src="http://www.google.com/jsapi"&gt;&lt;/script&gt; <script> google.load("jquery", "1.3.2"); google.load("jqueryui", "1.7.2"); </script> <script lang...

Modal login form how to fit it in my current login form?

Hello all, Can somebody please explain me how this code fit in to my current login form? This is the Modal code: <!-- #dialog is the id of a DIV defined in the code below --> <a href="#dialog" name="modal">My new login form</a> <div id="boxes"> <!-- #customize your modal window here --> <div id="dialog" class="window"> ...

Automatic page reload when accessed from pressing the back button

I have a RoR site that loads a splash page on the first visit. It's simply a page with information about the service and a form to enter credentials. When the user logs in, the form submits to the same page (document root) but if the user is logged in successfully, the actual site is loaded. My issue is that when the user presses the bac...

Refresh image with Javascript, but only if changed on server

I want to reload an image on a page if it has been updated on the server. In other questions it has been suggested to do something like newImage.src = "http://localhost/image.jpg?" + new Date().getTime(); to force the image to be re-loaded, but that means that it will get downloaded again even if it really hasn't changed. Is there a...

dynamically make top div position

So I have created a simple calendar (http://www.akapa.org/newsite/events/calendar.htm) and I have a bunch of "More Info" buttons I made from cells. In a table cell to the right are a bunch of hidden DIV's that all appear when you rollover a "More Info" button, obviously giving more details about the calendar date/event. My problem is t...

What is the difference between .empty().append() and .html() in jQuery?

Using jQuery, what's the performance difference between using: $('#somDiv').empty().append('text To Insert') and $('#somDiv').html('text To Insert') ? ...

mouseover effect with jQuery question

Let's say I have 4 imagedivs (imgdiv1, imgdiv2, imgdiv3, imgdiv4) and 4 contentdivs (condiv1 condiv2 condiv3, condiv4)and 1 main content div (maincon) all contentdivs (except the main content div) need to stay "hidden" or invisible. Each con will show up with a fadein effect when I do a mouseover on an imagediv. All contentdivs are in th...

Calling WebService for widgets or composite controls

I have a widget that contains about 40 controls in it. Essentially when a user makes a selection from a Dropdownlist on my main user control, what I want to do is call a webservice to get the new values for the controls in my widget. Is it efficient to have each control essentially call the webservice to get values that pertain to it’s n...

Jquery UI Checkboxes - Check category only if all subcategories are checked.

Hi, I have the following code. I need help fixing it such that the "Category" checkbox for each category should be checked only if all the items under that are checked. Thanks <html> <head> <script src="http://www.google.com/jsapi"&gt;&lt;/script&gt; <script> google.load("jquery", "1.3.2"); google.load("jqueryui", "1.7.2"); </script...

DHTMLX Combo inside Ajax Panel in ASP.NET

Hi, I'm trying the combination of DHTMLX Combo and ASP.NET AJAX, but since it's simply a javascript and not .NET native it will post back ignoring the update panel. I need it working with AJAX, so what could I do? If I could do that AJAX call manually it would help, but how? Thank you. ...

Javascript isnull

This is a really great function written in jQuery to determine the value of a url field: $.urlParam = function(name){ var results = new RegExp('[\\?&]' + name + '=([^&#]*)').exec(window.location.href); return results[1] || 0; } // example.com?someparam=name&otherparam=8&id=6 $.urlParam('someparam'); // name $.urlParam('id'...

Changing toolbar size, enlarging icons in CKEditor

I want to enlarge CKEditor's icons to 32x32 pixels. I am working on it right now, taking one of the standard skins, changing all the dimensions, converting buttons.png's offsets and hoping there are not too many side effects. Before I spend half a day or more re-inventing the wheel: Does something like this already exist? I don't care a...

HTML elements hooks in firefox add-ons api

I want to write a Firefox add-on. I need to monitor the contents of a DIV element. Is there a way to put a hook or subscribe to the modification of a certain HTML element? I don't want to poll the contents of the DIV (per say) every second, would be nice to be notified when it is changed. Thank you. ...

Is there a performance difference between 'append' vs 'html'?

Possible Duplicate: What is the difference between .empty().append() and .html() in jQuery? Using jQuery, is there a difference in performance between: $('#somDiv').empty().append('text To Insert') and $('#somDiv').html('text To Insert') ? Also, does one method parse the input as a DOM object before the insert vs simply ...