Click here to Skip to main content
16,011,585 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: ASP file upload COM with Virus Scanning Pin
Andrewpe10-Feb-03 23:12
Andrewpe10-Feb-03 23:12 
GeneralVirus Scanning ASP File Uploads Pin
Andrewpe8-Feb-03 10:02
Andrewpe8-Feb-03 10:02 
GeneralCSS question Pin
Rohit  Sinha7-Feb-03 21:20
Rohit  Sinha7-Feb-03 21:20 
GeneralRe: CSS question Pin
Philip Patrick7-Feb-03 21:43
professionalPhilip Patrick7-Feb-03 21:43 
GeneralRe: CSS question Pin
Rohit  Sinha8-Feb-03 0:58
Rohit  Sinha8-Feb-03 0:58 
GeneralRe: CSS question Pin
Stephane Rodriguez.7-Feb-03 22:17
Stephane Rodriguez.7-Feb-03 22:17 
GeneralRe: CSS question Pin
Rohit  Sinha8-Feb-03 0:56
Rohit  Sinha8-Feb-03 0:56 
GeneralRe: CSS question Pin
Stephane Rodriguez.8-Feb-03 2:35
Stephane Rodriguez.8-Feb-03 2:35 
Rohit Sinha wrote:
Is it possible that IE5 does not recognize, or chooses to ignore, some of these attributes, such as padding, which may be causing it?

Yes, these unfortunate things are called bugs, or broken compatibility or even improvements (depending on your point of view). What's unsure is whether they were on purpose or not. Wink | ;)




Rohit Sinha wrote:
Anyway, is there some way of making the browser include a different css file, depending on the browser type?

Yes. For instance, in your html header section add this :
<!--CSS_START-->
<SCRIPT SRC="dtuelink.js"></SCRIPT>
<!--CSS_END-->


dtuelink.js :
var ieVer = getIEVersion();

writeCSS(jsPath);

function getIEVersion() {
//determines the IE version. Returns 0 if not IE
  var verNum = 0
  if (navigator.appName == "Microsoft Internet Explorer") {
    var sVer = window.navigator.userAgent
    var msie = sVer.indexOf ( "MSIE " )
    if ( msie > 0 ) {	// browser is Microsoft Internet Explorer; return version number
      verNum = parseFloat( sVer.substring ( msie+5, sVer.indexOf ( ";", msie ) ) );
    }
  }
  return verNum;
}

// buid CSS path depending on IE version, or Netscape, ...
function writeCSS(spath) {
  var dtueCSS = "";
  var HxLinkPath = "";
  var HxLink = "";

  if ( ieVer == 4) {
   ....
  }

  // Insert CSS calls
  document.writeln('<LINK REL="stylesheet" HREF="' + HxLinkPath + HxLink + '">');
  document.writeln('<LINK REL="stylesheet" HREF="' + spath + dtueCSS + '">');
}




PS : word of wisdom, be sure to know that by adding pixel-fixed CSS styles, you are preventing your audience to resize the text in the browser.
GeneralRe: CSS question Pin
Richard Deeming10-Feb-03 0:32
mveRichard Deeming10-Feb-03 0:32 
GeneralRe: CSS question Pin
Rohit  Sinha10-Feb-03 2:30
Rohit  Sinha10-Feb-03 2:30 
QuestionHow to create a chatroom application Pin
Ph@ntom7-Feb-03 19:39
Ph@ntom7-Feb-03 19:39 
AnswerRe: How to create a chatroom application Pin
Philip Patrick7-Feb-03 21:47
professionalPhilip Patrick7-Feb-03 21:47 
Questionhow can you dynamically add hidden form element in ASP.NET Pin
devvvy7-Feb-03 16:55
devvvy7-Feb-03 16:55 
Generalmouseover color for DataGrid. Pin
devvvy7-Feb-03 16:25
devvvy7-Feb-03 16:25 
GeneralRe: mouseover color for DataGrid. Pin
Steve McLenithan7-Feb-03 18:11
Steve McLenithan7-Feb-03 18:11 
QuestionCan I hide <option> elements? Pin
jerry0davis7-Feb-03 4:01
jerry0davis7-Feb-03 4:01 
AnswerRe: Can I hide <option> elements? Pin
Paul Riley7-Feb-03 4:28
Paul Riley7-Feb-03 4:28 
GeneralRe: Can I hide <option> elements? Pin
jerry0davis7-Feb-03 4:31
jerry0davis7-Feb-03 4:31 
Generaluniqueidentifier, adoguid, DataGrid Pin
devvvy6-Feb-03 22:03
devvvy6-Feb-03 22:03 
GeneralRe: uniqueidentifier, adoguid, DataGrid Pin
devvvy6-Feb-03 22:50
devvvy6-Feb-03 22:50 
GeneralI've got the Guid displayed on DataGrid, but still need to retrieve it and call stored procedure. Pin
devvvy7-Feb-03 9:32
devvvy7-Feb-03 9:32 
GeneralFound a way to get around this. Pin
devvvy7-Feb-03 16:31
devvvy7-Feb-03 16:31 
QuestionAny body helps ? Pin
Jackal Jiang6-Feb-03 20:25
Jackal Jiang6-Feb-03 20:25 
AnswerRe: Any body helps ? Pin
Steve McLenithan7-Feb-03 18:21
Steve McLenithan7-Feb-03 18:21 
AnswerRe: Any body helps ? Pin
devvvy7-Feb-03 18:24
devvvy7-Feb-03 18:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.