dhtml

Can this be done in Javascript or DHTML? (From Flash)

Please check this link: http://www.kings-mall.co.uk/index.php?id=5 Check the mall layout, it's done in flash. I was wondering if this can be done in Javascript or DHTML? But the list at the bottom would be links instead. When the mouse hover at one position/category like 'Fashion and Sports' it would highlight a lot of links and its po...

JS popup element to dim surrounding site

I'm not really sure how to describe what I want to do, but I'm sure I've seen it on many sites before. Basically, when someone clicks a link, it should show an element which contains some text and dims down the rest of the site so that the users focus is directed towards the element. It shouldn't let users click in the dimmed area eithe...

cross-window javascript events

I am launching a popup window with window.open(...) and I pass an elementId to the new popup window. Then during startup of the popup window I find the element in the opener window that matches the elementId passed to the popup. Then the popup subscribes to events on that element using jQuery.bind(...). Then from inside the opener win...

div align=center

How i can do a alignement of table div inside div to align=center ...

Setting dynamic data on dynamic JQuery elements

I'm new to JQuery and don't have a huge background in Javascript, either - so that could be contributing to my problems... I'm trying to dynamically generate a list of items and bind click events to each of the dynamically generated elements. I can create the list and successfully bind the click events, but then I ran into a stumbling ...

Dynamically adding a large number of images to a page, loading in the background

I am dynamically adding a relatively large number of small images to a page. I make a XMLHTTP request which returns some JSON data of the form {images:[ {url:'/image?id=1', width:32, height:32, label:"Foo"}, {url:'/image?id=2', width:32, height:32, label:"Bar"}, .... ]} I then construct some HTML of the form <ul> ...

How do I block out historic dates in this DHTML Calendar?

I've added the calendar from http://www.dynarch.com/projects/calendar/old/ onto my wordpress site. It loads fine but I don't want people to select dates in the past which I've managed to do but want to add a strikethrough but don't know how. Please help. Thanks ...

onfocus stop work after reload content in parent object

I load content to the using AJAX. in content you can find this line of code: <input onfocus='searchItems("sContainer", this)' onblur='searchItemsStop()'/> first time when I load the content onfocus and onblur events works. But when I reload the content onfocus and onblur stop working. in firebug I noticed that for every reload of co...

HTML image loading problem

Hello, I have a site where I have to dynamically load images. I must know their width/height before laying them down, so I am using the onload event handler. What I found anyway, is that sometimes those values are 0/0 even in the handler (this happens on Chrome and as I am targeting webkit, this is the browser to use). Is there any way ...

How does one get or create a selection or range from a dom coordinate point in javascript?

Hopefully this is possible by invoking a method that gets executed by browser internal code. Given a point x,y in dom coordinates. (that is can get relative to any node) in an element containing text I want effectively charIndex = characterUnderPoint(textNode,nodex,nodey); I figure if there is some sort of facilty to do range = xx.c...

Libraries/Examples of Hover or Click Menus for web pages/apps, where to start?

I'm changing the layout of a web app that we are developing internally and have identified a few spots where a menu would be much more helpful than our currently layout. The project is currently built on Zend Framework and jQuery. Are they any good examples of context menus, or just menus in general that I should check out for inspiratio...

How to get complete HTML body using browser helper object (BHO) in case of DHTML/AJAX page?

Hi All I'm writing a BHO that analyze the HTML taken from the 'onDocumentComplete' event of 'DWebBrowserEvents2'. Currently it works fine, unless I have a DHTML/AJAX page, where HTML handle is delivered too soon. For sample, I tried using it on 'http://www.google.com'. From the 'onDocumentComplete' event I can get most of the page but ...

How to find Masterpage height and width using javascript

Hi How to find Masterpage offsetheight and offsetwidth using javascript ? Regards, kumar ...

Cross Domain JavaScript with DHTML HTC's

I have a typical setup for cross domain. site1.company.com site2.company.com Main application is running off of site1.company.com. Trying to get communication working between the a parent frame from site1 and child frame from site2 Both site 1 and site 2 are setting document.domain='company.com'; The communication works fine both ...

How can I disable DHTML menu on one of my drupal menus?

Hello all, I am new to drupal so forgive me. I made a menu and it was automatically created as a DHTML menu. I wanted to style the menu myself and just simply want the 'ul.menu' tree to be printed. Instead, it's doing some javascript and unnecessary CSS. can i disable DHTML menu for this particular menu? thanks! ...

Dynamic HTML using Javascript.

I am using javascript to dynamically build a grid of input elements in HTML. Each row has 4 input elements and the user can add or delete rows as they need. Each time they add or delete a row, I am rebuilding the grid dynamically. My problem is after I build the grid a second time, I cannot reference any of the elements. I believe the...

how do I know if the mouse pointer is on the HTML element?

I have a timed event I want to behave differently accordingly to what HTML element the mouse pointer is on. Is there a way, assuming I have the HTML element, to know if the mouse pointer is currently on top of it. I am well aware of the onmouseover/onmouseout events and how to use them. I am using JQuery. I am obviously looking for some ...

Applying DIV/Span tag to a word by specific co-ordinates

Sample HTML Data <body style="width:300px;"> <h3>Long-Text</h3> A simple tool to store and display texts longer than a few lines. The search button will highlight all the words matching the name of objects that are members of the classes listed in searchedClasses, itself a member of the KeySet class. The highlighted words are hyperte...

How can I disable all buttons and links on my page, but still let the postback occur?

I'm trying to prevent the user from clicking on more than one postback-causing element on the page. In other words, if they click the 'continue' submit button, they shouldn't be able to cause another postback before the original request comes back. I've had a go with two versions of jQuery code. Neither does exactly what I want: This ...

Multiple periodically_call_remote calls not behaving as expected

I've been doing ruby and rails for a long time but am a newbie when it comes to the more dynamic elements (currently jrails and jQuery), so it's entirely possible I'm missing something. That said, I've got a page where multiple elements need updating from multiple sources. For example, a dynamic header comes from one source and 5-6 d...