dhtml

Javascript: Have body onload function wait until scripts have completed

I have some functions that I am calling and they take some time (milliseconds), but I don't want the page to display until these functions have completed. Right now, I can tell that the page loads and then the scripts eventually complete. Right now, I am calling the functions in the body onload. Also, another issue I may have is that ...

IE7 IFRAME DHTML CONFLICT

I have a web page that includes an iframe as well a DHTML calendar widget. The page displays correctly as well as the content inside the iframe. The problem is when I activate the calendar which is positioned close enough to the iframe that some of the calendar is hidden by the iframe. I have tried to manipulate the positioning of the...

Slow page unload in IE

I am developing a site which creates many table rows dynamically. The total amount of rows right now is 187. Everything works fine when creating the rows, but in IE when I leave the page, there is a large amount of lag. I do not know if this is some how related to the heavy DOM manipulation I am doing in the page? I do not create any fun...

window opener close issue for javascript

Hi EveryBody, I have a problem with browsers window managament with javascript. I have two page in my proof of concept application. First page contains login information (username, password, login button etc.) and second page is a managament screen. I need that when the user pressed to the login button on the login screen it open to main...

Does Internet Explorer remove the <object> element from DOM?

I have markup in my page that includes the tag: <body> <object codebase="blah" codetype="text/blah"> <param name="name" value="value"/> <div>Some Markup</div> </object> </body> The idea is for browsers to display the content of the <div> by default, but if a special JS library is present, it will find all the elements an...

Height of invisible objects, when they become visible, in javascript

I have a table that represents Tab-structure. Some cells are set to display: none; and only the active tab is displayed. I want to set the max-height to all of them. To do it, I go through the array of tabs and do the following // get the max-tab-height for (var i = 0; i < TabPageList.length; i++) { // get max height if (TabPage...

What is the easiest way to return server based error messages to a web based modal panel.

I've been tasked with adding a modal based UI feature to an internal application. The quick summary is that I am posting a form via a modal panel, and I'm wondering the best way to cleanly provide feedback. Firefox permits changing the page showing within the modal panel via a normal post, but IE opens it in a new window which seems ...

Chrome Javascript Double Alert Loop?

Thi simple code below outputs two alerts instead of one Google Chrome browser. Can you tell why only in Chrome? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <meta http-equiv="Content-Type" content="text/h...

SilverLight Overlay HTML?

I'm looking to build a flyout type menu in Silverlight that will be added to an aspx page. the items will be built dynamically via data returned from a web service. All of the samples on building menues do not allow the silverlight to "flyout" over the HTML. Can this be accomplished? If so, what would be the best method to do so? ...

Javascript function results in HTML page reload: why?

Hi all, Newbie question... The objective: I intend to have an HTML text input field as a kind of command line input. An unordered HTML list shows the 5 most recent commands. Clicking on one of the last commands in this list should populate the command line input text field with the respective command (in order to re-execute or modify...

Is MVVM possible/viable in a DHTML RIA application (no Silverlight/WPF)?

Note: This is a long winded question and requires a good understanding of the MVVM "design pattern", JSON and jQuery.... So I have a theory/claim that MVVM in DHTML is possible and viable and want to know if you agree/disagree with me and why. Implementing MVVM in DHTML revolves around using ajax calls to a server entity that returns J...

Jquery - Reference by ID - Supposed to return an array?

I just started using jQuery, and various sources suggest that the following should be used to reference an element by ID: $("#imgThumbnail") theoretically making something like this possible: $("#imgThumbnail").src; But my testing indicates that something like $("#imgThumbnail") returns an array, making the following necessary: $(...

Show Flash video in a layer popup

Would like to show a flash video in a layer popup (a layer rests above the current page, darkens the background and shows the video front and center) that is compatible with all major browsers (Opera, FF3.x, IE6,7 and 8) Is there any code that can do this? ...

Why does Toggled value return always OFF.

I would like to get value ON or OFF by toggled. And default value and view is OFF. But that code return always OFF. <div id='toggl1'> <fieldset> <form id='search' method='post'> <input id='search_withbydate' name='search_withbydate' type='hidden' value='OFF'> <div class='row'> ...

Can JavaScript tell the difference between leaving through the back button or a link?

My application has pages with several tabs that simply switch the visible content. However, the page also has links that will add tabs to the page. In addition, the application remembers (with cookies) which tab you last viewed in case the page is refreshed (strict cache settings cause refreshes even when using the back and forward but...

How to expand the drop down items

Hi friends, How to expand drop down list (listed items). I cant able to view the listed items in IE while i restricted the size of the drop down list. Please run this code in IE and other browsers - u can see the difference <html><body><select style='width:20px;'><option>sdfffffffffffffffffffffffffffffffffffffff</option><option>sdffff...

Writing a search-with-suggestions field. Javascript focus problem.

So I'm scripting up a search field for my website. As the user types, a box appears below the field with search suggestions. The suggestions are keyboard navigable and clickable. However, I'm having trouble getting the suggestions to disappear when the user click's elsewhere on the page. I've added an onBlur() handler to the search fiel...

Knowing how wide a text line will be in HTML for word wrap and other applications

Do you know a good cross-browser way of knowing how wide will be a text line so you can break it exactly to fit a fixed width? Suppose you want to break a long text like so it doesn't overflow a fixed width container, but you want the line to break the closest to the border possible, so guessing where to insert s isn't a clean solution....

Gadget development

Hi! I'm searching about gadget development when I found this site. I'd like know if somebody know how get open windows name? I want get a collection of all the open windows. I know in VB.NET, but dont know in DHTML/VBScript for Windows Vista Sidebar. If somebody can help me, I'll to stay grateful! Thanks Erik ...

Using tabs on a webpage

Hi all, I am using zapatec tabs on my website. There are some javascript function which I want triggered when tab is loading. How do I go about it since the window.onload is not working. There is one main page on which the tabs are added and that is why the page is already loaded by the time the tabs are being loaded. Thanks in advance, ...