Click here to Skip to main content
15,911,306 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Is there any Proxy/Browser setting that exists disabling or offsetting Meta Refresh? Pin
led mike5-Oct-07 8:45
led mike5-Oct-07 8:45 
AnswerRe: Encoding method in C# and also in PHP usable Pin
Johnny ²5-Oct-07 6:48
Johnny ²5-Oct-07 6:48 
Questionhi Pin
gaurav gupta125-Oct-07 0:09
gaurav gupta125-Oct-07 0:09 
AnswerRe: hi Pin
gaurav gupta125-Oct-07 0:15
gaurav gupta125-Oct-07 0:15 
GeneralRe: hi Pin
Vasudevan Deepak Kumar5-Oct-07 0:38
Vasudevan Deepak Kumar5-Oct-07 0:38 
QuestionResizing font size on pageload Pin
TheIdleProgrammer4-Oct-07 22:00
TheIdleProgrammer4-Oct-07 22:00 
AnswerRe: Resizing font size on pageload Pin
Christian Graus4-Oct-07 23:28
protectorChristian Graus4-Oct-07 23:28 
GeneralRe: Resizing font size on pageload Pin
TheIdleProgrammer4-Oct-07 23:56
TheIdleProgrammer4-Oct-07 23:56 
Having looked around the web I've seen a couple of examples where it's done. I've looked a little closer at my template and realised why it won't work. There is a body tag 'onresize' event handler that calls the SetTextSize function but that isn't working, presumably because it's not valid html anymore. This should overcome the small font problem because the resize event will be fired when the page is maximised (I think) and so reset the font size. I think a new valid implementation of the resize event should be implemented in the form of:

window.onresize = function;

I have tried this and it won't work for me either. Any guesses? I've included the code for reference.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br />
<html xmlns="http://www.w3.org/1999/xhtml"><br />
<head><br />
    <title>None</title><br />
    <link id="pagestyle" rel="Stylesheet" href="default.css" type="text/css" /><br />
    <base target="_parent" /><br />
    <script type="text/javascript" src="css?keyhandling.js"></script><br />
    <script type="text/javascript" src="css?selectbuttons.js"></script><br />
    <script type="text/javascript" language="javascript"><br />
<br />
function LoadActions()<br />
{<br />
	SetTextSize();<br />
	window.navigate('event?IP=PAGELOAD');<br />
}<br />
<br />
function SetTextSize()<br />
{<br />
    document.styleSheets[0].rules[0].style.fontSize = document.body.offsetWidth/40;<br />
}<br />
<br />
window.onresize = SetTextSize;<br />
<br />
    </script><br />
</head><br />
<body onload="LoadActions();" class="normal"><br />
$$BODY_CONTENT$$<br />
</body><br />
</html>

GeneralRe: Resizing font size on pageload Pin
Johnny ²5-Oct-07 6:53
Johnny ²5-Oct-07 6:53 
GeneralRe: Resizing font size on pageload Pin
TheIdleProgrammer8-Oct-07 0:04
TheIdleProgrammer8-Oct-07 0:04 
QuestionApplication(Java) + WebService(.Net) Pin
gauthee4-Oct-07 20:01
gauthee4-Oct-07 20:01 
QuestionNeed help:Session.Abandon don't work in IE7 Pin
vanhawk4-Oct-07 16:47
vanhawk4-Oct-07 16:47 
QuestionUnclear How to Get SQL Server Developer 2005 to Work with VS.NET Pin
Brian C Hart4-Oct-07 14:01
professionalBrian C Hart4-Oct-07 14:01 
AnswerRe: Unclear How to Get SQL Server Developer 2005 to Work with VS.NET Pin
Christian Graus4-Oct-07 17:40
protectorChristian Graus4-Oct-07 17:40 
GeneralRe: Unclear How to Get SQL Server Developer 2005 to Work with VS.NET Pin
Brian C Hart5-Oct-07 11:10
professionalBrian C Hart5-Oct-07 11:10 
Questionservice capture Pin
orsini4-Oct-07 10:44
orsini4-Oct-07 10:44 
QuestionSelecting multiple parameters Pin
TAK784-Oct-07 7:23
TAK784-Oct-07 7:23 
QuestionClass library project in Visual web developer 2005 express ed. Pin
M.Daud4-Oct-07 6:18
M.Daud4-Oct-07 6:18 
QuestionHow to page through a dataset offline Pin
awf17014-Oct-07 3:55
awf17014-Oct-07 3:55 
AnswerRe: How to page through a dataset offline Pin
kubben4-Oct-07 5:10
kubben4-Oct-07 5:10 
QuestionJavascript Error occurs on Infragistics Webgrid click Pin
codingrocks4-Oct-07 0:46
codingrocks4-Oct-07 0:46 
Questionweb service reference Pin
vijayaBTS3-Oct-07 21:16
vijayaBTS3-Oct-07 21:16 
AnswerRe: web service reference Pin
kubben4-Oct-07 5:12
kubben4-Oct-07 5:12 
QuestionPassing elements to ActiveX UserControl written in C# Pin
Aiseen3-Oct-07 8:45
Aiseen3-Oct-07 8:45 
QuestionWeb Crawler - URL Normalization? Pin
AliAmjad3-Oct-07 7:20
AliAmjad3-Oct-07 7:20 

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.