This thread should have been marked as solved by MidiMagic by now.
Troy III 272 Posting Pro
I am a newbie to web design and just completed my first with Dreamweaver CS3. Used a tutorial I found on the web and all went great... Created new site, built page, uploaded... looked easy. Have since built the pages I want (only 7-8 pages), tried to put on the site and still getting the original from the tutorial.
I created new site again, then saved my completed home page to the new root file linked to the new site. Tried to put live on the web and once again only getting the original tutorial page.
Any suggestions. I have (in frustration) created a number of new sites in the site manager hoping that I would be "starting clean". I even created a new site, then a new page with only 1 change to the original sample page and I still get the tutorial product after I attempt to 'put' the page online.
Thanks in advance for any help out there.
My suggestion is: You drop your Dreamwaver CS3 completely. For this simple solution:
A. Locate your working folder with finished files you created for your update and open it.
!important: your index.(htm;php; etc) file should be visible in this opened folder.
B. Open IExporer (any version you might have).B.1 Navigate to your site on Iternet (http://www.yoursite.com).
B.2 Change the address into: ftp://www.yoursite.com - hit Enter. (you will see at least one folder)B.3a Right-click anywhere else and chose "Login As..."
B.3b …
Troy III 272 Posting Pro
Good day, karysma.
Your code had a few errors marked with red.
Good Day.
My div will not position properly. Rather, it just sits in the top-left corner. I have tried z-index with no luck. The first Div represents the background for my page, and the div inside of that is supposed to be positioned inside the message box on the background.
Any help is appreciated. Thanks.
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Rise & Flow | Flow & Rise</title> </head> <body> <center> <div style="background : url(http://i21.photobucket.com/albums/b253/karysmatik/rflowhome.jpg); border:#000000 3px SOLID; color:#ffffff; width:1024px;height:768px; z-index: 2;"> <div style="position:absoute; top:500; left:500; width:100; height:100; border:#000000 3px SOLID; color:#ffffff">DZHZDFHZDHZDGHZDGHZZGNFGNFNCONTENT</div> </div> </center> </font> </div> </body> </html>
Solution:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Rise & Flow | Flow & Rise</title>
</head>
<body>
<center>
<div style="background : url(http://i21.photobucket.com/albums/b253/karysmatik/rflowhome.jpg); border:#000000 3px SOLID; color:#ffffff; width:1024px;height:768px; ">
<div style="position: absolute; top:500; left:500; width:100; height:100; border:#000000 3px SOLID; color:#ffffff">DZHZDFHZDHZDGHZDGHZZGNFGNFNCONTENT</div>
</div>
</center>
</body>
</html>
Report:
1. There was a typing error in "position" declaration "absoute"
2. z-Index is not needed for absolutely positioned elements to come into view, -they get on top of all nonpositioned elements by default.
3. Few other closures for elements which are not opened: "</font> </div>" removed.
Regards.
Troy III 272 Posting Pro
The question was, I believe, "how to make sure he is summing numbers instead of symbols of their presentation?". alert(parseFloat("1asldfjas"));
will yield a number as expected. In this case: 1; [but no other order will!] the opposite will return NaN [not a number] thing.
Although, your reply was rich and informative till this point, I'd still like to know what was your suggested solution to this problem?
Regards.
p.s.:
I'm totally aware that validating input before anything else is always the safest way to go.
Troy III 272 Posting Pro
I have a DHTML ajax pop up that I would like to have centered in the page as it is currently left justified. Also, I would like it to only show the first time a user views the page. Here is the code:
Any help is greatly appreciated. Thanks.
Since you've found sheep,
here, - take another one!
Below is your modified code that will put your popup in the center of any window size or client screen resolution.
<script src="Troy III CenterElement.js" type='text/javascript'></script>
<script type='text/javascript'>
// Browser safe opacity handling function
function setOpacity( value ) {
document.getElementById("styled_popup").style.opacity = value / 10;
document.getElementById("styled_popup").style.filter = 'alpha(opacity=' + value * 10 + ')';
}
function fadeInMyPopup() {
for( var i = 0 ; i <= 100 ; i++ )
setTimeout( 'setOpacity(' + (i / 10) + ')' , 8 * i );
}
function fadeOutMyPopup() {
for( var i = 0 ; i <= 100 ; i++ ) {
setTimeout( 'setOpacity(' + (10 - i / 10) + ')' , 8 * i );
}
setTimeout('closeMyPopup()', 800 );
}
function closeMyPopup() {
document.getElementById("styled_popup").style.display = "none"
}
function fireMyPopup() {
setOpacity( 0 );
document.getElementById("styled_popup").style.display = "block";
document.centerElementById("styled_popup")
fadeInMyPopup();
}
document.body.onload = window.setTimeout("fireMyPopup()", 1000);
</script>
<div id='styled_popup' name='styled_popup' style='width: 380px; height: 300px; display:none; position: absolute; top: 150px; left: 50px; zoom: 1'>
<table width='380' cellpadding='0' cellspacing='0' border='0'>
<tr>
<td><img height='23' width='356' src='images/x11_title.gif'></td>
<td><a href='javascript:fadeOutMyPopup();'><img height='23' width='24' src='images/x11_close.gif' border='0'></a></td>
</tr>
<tr><td colspan='2' style='background: url("images/x11_body.gif") no-repeat top left; width: 380px; height: 277px;'> …
/* * * *
You may use this script freely for as long as you keep this signiture intact!
b.b. Troy III p.a.e.
7:06 PM 7/18/2008
* * * */
document.centerElementById=
function(id){
var el = document.getElementById(id);
if(el){
el.style.position = "absolute";
var L = (Math.round((((document.body.offsetWidth/2)-(el.offsetWidth/2)) * 100) / document.body.offsetWidth) +"%");
el.style.left = L;
var T = (Math.round((((document.body.clientHeight/2)-(el.offsetHeight/2)) * 100) / document.body.clientHeight) +"%");
el.style.top = T;
}
else alert( "Element with id: [" + id + "] Not found!\nPlease check your spelling and try again.\n b.b. Troy III p.a.e." ) }
Troy III 272 Posting Pro
You're wellcome. Thanks for additional info in your repply.
Regards.
Troy III 272 Posting Pro
Well djMot,
try this stupid solution than:
window.open
( "http://www.girlsrockradio.com/minisite.php",
"Girls_Rock_Radio_MiniSite",
"height=330,width=640,location=1" )
Regards.
Troy III 272 Posting Pro
...
var3 = parseFloat(var1)+parseFloat(var2);
alert(var3);
Will do also fine. This additionally ensures that values like: 1.356 + 6.32 don't get rounded into a sum of say 7, so you get the correct value of 7.676 ...
Regards @all
Troy III 272 Posting Pro
Hi
I have spent 2 days struggling to get a veriable to be assigned to "City" and then added as a veriable pasted to the function getDealer.
...
All right, don't loose another day waiting...
I offer you this solution:
(although I don't understand your aproach very well)
<script>
var data = new Array() // ?backward compatibility ensurance! :')
data[0] = "Cambridge";
data[1] = "Hamilton";
data[2] = "TeAwamutu";
var Island = "North Island";
var Region = "Waikato";
var City;
var count = 1; //you should give it "count = 0" try
//! otherwise one of generated cells might not recieve its event function!
while(count < data.length-1){
var newRow = theTable.insertRow(theTable.rows.length)
newRow.id = "row"+theTable.rows.length;
var newCell
newCell = newRow.insertCell(0);
newCell.id = "cellid"+count;
newCell.innerHTML = data[count]; // City
newCell.onclick = function(){City=this.innerHTML;getDealer()}
/* * * * WARNING (!) crossbrowser mess ahead * Disabling... * * * *
*
* // ADD onclick event for list (NOTE: browser dependent)
*
* if(window.addEventListener){ // Mozilla, Netscape, Firefox
* document.getElementById("cellid"+count).addEventListener('click', function() {getDealer(Island,Region,City)}, false);
* } else { // IE
* document.getElementById("cellid"+count).attachEvent('onclick', function(){getDealer(Island,Region,City)});
* }
*
* * * * code mess pased! * Disabling End * * * */
count++;
}
function getDealer(){
alert(Island + ", " + Region + ", " + City);
}
</script>
* You may delete the disabled script content [if your test proves successful ] if not, feel free to delete the complete function :'D
Troy III 272 Posting Pro
Hi there Davonz.
Do you happen to recieve any type or error line report on this function?
Is it causing errors or simply returning "undefined" in aler box?
Troy III 272 Posting Pro
Sorry,
there was no possible visual clue that the topic was moved here from another forum!
Obviously,
I got fooled by reading the reply syntax standing out of its context that made mine fall into this semantic paradox.
My apologies.
(Active moderators should feel free to delete all of my posts on this topic, including this one.)
Troy III 272 Posting Pro
This is a java forum not a javascript forum
Sorry but my browser is telling me that this thread resides in:
DaniWeb Home > Forums > Web Development > JavaScript / DHTML / AJAX
That is: JavaScript, DHTML & AJAX! -No JAVA here...
-Regards.
Troy III 272 Posting Pro
Sorry, I thought you knew.
-Simply replace your existing init function with this one.
(It is located in the head of your document, right after your inclusion of miniscroll and dylayer external script files, and before your style definitions, that is between them two in the header of your main html document).
Cheers.
Troy III 272 Posting Pro
no it is working fine now i just replaced the image from desktop to my documents.
Hmm. I wonder what the difference is?
:-/
The difference is in that he was actually asking his browser to load images located on his "desktop" from "my documents" folder!
And guess what?
( This is funny :D )
... one thing i forgot to tell you images are not appearing...
They weren't there!
Troy III 272 Posting Pro
Hello ajithraj, your:
var c = "\001";
is returning "" character.
I'm not sure if "" is meant to be treated as a new-line character, nor if it is being treated as such. But I expect that, if this code is being passed as content of a html string - it will be dropped somewhere between passes.
I guess, that's because "innerHTML" interface on IEs has a correct meaning: a HTML code! While others might treat it as if it was "innerText" (that is: a plain text string). And because of that, your code might suffer from content normalization on its trip back.
Regards
Troy III 272 Posting Pro
Please try:
<!--
function init() {
DynLayerInit()
myscroll = new MiniScroll("scrollWindowDiv", "scrollContentDiv")
}
//-->
Regards
Troy III 272 Posting Pro
Can anyone help me? I tried using spry in dreamweaver CS3 for the first time and, upon completion of my site, found that it isn't working in some versions of IE. It opens perfectly in Firefox, Safari, and Opera. Different versions of Internet Explorer seem to carry out the code differently.
Here is my site
http://www.kearneyevents.com/index.htmlAnd my css
http://www.kearneyevents.com/SpryAssets/SpryMenuBarHorizontal.cssand my javascript
http://www.kearneyevents.com/SpryAssets/SpryMenuBar.jsIf ANYONE could look over my code and help me I would really appreciate it!! PLEASE!!
The page renders correctly on both, it even looks a little bit better on IE I might add. Your pop Win is being blocked on firefox by default, so my suggestion is, not to use them.
Your menus are opening correctly on both, although they have some unnecessary delay when you switch them.
What was your problem once again?
p.s.: You should not leave your "background-color" declarations empty so if you don't use them, -then don't declare them. Your css "cursor" declaration is also empty. They both rise css errors on firefox. And finally your special ie targeting css should be wrapped in a conditional comment so it gets parsed by ie only. exmp.:
<!--[if IE]>
<style>
.
.
.
</style>
<![endif]-->
so you don't generate more css instruction errors on other browsers that are not able to make use of them.
Troy III 272 Posting Pro
Allow me to be helpful
A valid W3C that will render as you desired in all major browsers should look like this:.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<HTML>
<HEAD>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<TITLE>Plumbing, roofing, kitchen fitting, bathroom fitting, property maintenance :: Wyser Maintenance</TITLE>
<style type="text/css">
</style>
</HEAD>
<BODY>
<TABLE>
<TR>
<TD>
<IMG src='http://www.movetwo.co.uk/test/images/maintop.gif' width='800' height='25' alt='Wyser Maintenance'>
</TD>
</TR>
<TR>
<TD>
<IMG src='http://www.movetwo.co.uk/test/images/header.jpg' width='800' height='75' alt='Wyser Maintenance'>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
Regards
Troy III 272 Posting Pro
I really do question why people use Internet Explorer..
Well lets elaborate on this a little. Making this kind of declarations based on ignorance and frustration, is acceptable and understandable - but completely untrue...
table{font-size:0}
or
expected <br> tag after the inline element closure (in this case: .../img>)
would have legally fixed your so called problem in no time.
In HTML
IMG is defined as inline element. (unless)
Any rendered element, be it a text character, image or any other inline element followed by a white space character is considered a "word" that a priory requires a divider and should be rendered by browser agent to provide this necessary "white-space" division between them.
Netscape is not following this absolutely unbeatable correct logic, since its beginning.
Not to forget that Tables are not supposed to be used for designing purposes.
Netscape erroneous presumption caused that countless billions of so called Spacer images -mostly GIFs to be produced - and they all had to be downloaded, and every page had at least 10 GIF who's sole role was to provide 1px; 2px; 3px; 4px; 5px ...10px space as needed for particular layout design. Representing trillions of terrabits wasted bandwidth over years.
etc
etc
While your white-space problem could have been corrected easily and with html correct structure by simply providing a BR tag right after img tag closure. Than you could add as much as you desire white-space characters …
Troy III 272 Posting Pro
I'm on IE6 currently browsing your pathetic oldfashion design :) but I don't see anything jumping or or disapearing from the page. Clciknga all [msison experience people... nor when clicking sidebarlinks home about us showcase and similar ] It gest drown almost exactly the same in both of them browsers, except that in firefox when i click "showcasse" instead of opening your swf it gets downloaded! and very jupy because it is invoking another instance of IE to show its content hahahaa
silly
but this might have to do something with my custom setting in FX.
Nice work. And it's rendering fine in ie6 to.
Troy III 272 Posting Pro
At the top of code u can see function clicked()
I was asking about the: "function CALL".
The thing you are pointing to, is a "function DEFINITION"
This is the same as if you've spent a lot of money to make some party, but you never invited anyone. Everything you bought is lying there unused while wondering why the party is somehow never happening.
Cheers.
Troy III 272 Posting Pro
Is it possible for any web-application to scan the user's system processes and find out whether an application named SnagIt is running or not?
Now that's completely illegal!
I forgot to mention that: Protecting your property on the cost of harming others is completely illegal.
While protecting some materials on your page you don't have any legal rights to spoil or any how interrupt me while working in other applications that doesn't concern your protection.
Cheers.
Troy III 272 Posting Pro
Thanks ShawnCplus, HenryGR and MidiMagic. I would better not do this and get myself into trouble.
Thanks a lot for your time. Better I would make a note that it is copyrighted!
Thank you very much!
Sorry, but what trouble were you talking about?
It is all a dogmatic empty propaganda. You have every right in the world to protect your property granted by most fundamental laws of human society everywhere in the world.
Go on, check my solution in the link provided. Than if you like we can talk about further enhancements there.
Troy III 272 Posting Pro
Hi,
I want to know if it is possible for Internet Explorer to detect any action on the "Print Screen" key.
The website needs its content to be secured as much as possible. The clipboard is being cleared for every fraction of a second, until this web-application is closed.
There are applications like Snagit, Winsnap, etc.. which can take screen shots and store directly somewhere in the hard disk. For these applications, the Print Screen key in the keyboard is used as a hotkey.
I want to know if there is any way to detect the print screen keypress in IE?
Would appreciate any help or clue.
Thanks
BIOS hadles the printScreen event, - not even OS can intercept it. The only event that is reported to windows sys., is the "onkeyup" event (for as far as I remember) -but, than it is to late to take any action.
There is a topic on this issue here:
http://www.daniweb.com/forums/post645889.html#post645889
You might findit very hepful...
Troy III 272 Posting Pro
function clicked() { var arrmsg = new Array(3); for(j=0;j<3;j++) { arrmsg[j]=""; } var arrelement = new Array(5); for(j=0;j<3;j++) { arrelement[j] = new Array(2); } arrelement[0][0] = 'txtname'; arrelement[0][1] = 'text'; arrelement[1][0] = 'ddldrop'; arrelement[1][1] = 'drop'; arrelement[2][0] = 'txtemail'; arrelement[2][1] = 'email'; // var flag=false; for(i=0;i<3;i++) { var flag=false; if(arrelement[i][1] == "text") { if(checkblank(arrelement[i][0])) { arrmsg[i] = arrelement[i][0]+"" +"can not be blank"; var imgerr=document.getElementById("imgerr"+(i+1)); imgerr.style.display="block"; var imgcor=document.getElementById("imgcor"+(i+1)); imgcor.style.display="none"; var lbl=document.getElementById("lblerr"+(i+1)); lbl.style.visibility="visible"; flag= true; } else { var imgerr=document.getElementById("imgerr"+(i+1)); imgerr.style.display="none"; var imgcor=document.getElementById("imgcor"+(i+1)); imgcor.style.display="block"; var lbl=document.getElementById("lblerr"+(i+1)); lbl.style.visibility="hidden"; flag=false; } } if(arrelement[i][1] == "drop") { if(checkdrop(arrelement[i][0])) { var imgerr=document.getElementById("imgerr"+(i+1)); imgerr.style.display="block"; var imgcor=document.getElementById("imgcor"+(i+1)); imgcor.style.display="none"; var lbl=document.getElementById("lblerr"+(i+1)); lbl.style.visibility="visible"; flag= true; } else { var imgerr=document.getElementById("imgerr"+(i+1)); imgerr.style.display="none"; var imgcor=document.getElementById("imgcor"+(i+1)); imgcor.style.display="block"; var lbl=document.getElementById("lblerr"+(i+1)); lbl.style.visibility="hidden"; flag=false; } } if(arrelement[i][1] == "email") { if(checkblank(arrelement[i][0])) { var imgerr=document.getElementById("imgerr"+(i+1)); imgerr.style.display="block"; var imgcor=document.getElementById("imgcor"+(i+1)); imgcor.style.display="none"; var lbl=document.getElementById("lblerr"+(i+1)); lbl.innerHTML ="Please enter email"; lbl.style.visibility="visible"; flag= true; } else { if(checkemail(arrelement[i][0])) { var imgerr=document.getElementById("imgerr"+(i+1)); imgerr.style.display="block"; var imgcor=document.getElementById("imgcor"+(i+1)); imgcor.style.display="none"; var lbl=document.getElementById("lblerr"+(i+1)); lbl.innerHTML ="Invalid Email ID"; lbl.style.visibility="visible"; flag= true; } else { var imgerr=document.getElementById("imgerr"+(i+1)); imgerr.style.display="none"; var imgcor=document.getElementById("imgcor"+(i+1)); imgcor.style.display="block"; var lbl=document.getElementById("lblerr"+(i+1)); lbl.style.visibility="hidden"; flag=false; } } } } if(flag==false) { return true; } else { return false; } } function checkblank(field) { if(document.getElementById(field).value == "") return true; else return false; } function checkdrop(field) { if(document.getElementById(field).value == "Select") return true; else return false; } function checkemail(field) { mi=document.getElementById(field).value; if(mi > "") { var temp=new Array(); temp=mi.split('@'); if(temp.length > 2) { // alert("Invalid Email Address"); return true; } if(mi.indexOf("@")==-1 || mi.indexOf(".") == -1) { // alert("Invalid Email Id"); return true; } …
Troy III 272 Posting Pro
Netscape method was always a pain compared to ie's elegant intuitive method. So this simple intelligible ie code will suffice for all ie only applications:
1.
<a href="#" onclick="doSomething();">doSomething</a>
<script>
function doSomething(){
alert(event.type)
}
</script>
On the other hand Netscape and its countless breeds will always require its arbitrary unintelligible awkward oldfashion method from the time when code was not separated from content:
2.
<a href="#" onclick="doSomething(event);">doSomething</a>
<script>
function doSomething(e){
alert(e.type)
}
</script>
...passing the event-object as a function-argument which by the way is additionally inefficient, especially because you will have to go back to html code in casse you didn't predict that you'll be needing to check for event type during your script developement!
A Myth
On the other hand if the coder has supplied the argument correctly, the bad use of "if(!e) e = event" conditional and assignment to "e" var is absolutely NOT required for the function to be cross browser compatible. IE understands the oldfashion way perfectly.
It's a false reqiurement and a very bad coding habit introduced by Netscape coders to irritate peaking and sniffing youngsters who know nothing about coding to make them falsely come to the conclusion that it is Explorer who requires more bull code in order to make a simple function work. While (as you can see from these explicitly clear examples), it was always Netscape and its malicious breed who are not ready to give up their old inefficient unintelligible abstract and unexpected …
Troy III 272 Posting Pro
Try this:
<html>
<head>
<title>swapimage</title>
</head>
<script>
var arr=["C:\\Documents and Settings\\Mohan Krishna\\Desktop\\ku20.gif","C:\\Documents and Settings\\Mohan Krishna\\Desktop\\b30.gif","C:\\Documents and Settings\\Mohan Krishna\\Desktop\\goku12.gif"];
i=0;
function swap()
{
document.images[0].src=arr[i];
i++;
if(i==3)
i=0;
setTimeOut("swap()",5000);
}
swap();
</script>
<body bgcolor="white">
<marquee behaviour="alternate" direction="left"><img src="C:\\Documents and Settings\\Mohan Krishna\\Desktop\\UNUSED DESKTOP ITEMS\\batman5.gif" onClick=swap()>
</marquee>
</body>
</html>
This is JavaScript, remenber?
p.s.: you don't need "onclick" event since your swaper has a timer.
Regards.
Troy III 272 Posting Pro
... Although my script looks perfectly valid to me, ...
First Remember this:
In web-design coding world - things are never what they seem!
Here's the HTML:
<!-- <form> open tag has allready been pointed out by others although it doesn't seem to be the problem cause in your original code since back there, you allready have it --> ...
The script:
... //Obtain the form in the document var theForm= document.getElementsByTagName('form'); // this will return a FORM collection! //Get the form's only text box with the parent.firstChild method var name=theForm.firstChild; /* this will return UNDEFINED! * you can't pick up a child out of your elements collection, * you should target the elements explicitly. * * TRY: theForm[0].anymethod */ //Obtain the empty div element where we will greet the user with their name var writingPlace=document.getElementsByTagName('div'); //this will return a DIV collection! -How many DIVs do you plan having in your html? // You should reference your "writingPlace" div by its ID! /* etc every line beyond these errors will fail, so there's no need to coment further ....
Could someone please point out what is going wrong? I'd appreciate it.
--xaippo_script
So don't bother to try debug anything else before you've corrected these initial script errors.
Cheers.
Troy III 272 Posting Pro
<param name="style" valuetype="cursor" value="hand">
I don't know if your applet suports that but I suggest you to change it into this:
<param name="style" valuetype="cursor" value="pointer">
or more probably:
<param name="cursor" value="pointer">
This should do the trick in case it supports tee syling of cursors.
You might wan't to add this for older IE's to.
<param name="cursor" value="hand">
Cheers
Troy III 272 Posting Pro
You will need to check, or call the check functions associated with individual "onblur" to the "onsubmit" event on the collection.
For example:
<form (...etc...) onsubmit="return yourFinalCheckFunction()">
regards.
Troy III 272 Posting Pro
I think that "load/unload" the document is the only appropriate notion to use in situations when:
1. user is closing the current page [ap dependable op] currently associated with ap. close;
2. the user is loading [as a final step of download, cache, parse, render procedure] a New Page in the same docked browser window (called browser tab while in fact being just another instance of an independent dock-able browser window), causing the previous page to be unloaded from active memory and free the space previously taken by its content.
3. Moving back and forth the browser history, inside the same tab/docked window, should be considered as load/unload process, -moreover, this action should factually cause the page to get "loaded/unloaded" from active memory, snce it already exists in a browser cache and there is absolutely no practical reason to leave it "eat" your system resources as last generation browsers do.
This undoubtedly means that: if the user closed the page he was on (although I don't know if there is such browser providing that option), opened another page in the same window/browser tab, navigated back and forth, should all actually carry out the task, to unload/load content, while, same time triggering corresponding events. But I think that browser close should be discerned from document close which is an equivalent of page unload, but this two different actions/events have in practice, the same meaning for the page content therefore right now it is unnecessary to discern. Although …
Troy III 272 Posting Pro
Or it may be that JavaScript is disabled on your Firefox. To enable it go under the Edit menu then Preferences. On the window that opens, go under Content and check the box next to "Enable JavaScript".
Of course this it is not possible to be the case, javascript comes enabled by deafult. Developer wold have known if he disabled it...
it's these two lines of code causing the script to fail in firefox:
if(onloadScrollWidget) onloadScrollWidget();
onloadScrollWidget=window.onload;
deleting them, solves all; because firefox is unable to assign "window.onload" to the var, it will return "undefined" or something eqiuvalent causing the conditional to return false, while completely disabling the main function initScrollwidget() from geting executed since it depends on the returnend value of this conditional.
This thread is solved! (meanwhile it should be given some "mark" to indicate that).
Regards.
Troy III 272 Posting Pro
Thanks a lot Friend
very good than,
- fifufifu
you should consider closing or marking this topic as solved.
Troy III 272 Posting Pro
hi,
Is it possible to adjust the text size acclording to the page size in html? actually i have a webpage where i output the value of some command. the output may differ from time to time. now i want that if my output is long it should adjust the text size such that the user when viewing doesn't have to use the vertical scroll bar? is it possible? any help will be appreciated.
Why don't you allow a line-break instead?
Troy III 272 Posting Pro
A good coder shall support IE6 and FX2 and never bother with any other; should I add: browsing toys, which are more seriously concerned with their own look rather than with how they render your reqiured content.
Regards
Troy III 272 Posting Pro
"WEB 2.0" is how you skin your web page buttons Trend, nothing to do with the web itself. It's a simple graphical effect to make image-based objects apear as if they're made of plastic, glass, or some orther polished glossy material.
That's about all the mistery surrounding "WEB 2.0" - A fancy expression.:D
It's an imaginary provoking notion that will lead the subject to pressume that it's something concreete; something new; something cool and advanced he never heard about, making him feel miserable for being such a damn uninformed laggard for something that in reality have never existed.
So: WEB 2.0 is propaganda, - it simply doesn't exist!
Regards.
Troy III 272 Posting Pro
There is however at least one browser in the world that can almost guarantee that your images will be 99% of the time "Safe".
That's EXPLORER!
Explorers 4, 5, 6, 7&8b are still making more than 78% of client browses. The other 22% will still have Explorer installed somewhere. So your client might very well be more than satisied with it.
So, your page might well be considered content secure and your clients will understand that the measure is taken for protection, therefore they will invoke their explorers to visit the page.
But than everything depends on your building strategy.
You must first make sure nothing remains cached in the browser cache.
1. This far your first step should be to disable caching in the document header:
<META HTTP-EQUIV="Expires" CONTENT="-1">
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
To be sure that you have no cache in IE you shuld repeat this once again after the body closing tag
</BODY>
<HEAD>
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
</HEAD>
</HTML>
*This measure: because IE scans documents twice (up-down) to make sure, (if possible), all the code errors are corrected. During this prcedure it might catch some cache.
2. The next step:
The very first thing you shoud do is to put this in your document body:
<SPAN Id=warning style="font: 30pt bold; display: block">
<CENTER>WARNING:<BR>
JavaScript Disbled !<BR>
<I>Unable To Process Content</I>
</CENTER>
</SPAN>
This will prevent javascript disabled klints to see anything else. So consider this strategy as no script function …
Troy III 272 Posting Pro
The standard doesn't well indicate whether onunload should be called when a browser window is closed, or if the browser is closed, or when the page is changed. It says:
Standards ?!
"Browser window" meaning "a browser".
The so called "Standards" don't indicate if internet should exist at all neither, but it exists.
W3C Event Model Specification for 'onunload' : "The onunload event occurs when the user agent removes a document from a window or frame. This attribute may be used with BODY and FRAMESET elements."
Since techincally, the document is never in a window or frame ( it's on a server silly! ) there's no real necessity to implement onunload, or onload >_>
On top of a sillynes of W3C using the word "remove" the document from the window..., when the correct word is "unloading" the document from the window, (that is: the window of interpreter application for particular document equipped with browsing capability) and you
saying that the "document is on the server" is more than wrong . Because if it was possible to view documents residing on a server without downloading them first - we would be surfing the net with the speed of light. Wouldn't we?!
You are somehow managing to ignore the fact that it's impossible for the page to get rendered and displayed before it gets cached. So practically, technically theoretically or whatever, - that statement is false. Because the page is loaded on the browser and that, smart browser …
Troy III 272 Posting Pro
Even if you could do that, Firefox closes so quickly that nobody could read it.
If somebody clicks the X, they want to close the program now. They don't want it to do any more.
If IE can do it, it is because IE has a nonstandard extension to web code. Never use nonstandard code.
Such a nonsense!@
What a demagogy, hahahaha
Troy III 272 Posting Pro
It works whole lot better on my IE 6 than on my latest firefox v2
Anyway firefox is not designed for DHTML and can never keep up with the smothnes of IE.
My best regards to your highly skilled coder. And congratulations for his original slide effect.
Troy III 272 Posting Pro
It is posible that the problem you are facing is in relation to your "onloadScrollWidget=window.onload;"
statement.
Have you tried to alert the "onloadScrollWidget" after that line and see what gets displayed?
Try comment all the script that mentions onloadScrollWidget
that are :
//if(onloadScrollWidget) onloadScrollWidget(); and
//onloadScrollWidget=window.onload;
and see what happens...