Now fixed !!! Just typical, got it to work as soon as I asked for help. As I said before, had to set the z-index for the outer DIV to 1, for some reason it was set to some large number. Secondaly, in my Javascript, when setting the classname of the DIV, had to reference the DIV by document.getElementById
method, otheriwse it only seemed to work with ie. Thanks for looking Shakeel
ShakeelN
Posts
-
DIV background not visible -
DIV background not visibleForgot to say that the main DIV which is being hidden and displayed sits inside another 'master' DIV. And I've just found that setting the z-index of the 'master' DIV to 1 and setting the visibility of the main DIV to visible, allows me to view the image (when running in debug) on all browsers (netscape, ie, opera & firefox). So that's one step closer. But I'm still having the problem where clicking on the button is still not displaying the gif when initially hidden.
-
DIV background not visibleHi, Newbie on web development alert !! I've been trying to resolve this problem for days now and searched everywhere for a soultion. I have a main DIV containing 2 more DIVs: one with a some text and the other one with a background image set to an animated gif of a progress bar. The main DIV has been assigned a CSS class which simply sets VISIBILITY: hidden; There's a button on my page which when clicked makes a call to a web service, which can take some time to return. Therefore in the onClick of the button I call a javascript function which sets the CSS class of the mian DIV to another one which simply sets VISIBILITY: visible;. Problem is I can get this to work when I run the project within dotnet with default browser set to IE. If the browser is set to anything else the gif is not displayed, although the div with the text IS. If I publish the project and run it directly (from outside of dotnet IDE) then I can't see the image from any browser, but can still see the DIV with text. The URL of the image is just the image name, I tried putting an absolute path, but it still didn't work. I also tried using an image control inside the DIV, but doing this the gif only animates once which is why I used the background image of the DIV!!! Can someone please help!! Shakeel
-
Tracking data change - ViewState??Hi, I'm fairly new to .NET and I have a problem that I've been trying to resolve for days now and haven't been able to find a solution. Briefly, I have a web page with a number of dropdownlist and textbox controls and a datagrid at the bottom of the page which I want to use to record the history. The idea is that a user enters data and then hits the "save" button on the page. At each save I create a new row on the grid. What I want to do is find out which field(s) have changed since the page was loaded or since the last save and record those field names in the history. I've read a lot about ViewState. I thought that if the page and controls have the EnableViewState property enabled then ViewState should automatically track the state of these controls. I assumed then that in my save routine, I could uses something like ViewState.IsItemDirty(myControlName) to find out if a certain field has changed, since the last save/page load. But I can't get this to work!!! ViewState.Count is 0! Do I have to add records to ViewState manually and then during Save, compare each field value with the value stored in ViewState to see if it has changed? If so then what is the purpose of the EnableViewState property. Is there a more elegant way of doing this? Shakeel