|
either link to a file type already associated with IE and not NS, or create a new file extension type and associate it with IE and in your custom headers, return the correct mime type headers (ex: application/msword)
onwards and upwards...
|
|
|
|
|
Hello,
I am trying to develop a program based on c# and aspx systems.
I am required to write a code which must be in java script.
The code would be able to make a calculation.
The calculation is a bit complex.
I am required to do that:
There is a value of a result of an expeirence and there is a upper and lower limit of the result of the expeirence.
e.g
Upper limit : 2.4
Lower limit : 1.2
The value of result of the expeirence is 1.8
The result of the experience value could be out of limits.
(actually the limits are defined for the standart situations)
I have a record which is like shown below
UpperLimit : 2.4
LowerLimit : 1.2
Value : 1.8
-------
And I am now changing the upper and lower limits to ...
UpperLimit : 4.8
LowerLimit : 2.4
Value : ?
How can I calculate the final value?
I have already tried:
Final = Value * (UpperLimit(2) - LowerLimit(2))/(UpperLimit(1) - LowerLimit(1))
It is not just relaited with the range. It is also releated with the position of the limits.
e.g.
|------|----------|-----------|------
0______LL_________X___________UL
_______<-------difference----->
_______<---------range-------->
0 ,zero
LL, Lower Limit
X , Value
UL, Upper Limit
Both range and the position are being changed .
Thank you for your time
Regards,
Emre YAZICI
|
|
|
|
|
Without some information about the actual relationships among the limits and the value, there is no way to begin advising you about this. At a first glance, the original Value is the midpoint between the limits in your first example. But there is no way to justify an assumption that any other set of limits will produce a new value that is again the midpoint, unless that is by design and not stated in your post.
In the event that the midpoint is, in fact, the value you want, the formula for that is
Value = (UpperLimit + LowerLimit)/2
for all pairs of limits.
"The Lion shall lie down with the Lamb; but the Lamb will not get much sleep..." Lazarus Long
|
|
|
|
|
what does everyone has against pages with frames in?
the way i see it, frames prevent sections of pages - like a menu - from being loaded more than once since it appears on all the pages.
or is this invalid?
|
|
|
|
|
It is quite valid, especially if the menu items are dynamic due to database queries for rights, content, etc. The big issue that people have with frames is the scrolling. So, if you use frames, make sure that they are as small as possible, so that the main content frame is maximized, helping reduce the amount of scrolling required.
onwards and upwards...
|
|
|
|
|
In addition, most search egine robots stop at FRAMESET pages and do not sunbscribe the other pages...
The robots seem to follow A tag links only... not all of them but a few work this way...
Would you like only your home page or all web pages of your web site to be subscribed in search engines?
|---------------|
| theJazzyBrain |
|---------------|
|
|
|
|
|
|
|
the litle engines that go and get the web pages of your web site when you register it on a search engine like google or yahoo.
|---------------|
| theJazzyBrain |
|---------------|
|
|
|
|
|
ohh...
and I forgot to mention BOOKMARKING AND PRINTING problems?
Which frame to print?
which frame to bookmark?
What if the user wants to print all frames?
|---------------|
| theJazzyBrain |
|---------------|
|
|
|
|
|
Ever tried using ? Its a floating frame, which you can put in your existing html page, pretty cool and you can tweak around with it a lot.
cheers
Written on a gravestone:
Hear lies a father of 29. He could have had more but he didn't have the time!
|
|
|
|
|
shot to all those that are helping me!!!
how do I open the fullscreen?
I have a function that The Server gave me.
<SCRIPT LANGUAGE="JavaScript"><br />
<!--<br />
function OpenWndFullScreenMode()<br />
{<br />
window.open("popup.html","","top=-30,left=-10,width=800+10+25,height=600+30+10,directories,location,menubar,resizeable,scrollbars,toolbar");<br />
}<br />
</script>
Stay well and ejoy life to the max
|
|
|
|
|
Hi
---
I didnt understand your question.
PLease explain...
BTW:
Greate function The Server gave you...
but only 1 more thing to add
use this code the get the screen resoulotion:
<br />
var screenWidth = window.screen.width;<br />
var screenHeight = window.screen.height;<br />
=-=-=-=-=-=-=-=
The Server
|
|
|
|
|
|
Just copy/paste the text below to an empty HTML file:
<HTML>
<script>
function WhatEverFunc()
{
alert("Hope this code helps you");
}
</script>
<BODY>
<input type="button" onclick="WhatEverFunc()" text="Click here" value="Click here" />
</BODY>
</HTML>
=-=-=-=-==-=-=
|
|
|
|
|
For IE, try
window.open("popup.html","","scrollbars=yes,fullscreen=yes");
|
|
|
|
|
Sorry, forgot to sign in before posting..;P
onwards and upwards...
|
|
|
|
|
You can try this to open the window in full screen.
window.open('page.html','','top=0,left=0,height=' + screen.availHeight + ',width=' + screen.availWidth);
You can also try adding, subtracting some from the screen.availHeight, screen.availHeight etc to adjust your window as per your requirements.
cheers
Written on a gravestone:
Hear lies a father of 29. He could have had more but he didn't have the time!
|
|
|
|
|
I am using the DOM along with DHTML to dynamically manipulate html...
According to a certain event I need to remove a node, but I cant find a method for removing or deleting nodes.
I am aware of the replaceNode() method but this requires another node to replace the old one with which is not good for me...
Any ideas?
Thank you
|---------------|
| theJazzyBrain |
|---------------|
|
|
|
|
|
Using DHTML, you can always parse out the HTML tag of the element you wish to delete from the parent's innerHTML and set it back. EX:
function DeleteElement(oElem) {
var oParent = oElem.parentElement;
var cParentHTML = StringReplace(oParent.innerHTML,"\r\n","");
var cDeleteHTML = StringReplace(oElem.outerHTML,"\r\n","");
var iIndex = cParentHTML.indexOf(cDeleteHTML);
if (iIndex > -1)
{
oParent.innerHTML = cParentHTML.substr(0,iIndex) + cParentHTML.substr(iIndex+cDeleteHTML.length);
}
}
function StringReplace(cSearch, cFind, cReplace) {
var iPos = cSearch.indexOf(cFind);
while (iPos > -1)
{
cSearch = cSearch.substr(0,iPos) + cReplace + cSearch.substr(iPos+cFind.length);
iPos = cSearch.indexOf(cFind);
}
return cSearch;
}
Hope this helps (and i just typed this in, so don't rely on it working).
|
|
|
|
|
Sorry, forgot to sign in before posting...;P
onwards and upwards...
|
|
|
|
|
Kinda expensive solution DOM1 defines the removeChild method, so why not use it:
var parent = document.getElementById("anelement");
var child = document.getElementById("anotherelement");
parent.removeChild(child);
IE DOM0 implements the removeNode method:
var child = document.getElementById("anotherelement");
child.removeNode(true);
|
|
|
|
|
Does anyone know how to open a window in fullscreen with no scrollbars and so on just a plain blank screen that will be used to display pics?
Stay well and ejoy life to the max
|
|
|
|
|
You cant
The workers and I tried for days to find a way and NOTHING!!!
But...
we came up with this resault:
<script>
function OpenWndFullScreenMode()
{
window.open("popup.html","","top=<code>-30</code>,left=<code>-10</code>,width=<code>1024+10+25</code>,
height=<code>768+30+10</code>,directories,location,menubar,resizeable,scrollbars,toolbar");
}
</script>
Hope I helped you...
I not sure about the specific '-10' '+25' and '+30' numbers
but you got the idea.
Thanks for your help in closing the window.
=-=-=-=-=-=-=-
The Server
|
|
|
|
|
In addition you can get the width and height of the screen like this:
var screenWidth = window.screen.width;<br />
var screenHeight = window.screen.height;
in order to make your code more generic and it will work for any resolution......
|---------------|
| theJazzyBrain |
|---------------|
|
|
|
|