you need to do something of this sort:
var timer = setTimeout(
function(){
...actions...;
clearTimeout(timer)},1000);
you need to do something of this sort:
var timer = setTimeout(
function(){
...actions...;
clearTimeout(timer)},1000);
Please bear in mind we are not coding this site for the benefit of anyone that uses IE!
Well, just don't! :)
IE(~60%) + firefox (~20%) = ~80% of existing surfers. You are of course targeting less than 18% of them.
But of course - a substantial something, is better than nothing at all.
But since you area OK with that, Imight add that there is, however, something terrribly wrong with your code.
What I mean with terribly whrong is:
// each video's html filename needs to be added to this array
vids='assets/jerkit.html','assets/ponytail.html','assets/goldenprize.html','assets/thedrug.html',
'assets/slipperyslope.html','assets/leavingtrails.html','assets/tooinsistent.html','assets/sisterwife.html',
'assets/senior.html','assets/agb.html','assets/msg.html'];
// load index page when the page loads
var randomDiv=vids[Math.floor(Math.random()*vids.length)]; $("#response").load(randomDiv);
//What are the following lines of code for?!!
$("#jerkit").click(function(){
$("#response").load("assets/jerkit.html");
});
(...)
If it aint wrong - than you might need a "cache buster" code.
for further inf.: Please google for "javascript cache buster".
Ups! :p
I've posted the one I've written [later] to be compatible with FX 633133 bug.
Here is the original idea using (one of the most powerful tinny features of JavaScript) - the IN Operator:
pro.contains=
function(x){return x.id in this.all}
Now that's the only reason I mention the 'in' op., in my 'overture' to this thread ...
At first I was blaming the "all" method, until I noticed that it was the aforementioned "in" operator bug on FX that was causing the failure -but as I already noted it's finally fixed.
*please use: <!DOCTYPE native>
to include Firefox in authentic no-restrictions HTML mode.
(otherwise the "all" collection method will not be recognized)
----------------------------
Please note: earlier versions of IE do not support prototyping on elements.
Since the Firefox [Bug 633133] of the in operator on DOM Collections has ben finally fixed - We can now write a short fast and clean function of the method "Contains" for FirefoX to check if x.contains(y). And vice- versa.
What we will need is:
a prototype
and we'll chose to use the:
var pro = window.HTMLElement.prototype
that :') will overwrite the native method existing in other gen-V browsers also.
But first (as a bonus) we will write a descendants method so we can chain them and use les code for more productivity:
oElement.descendants( [filter] )
pro.descendants = function(x){
x = this.getElementsByTagName(x?x:"*")
return x.length?x:null;
}
and now we will write the (dependent to descendants) contains method:
oElement.contains( targetElement,[optFilter] )
pro.contains=function(x,y){
return this.descendants(y)[x.id]
}
And this is it! Now you have both oElement.descendants([tagsFilter]) and the practical oElement.contains(targetElement, [tagsFilter]).
The [tagsFilter ] is completely optional but is available for further optimization of your code, even though this code is as fast as native - further optimization does no harm . On contrary using it in this manner:
oElement.contains(targetElement, "SPAN")
makes it even faster .
--------------------------------------------------
PS.:
The only drawback of this short dimple and fast code method is that it can't be used against anonymous elements, or to be exact elements with no ID. Although 99.9% of all times - nobody uses it in blind tests ever (targeting anonymous elements under click or some other mouse event …
Declaring variables with the keyword "var" outside of functions, makes a global var anyway;
But declaring it with 'var' keyword inside a body function makes it a local var.
therefore for internally initialized variables to be globally accessible you simply drop the variable constructor declaration.
This might also do just fine:
function selectThis(id){
locationstring = "process.php?value=" + id+
"&bs=" + $('#bs_' + id).attr("selectedIndex")+
"&ad=" + $('#ad_' + id).attr("selectedIndex")+
"&ns=" + $('#ns_' + id).attr("selectedIndex")+
"&wt=" + $('#wt_' + id).attr("selectedIndex")+
"&in=" + $('#in_' + id).attr("selectedIndex")+
}
what is a good program to write HTML in?
i am looking at Note Pad ++ right now since i will need it for lau soon but i would like some opions here first.
The best coding environment[program] is the one you feel comfortable with. Notepad++ is very nice for html, but since I mostly do scripting, Notepad suits me fine for both.
Yeah, you forgot to close the writeln( [...] ;
but that's not a big deal. Your literal conditional has found a very elegant use of a recursive call there.
Regards.
Nice construction Airshow, that's efficient coding;
for further optimization purposes the function recursion can also be omitted I think:
var args=[1,35.4,-14,44,0.5];
document.writeln(function(args,x,v){for(x in args)v+=args[x];return v+"<br>"+args.join(' and ')}(args,0,0))
you can controll that thing using onbeforeunload event
hi
I knew very little about javascript and I didn't used it before a lot but now I Have a problem that: I want the pages in my website to go only forward and disable going backward
I mean the user can not go back to the previews page in some pages
and I've been told that i can do that using javascript but I don't know how or using what .pleace help:'(
use
location.replace("your new page")
on those certain pages instead of what you are currently using...
check if FF suports the textRange method first,
if not,
see if FF provides an alternative method/syntax
than substitute your existing code where necessary.
Hi,
I have a HTML document with form. The form has several radio buttons. I want different elements of HTML (including <input> elements) to appear when each radio button is selected. Also, it is intended to show only those elements for a specific radio button. For example, if i select RB1, it shows me element div 1 and hides all others. If i select RB2, it hides element div 1 and shows element div 2, et cetera. So far it works fine with .style.visibility = 'hidden' and 'block'. Now, here comes the problem - each element appears below the previous element, they appear as they are in the HTML, no matter if i show the previous one. It looks pretty bad, because element positions are jumping as i select different radio buttons. How do i keep them in the same level, at the same position?
Regards
It's because you are using visibiliy
instead of display
property.
You only need to correct your code from ".style.visibility = 'hidden'and 'block'- [which is a 'css error' by the way]" with a display
property: .style.display = 'none';
and/or .style.display = 'block';
correspondingly, and it will go away.
Hi. I was wondering about something. The code is great for writing in ordinary text. But when using <pre class="brush: js;"> code here </pre> it kinda messes it up, since all the original newlines has been converted into the HTML eqvivalent \n- <br />...
Is there a work around for this?
Yes.
When using the <pre> tag, you need to bypass the conversion script altogether.
Hi All,
Does anybody know of some Modal Window API?
I made a custom modal window for my website, but it gave problems in IE7.
I need to put various forms like login, newsletter, etc into them.
Thanks in Advance
If you prefer a true Modal Dialog window on IE,
try using: window.showModalDialog( "location_source.htm",'', "center: Yes;")
ps
the empty arg is to make sure the modal dialog apears on the center of the window instead of the screen center.
For further costumization visit samples.msdn.showModalDialog
hi i need a javascript code to disable print screen key in both firefox and IE
Print Screen is not monitored by browsers - you can't intercept it. IE reports only the keyup event for it, (but even than it is too late to prevent it) other browsers don't.
There are lots of errors there.But for a start:
1. I'm not sure if NN itself supports Layers anymore.
2. var move
, where is it defined, what's the format of its value?
ps
Is it possible that your code is older than you?!
I found a neat Flash image gallery here: http://www.hrewheels.com/
Where images of cars appear in a slideshow and the special effect shows the image opening up from the center.
Are there any Javascript/AJAX, etc type galleries I can use to achieve this same effect?
Thanks!
No, there aren't. But you can write one.
hey guys! onload function is working in window.open! but it is not working in .showmodaldialog
newwindow2=window.open('app.html','app','Width:700;Height:350; modal:true;'); newwindow2.onload=function() { alert("hello"); } This works newwindow2=window.showModalDialog('app.html','app','dialogWidth:700px;dialogHeight:350px;dialogTop:200px; dialogLeft:200px;resizable=no;'); newwindow2.onload=function() { alert("hello"); } Not working
dialog box is in fact the same as msg box - if you can make your msg box alert you some other msg - same would be true for the dialog box, but yu can't!
Instead of alerting from an "alert" try changing something else to make sure if it does trigger the onload evend at all or not. [although it shouldn't]. If it doesn't, than try putting the onload fonction in the dialog code. This might work. [eventhough dialogs aren't windows, and the onload event is a member of window object. But since modal and modeless dialogs aren't standard features of borowsers, there might be a slight chance that one of my proposals might work.
I'm in need of some more help for something quite simple. All I'm trying to get to work is the (onmouseover) portion of the below. I'm sure there is a typo somewhere that I'm not seeing. I've got to quit doing homework when I'm exhausted. Just a little hard after working 12 hour shifts six days a week for the last six months. Thanks.
<a href="manatee.html" onmouseover="self.status='Click here to visit the manatee.' ;return true">Manatee</a><br /> <a href="panda.html" onmouseover="self.status='Click here to visit the panda.' ;return true">Panda</a><br /> <a href="polarbear.html" onmouseover="self.status='Click here to visit the polar bear.' ;return true">Polar Bear</a><br /> <a href="rhino.html" onmouseover="self.status='Click here to visit the rhino.' ;return true">Rhino</a></p>
You don't need a "return true" statement in any of these. You are using the "mouseover event", which doesn't cause the hyperlink to navigate anyway.
There should be no 'returns' at all. <a href="polarbear.html" onmouseover="self.status='Click here to visit the polar bear.' ">Polar Bear</a><br />
will work just fine.
Hi I have below javascript code
<SCRIPT language="javascript"> function validate(){ if(document.r_requisition.r_project_name.value=="deny"){ alert ("You are not authorised to any project "); return false; } if(document.r_requisition.r_number.value==""){ alert ("input in req No."); return false; } if(document.r_requisition.r_delv_date.value==""){ alert ("input Delivery Date: "); return false; } } </script>
Its working fine. But when I saved this file and write to my document header section
<script type="text/javascript" src="js/r_validate.js"></script>
its not working. can anybody solve this
Don't forget to remove the <script...> tags from the source file!
Thanks
I have diplomatically told the clinet a few days ago that a simple button to press that clears the browser cache is a no no. I did this becaue a search indicated that it was likely to be a security issue. My mixim is that "All things are possible" with websites, and have generally found that to be the case. However, this one was looking like it was going to cost more than the rest of the site to impliment. The client agreed this wasn't worth it, didn't want even the slightest hint of a security issue and opted for the "Lets have instruction pages" - which is what his competitors do.
I knew at that time that there were header options, but I figured that might be unreliable - headers do appear to be somewhat flexible in how they are treated.
Now you mention it, if you're going down the headers route why have a button - its done anyway.
I wonder if I might add the headers, and then have instructions on how to clear your cache. Kind of a "Belt and braces" approach.
thanks for your comments
Your answer to the client was adequate; cause after all, even though they support header modifications via scripting - browsers are not required to execute and implement all the header modifications after the page was loaded.
Caching pages on a client or/and partially on local servers was an invention/solution required to free the host from stressfully frequent client …
Thanks posters
Interesting contributions. I have pursuaded my client that the best way to go is to have a button that then opens pages that tell users how to clear their caches.
But that header stuff looks interesting, and I read the link. So I will probably add that in too.
Thanks again
...
That client of yours might happen to be some old hardcore coder himself, who doesn't deal with the Web anymore. Trying to pursuade him to the contrary, might just make you look young and unprofessional to him.
Yes, you can make a button which when pressed, would modify the Header of the Document (adding abovementioned meta tags) that will clear the current page cache for real!
Regards
I have a client that wants a site for people who are potentailly being abused, often by partners they live with.
He is under the impression that it is possible for there to be a "Button" that deletes the cache when the user presses it rather than going through the procedure of clearing the cache. I can see why this would be a goog thing to have, and wondered of js (or perhaps php might be the way to go)
I have done some research, and its looking a little dubious....
Am I right? Can anyone advise please?
Thanks
E
The way to go?...
Well you don't need a button or script to keep the cache clean for some certain web page. You can prevent it altogether.
<META HTTP-EQUIV="Expires" CONTENT="-1">
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
Read more at http://www.daniweb.com/forums/post645889.html#post645889
but if you explicitly need a button to do that, you can also script it ...
Hello,
I understand how use the onblur event the following way
<input name="city" id="city" [I][U]onblur="myfunction()" [/U][/I]/>
But what if I don't want to insert javascript in html. I need to keep all javacript in a separate file. Can I execute my function without mixing html and javascript?
Thanks in advance.
var city = document.getElementById('city')
city.onblur = myfunction
Hi all,
I'm making some changes to a google chrome extension I made and am having some trouble.
Heres my code on a content script page (removeAttr.js) :
chrome.extension.sendRequest({greeting: "whitelist"}, function whtlst(response) {
var whitelist = response.whitelist;
console.log(response.whitelist);//working
});
alert(whitelist);//alerts "undefined"How do I acess the whitelist variable from outside the sendrequest() function?
Iv tried saving it to a window.var variable with no luck. Iv tried creating a div and assigning it's innerHTML as the whitelist variable and getting it later with no luck.
The fact that it's a chrome extension complicates things because i dont actually know if i can create elements from where the script is located.
Can anybody help me?
Max.
local variables closures or private variables are ment not to be able to access them globaly but a workaround would be to return the one you need...
chrome.extension.sendRequest({greeting: "whitelist"}, function whtlst(response) {
var whitelist = response.whitelist;
console.log(response.whitelist);//working
return whitelist});
//alert(whitelist);//alerts "undefined"
alert(whtlst())
Hi,
I am repeatedly getting "missing ) after argument list" in firefox.
hash_a is a variable.
$("#details_a").append("</br>"+"Enter Name "+"<input type='text' id='myText' />"+"<input type='button' id='theSubmitButton' value='Edit Name' onclick='edit_data("+hash_a+")\'\'>");
Thanks.
$("#details_a").append(
"<\/br>"+
"Enter Name "+
"<input type='text' id='myText' \/>"+
"<input type='button' id='theSubmitButton' value='Edit Name' onclick='edit_data("+
hash_a+
")'\/>");
Doesn't this once again prove the fact that almost 90% of computer clients use Windows?
Doesn't it say again that all attackers are in fact highly paid scum-coders coming from other software vendors publically respected, starting with OS-es and ending with browsers and other mainstream applications?
But what it really says is that yet again Windows is the most advanced and secure OS in existence, and that it will become even more secure progressively as the number of attackers grows on, never leaving windows to rest feeling secure but pushing it to sport methods of unbeatable security up to the point of perfection, lying just a few years ahead.
Summing it up, imagine one day Microsoft coders turning against their filthy competition with the same measure considering that the competition security is still on infant stages, always comfortable and never being harassed, - where they would end?
Well, exactly where they belong.
Well, did you actually try the modified code?
Neither this.id or $(this).attr("id") will work if the element does not have an explicitly defined id. Why don't you also check what element you are getting by using alert(this.tagName).
Can you please explain to me, why $(this).attr("id")
would not work?
Can you point to the exact reason and argument of why wouldn't that syntax work, exactly?
I asure you it doesn't have no relation at all with defined undefined id of the element. Because that syntax will not work either way. You tell us why than?
But if I have an anchor with onmouseover="function(this)" it would then send the anchor element itself to the constructor right? But if in the function alert(this) I receive "[object Object]" instead of the correct html element. Why is this?
As I've already mentioned: "this" a contextual pointer.
It only points to the current contextual object/subject of the execution.
Thake this example:
var mydiv=document.getElementById('mydiv');
function alertThis(){ alert(this) }
mydiv.onclick = alertThis;
This time, the "this" keyword becomes a contextual pointer of the of the object that owns the onclick event and will correctly alert you: "object HTMLDivElement"
There are some errors...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <script language="JavaScript" type="text/javascript" src="js.js"></script> </head> <body> <h2>Calculate the area</h2> Choose shape <form> <input type="radio" name="hinh" value="hcn" onclick="area(this.value)" />Rectangle <input type="radio" name="hinh" value="htron" onclick="area(this.value)"/>Circle </form> <div id="property"></div> </body> </html>
// JavaScript Document function area(value) { var prop = document.getElementById('property'); var content=""; if(value=='hcn') { content +="chieu dai:" + "<input type='text' name='width' \/>"; content +="chieu rong:" + "<input type='text' name='height' \/>" +"<br\/>"; var inputWidth = document.forms[1].width.value; document.write(inputWidth); var w = parseFloat(inputWidth); var inputHeight = document.forms[0].height.value; var h = parseFloat(inputHeight); content +="<input type='button' name='dtich1' value='Tinh dien tich' onclick='alert(w*h)'\/>"; } prop.innerHTML = content; }
Here is my code using innerHTML to calculate the area of 2 shapes, but it does not work properly.
I cannot get the value from the users' input
Now, you should try your modified code [!quoted here].
I'm having really hard to really grasp everything about the this object in javascript. I've been trying with tutorials but I haven't found a really good one. I mean, if I have a function which executes some code and then in the end I return "this" what exactly do I then return?
"this" is contextual rreferer, just like in the normal speech.
Therefore the 'this' keyword property will depend on the executional context. That is, the current owner of the action.
When there is no other context, it will point to hte global object which is the window object.
for instance if you state "this" outside of any function or any other scripting context, the 'this' keyword will point to the current 'window' or the current 'frame', that is the owner of the document.
If inside the function, 'this' will point to the current function object, or if it's used in context of an event, it will point to the object that triggered that event, etc...
Thank a lot for your reply, but that is what i was asking.
Is there any way to call a javascript function after the textbox comes into picture?
Yes.
You wait for the onload event to occur. But in case that textbox doesn't have its display property set to 'none'. You can use something like:
onload = function(){ document.getElementById("userid").focus(); }
But, and if for some other reason this object doesn't recieve focus by the given command, than prior to calling focus on that element
you should try to do this:
document.getElementById("userid").tabIndex = 'auto';
I don't think that "this" kewyword is legal syntax in:
$(this).attr('id')
but since the syntax:
this.att('id')
will not work either.
You are left with one solution only, - the right way to do things, a pure javascript syntax:
this.id
Regards.
i already solve this problem :)
It would be interesting for others to see how you solved this problem too.
Regards.
I feel a little silly. Normally, the path is the first thing that I check. It was one of those "hang your head and laugh until you cry" moments. The path was fixed, and now everything works.
TroyIII - I thought that the length and standard of prototype.js didn't need to be re-supplied. If you need to see the source, you can download it from: prototypejs.org.
As you see, you need to learn to trust them 'error reports'!
If its says "Ajax is not defined", it means its not. it isn't there.
That's why [when you are at knowlledge that the call to is defined] you first check if the source is right. That is, if the actual file is at the location exactly specified or not.
My stating that your script is correct, would be good enough for you to foresee the posibility that your reference to it might be wrong.
But since you were so certain that it was right, I had to pressume that its either the wrong content in the referenced file or that the whole content might be missing.
Easy Troy, Ajax is defined inside the prototype library.
I don't know, I haven't seen it. Did you. What if prototype.js is empty, or if there is no Ajax object defined there at all?
If I had to guess, his own ajax.js is executing before prototype has finished its business. Try wrapping the stuff in ajax.js in a function that is called by the onload event of the body. Its also possible that prototype hasn't loaded at all, in which case just make sure you have the correct path to the file specified.
That's what I've said.
He/she is trying to prototype from object named Ajax, which simply isn't there!
To make sure it's something else - we'll have to see the source first.
"Ajax is not defined" - says it all.
Meaning ther is no 'Ajax' object. Not even in jour js file. Otherways, the syntax "new Ajax " would be correct.
I appreciate your feedback concerning that, but I have no problems in FF with the marquee tag, it works just fine. I finally broke down and copy and pasted into a new HTML doc using Sharepoint Designer and now the problem has been corrected (complete with the <marquee>). I'm assuming there was some jargon left in the code from a previous WYSIWYG that prevented the .js from operating but all seems fine now.
I saw your link and it must have been corrected in the latest versions, I'm on 3.5.8 and have never had to "enable" the marquee functionality, even going back to earlier v3 releases.
Thanks,
Rob
Glad to hear that :') take care
Hey, so the file was in /cgi-bin but for some reason the html file didn't link to it...so I just created a new folder scripts/SpryMenuBar and updated all the links....now it works!
Thank You!!
I know, that's why i told you to move it.
p.s.
you should mark the threat solved
i have a javascript code i'm using ajax i'm new on this i want to clear all the input fields after submitting
<script type="text/javascript" src="js/mootools.js"></script> <script type="text/javascript"> window.addEvent('domready', function(){ $('registerForm').addEvent('submit', function(e) { new Event(e).stop(); var log = $('log_res').empty().addClass('ajax-loading'); this.send({ update: log, onComplete: function() { log.removeClass('ajax-loading'); } }); }); }); </script>
my php code register.php
<?php include('functions.php'); $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("reservation", $con); $user = $_POST['Username']; $query1 = mysql_query("SELECT * FROM registered_members where username = '$user'"); $result = mysql_num_rows($query1); if ($_POST['First_name']=='' || strlen($_POST['First_name'])<3) { $errors[] = 'First name is required and must contain 3 characters or more'; } if ($_POST['Last_name']=='' || strlen($_POST['Last_name'])<3) { $errors[] = 'Last name is required and must contain 3 characters or more'; } if ($_POST['Username']=='' || alpha_numeric($_POST['Username'])==FALSE) { $errors[] = 'Username is required and must be alpha-numeric'; } if ($_POST['Password']=='' || alpha_numeric($_POST['Password'])==FALSE) { $errors[] = 'A password is required and must be alpha-numeric'; } if ($_POST['Password']!=$_POST['re_Password']) { $errors[] = 'The two passwords must match'; } if (valid_email($_POST['Email'])==FALSE) { $errors[] = 'Please supply a valid email address'; } if ($_POST['contactno']=='') { $errors[] = 'Contact Number is required.'; } if ($_POST['country']=='') { $errors[] = 'Country is required.'; } if ($result) { $errors[] = 'Username is Already Taken'; } if(isset($errors)) { echo '<p class="error"><b>The following errors occured</b></p>'; while (list($key,$value) = each($errors)) { echo '<span class="error">'.$value.'</span><br />'; } } else { //do something here----store to db, send email [B]echo '<script type="text/javascript">document.forms[0].reset()</script>'[/B] echo '<p><b>Success!</b></p>'; echo 'Your registration was successfully processed. You may login and …
Hi, I recently created a website with a spry dropdown navigation bar. On preview from Dreamweaver CS4, in Firefox, IE, Opera, Chrome, all elements work properly and the dropdown menus work as well. However, when I upload it to my server at the domain http://www.kcsslibrary.com, the dropdown menus do not show up on rollover. I don't know what is going on. The .js file and .css file are both appropriately linked to the root folders as well.
The dropdowns are supposed to be displayed under 'online resources' and 'citing your work'
All help appreciated! Thank You.
Your Spry script is not loading!
Check the location of your spry lib., and/or move it from the cgi-bin folder if its really there.
and update / correct your source location on your code.
<script src="cgi-bin/SpryMenuBar.js" type="text/javascript"></script>
I tried to post on Mozilla's forum but I ran out of space, so I'll give this a try and thanks in advance... :) Also, I've googled til I cannot google anymore, so please be kind. :D
I'm trying to call a .js file in my header where javascript would be defined, the .js file is a countdown timer that I found on the Internet a few months back and it seemed to work at the time in both Firefox and IE (still works in IE), but not in Firefox (now) and to be fair, it isn't working in Safari either. I've tested in both Win7 and XP sp3. The .js file (tzcount.js) is the following:
// start of script // **** Time Zone Count Down Javascript **** // /* Visit [url]http://rainbow.arch.scriptmania.com/scripts/[/url] for this script and many more */ ////////// CONFIGURE THE COUNTDOWN SCRIPT HERE ////////////////// var month = '9'; // '*' for next month, '0' for this month or 1 through 12 for the month var day = '4'; // Offset for day of month day or + day var hour = 19; // 0 through 23 for the hours of the day var tz = -6; // Offset for your timezone in hours from UTC var lab = 'tzcd'; // The id of the page entry where the timezone countdown is to show function start() {displayTZCountDown(setTZCountDown(month,day,hour,tz),lab);} // ** The start function can be changed if required ** window.onload = start; ////////// DO NOT EDIT …
Firefox doesn't provide such coding ability.
should have named that anonymous onload function since the beginning...
if(!this.addEventListener){
attachEvent('onload', namedFunction)}
else {addEventListener('load', namedFunction, 0)}
Regards
Hello,
Till date I've tested sites/designs by changing my monitor resolutions. A new project just came by, and when the tester changed the DPI, the webpage went wrong. It has been made fully in divs and looks good in different resolutions and browsers.Can you please suggest what to do? This is the first time I've encountered this DPI issue...
Thanks
Div
Can you please explain what went wrong?
( Describe the issue or send a link if available )
The problem with 'your opinion" is that you don't have an opinion.
Like what do you know about HTML4.01 that you would love to use HTML5 instead.
What are the extras that HTML5 offering to us and that IE5 didn't already (like a century ago)?
its the other way around