|
|
I've spent quite some time developing a table component which makes output like this:
<div style="width: 100%; overflow: scroll;">
<table>
<tr>
<td style="width: 100px;"> Column 1 </td>
<td style="width: 100px;"> Column 2 </td>
<td style="width: 100px;"> Column 3 </td>
</tr>
</table>
</div>
The idea is that the table will take up as much space as it can, and have scrollbars when column widths overflow container size.
It works great when added directly in the body tag, but if I put it inside a td tag, IE suddenly allows the div and table to expand, even if the parenting table and td are also set to 100% width. I'm too lazy to look it up, but it doesn't make sense, and it works in Mozilla so it must be a bug in IE.
Whatever it is, I need to make it function, so does anybody know a workaround?
"God doesn't play dice" - Albert Einstein
"God not only plays dice, He sometimes throws the dices where they cannot be seen" - Niels Bohr
|
|
|
|
|
Hi Jan,
In the style of the parent table, you simply set the table-layout property to fixed :
<TABLE width="100%" style="TABLE-LAYOUT: fixed; WIDTH: 100%" ...>
|
|
|
|
|
Thanks!
It's working perfectly.
"God doesn't play dice" - Albert Einstein
"God not only plays dice, He sometimes throws the dices where they cannot be seen" - Niels Bohr
|
|
|
|
|
Hi I am developing a site using ASP. I have made an ASP file DBOperations.asp in which i perform all the functions related to database(ie Open/ Close Connection, Insert/Update/Delete etc). I want to make function to which i pass sql query and it returns the Recordset.
Plz if u know abt it or have same sort of file do send me.
Thnx in advance Prayers after reply
|
|
|
|
|
If you post the source where you run the query, I am sure someone will show you how to wrap it up in a function. There are different ways to get recordsets and there are different types of recordsets. For example, if you want a recordset to read only, you would want a forward, read-only, disconnected recordset...
If you google, you will find all kinds of articles that would explain what recordset would work best in a given scenario.
|
|
|
|
|
I would like to save my website on a CD for easy viewing for people not connected to the Internet.
Is it possible in some way to view a ASP website from a CD?
Best regards!!
|
|
|
|
|
xaphod wrote:
Is it possible in some way to view a ASP website from a CD?
No. The ASP pages must be processed by IIS or some other ASP enabled webserver before the output is delivered to the browser. I'd believe that the number of people running a webserver and not being connected is quite limited
"God doesn't play dice" - Albert Einstein
"God not only plays dice, He sometimes throws the dices where they cannot be seen" - Niels Bohr
|
|
|
|
|
Hello All,
Here is my problem:
I have a datagrid enclosed with a DIV. The DIV tag has its overflow style property set to auto. When the number of results in the grid exceeds the height of the tag, the tag creates a scrollable region for the results.
This works just fine in many of the IE browsers I have been testing with.
The bug:
On some browsers (so far confined to laptops only?!!?), when the results exceed the height of the tag and IE creates the scrollable region, a large white gap appears on the screen where the DIV tag and its results should be, and pushes the datagrid html down the screen. Refreshing the browser fixes this problem.
Fixes:
I have seen various postings on line to fix this solution, such as setting a background image for the BODY to force the browser to draw the layers differently, to use a SPAN tag, but none of them have worked.
Any thoughts?
Thanks in advance!!
sprout
|
|
|
|
|
i developed a websit and i used a user controle for home page. when i redirct the user to login page follwing error displays
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: The virtual path '/HomePage.ascx' maps to another application, which is not allowed.
Source Error:
Line 1: <%@ Register TagPrefix="uc1" TagName="HomePage" Src="../HomePage.ascx" %>
Line 2: <%@ Page language="c#" Codebehind="login.aspx.cs" AutoEventWireup="false" Inherits="Site.Administration.Users._default" %>
Line 3: <%@ Register TagPrefix="uc2" TagName="HomePage" Src="HomePage.ascx" %>
Source File: C:\Projects\Site\login.aspx Line: 1
can anybody help me in this regard...
|
|
|
|
|
Hi there,
You may try to place the prefix ~ in the src attribute of the Register directive, it looks something like:
<%@ Register TagPrefix="uc1" TagName="HomePage" Src="~/HomePage.ascx" %>
|
|
|
|
|
hi thanks i did it but it does'nt work. even though i replaced .. with ~ but error still showing ../HomePage.ascx. interestingly when i placed the cotrole in same directry it is still showing ../HomePage error. can u tell me some other tips
|
|
|
|
|
Hi,
I am creating a screen saver application using ASP.net when ever the user is at default page ang has stoped there for more than 1 minute then a new I.E. window opens without toolbar & all stuff...like a normal screen saver, now my problem is I want to catch the last event the user as performed(like either the mouse click or key press) so that I can use the settimeout() function of javascript to launch the screen saver winodw.
can any body help me how to catch the time when the event has occured ???
Regards
Mohsin
|
|
|
|
|
|
Hi,
Thanks for the reply, dear i have another problem again can u help me out???
I am launching the screen saver (i.e. I am doing it by rotating couple of pictures in the I.E. window) and when this window is launched I close screen saver window on these events onkeydown="goBack()" onclick="goBack()" onmouseover="goBack()" where goBack()
function goBack()
{ winodw.close();}
Now the problem is as I am closing this window "onmouseover" event the window gets closed as soon it is opened because the mouse cursor will obviously be over the window.
So now I want to know is there any way I can hide the mouse cursor or fix it to any predefined x, y coordinates on the screen.
Regards
Enigma
|
|
|
|
|
i want to clear the the history of browser through
javascript .
If any function tell me please
Thanx
|
|
|
|
|
Hi:
For security reasons, much manipulation of web browser history stack may not be allowed by the web browser.
Of course, one way to secure your pages being stacked up, may to enqueue the calls from the page through javascript:location.replace in order that back button effects are reduced.
Did this help you out?
Deepak Kumar Vasudevan
Personal Web: http://vdeepakkumar.netfirms.com/
I Blog At: http://deepak.blogdrive.com/
|
|
|
|
|
|
Hi Norman:
Did you try appending
history.forward()
at the start page before anything else. This causes the script to be executed immediately.
When some there is something forward in the history stack relative to the current page (due to back button hit), then the statement pushes the browser to that URL.
Did this help you?
Deepak Kumar Vasudevan
Personal Web: http://vdeepakkumar.netfirms.com/
I Blog At: http://deepak.blogdrive.com/
|
|
|
|
|
thanks V. But no it didn't work. And, I don't understand why it would.
Anyway, here's what MSDN has to say about "history" object.[^]
I was hoping there's a "history.clear()" method. But, that probably won't make sense for obvious security reason.
Norman Fung
|
|
|
|
|
|
I have made a booking form and the first page is in html where i have my dropdown lists to be submitted. This information is then sent to the next page, which is a php page and this all works fine. My problem is I want to send information from 1 page to another page, which is not the next page along, so for example I want to send the amount of people to the confirmation page from the booking page, which skips out all of the pages between them. The code which I have so far is
Number of Passengers:
Echo" ";
Echo"";
1
2
3
4
5
6
7
8
9
This is to send the info from flightsquery.html page to the confirm.php page. This doesnt work, it puts on the form the dropdown list and has echo"" around it!!!!!!
Is there anyone that can help me, i desperatly need to know where i am going wrong as this is for my course and its driving me mad.
Oh is this is to view hiden info on a php page from a html page $_POST['NumPassengers']
To send from a php page to another php page is the code
$numPassengers = $_POST['NumPassengers'];
Echo"Click";
and
$_GET['numPassengers'];
or
$numPassengers = $_POST['NumPassengers'];
Echo"";
and
$_POST['numPassengers'];
Would appreciate it alot if someone could help me.
|
|
|
|
|
Echo"";
Echo"";
1
2
3
4
5
6
7
8
9
should be:
echo "
1
2
3
4
5
6
7
8
9
";
|
|
|
|
|
Does anyone know how to find the version number of a phpBB? I cannot access the site directly, I need to look internally at the php and tpl files, or the SQL database I use.
Thanks!
|
|
|
|
|
I've got a weird fault that happens on IE6 but not IE5 when trying to open an href link (to code used to open Excel spreadsheets). Basically the code where the error is raised (after clicking on link) is as follows:-
<a href ='/test/testing/testFile.asp?fileID=51511&ud=28362&fileno=4'><B>Ready</B></a>
The error (Description: Unspecified Error , Err no: -2147467259) that comes up is actually referring to the line highlighted below. Do you know why this would be the case? displayHelp does exist as a div tag.
function hideTips() {
var oDisplay = document.all['displayHelp'];
oDisplay.className = 'helpHide';
}
hideTips() is called by the code below which is loaded on a onload event.
function setBodyEvents() {
var oBodyTag = document.all['IDBodyTag'];
oBodyTag.onmouseover = new Function("showTips()");
oBodyTag.onmouseout = new Function("hideTips()");
oBodyTag.onclick = new Function("showActualTips()");
}
Any ideas as to what could be triggering this error or the solution to it would be greatly appreciated.
Cheers
|
|
|
|