W8 4me
01-26-2003, 09:41 AM
Is there a way to display an alert message if the user visits your website from lets say....www.google.com ?
|
Click to See Complete Forum and Search --> : if specific URL, then alert W8 4me 01-26-2003, 09:41 AM Is there a way to display an alert message if the user visits your website from lets say....www.google.com ? khalidali63 01-26-2003, 10:50 AM I "Think", we should not refer code practices here which are non standard,say in this case "document.referer" I have seen multiple posts in this forum where someone wanted to use this property. Since this property is totally web server dependent and 99 out of 100 or vise versa wont work, making this solution a very non standard code. I'd say we all should just discourage people from making use of it or make sure that we emphasis on the aspect that this code will not work in most of the cases. Just an opinion,Since when I write code I do no like surprise results. cheers Khalid W8 4me 01-26-2003, 11:19 AM What about using cookies? Not as many people will block their cookies for my site, so is it a more viable option? I'm restricting my website to one html page. There's a form and when it's submitted, the form handler redirects the user back to the same page. I don't want to make an extra html page just for a "Thankyou" message! Hmmm.....maybe I should just make the SUBMIT button display the "Thankyou" message..... Charles 01-26-2003, 11:46 AM Originally posted by khalidali63 I "Think", we should not refer code practices here which are non standard,say in this case "document.referer" I have seen multiple posts in this forum where someone wanted to use this property. Since this property is totally web server dependent and 99 out of 100 or vise versa wont work, making this solution a very non standard code. I'd say we all should just discourage people from making use of it or make sure that we emphasis on the aspect that this code will not work in most of the cases. Just an opinion,Since when I write code I do no like surprise results. cheers Khalid Then we should never use JavaScript at all. None of it works 100% of the time. But it has its uses. Some things are just plain fluff and nothing is lost if they do not apear. There's nothing wrong with a "Print this page" link if you make sure that the link only appears when the link will work. And you can save a lot of bandwith by validating your forms both client and server side. The trick is to never rely on JavaScript and to always make sure your page works well enough without it. khalidali63 01-26-2003, 11:57 AM :D I agree, though, I think I posted my message in the "JavaScript" forum not in the HTML forum. Point is we want JavaScript to work in most of the cases because of the user interaction capabilities that it brings. To be honest I'd be allot happier if it were all HTML . 1 standard for all and may be some limitations but in most of cases if HTML gave us the functiaonlity even remotely close to JavaScript,I'd be happy with that. The reason we are forced to use JavaScript is that HTML lacks "Big time" in delivering dynamic contents. Since we are forced to use JavaScript to some extent,to reach the masses and attract viewers then we "Have" to push for more standard compliant code. Make use of DOM/CSS and XHTML as much as we can,ofcourse JavaScript too.. :-) cheers Khalid Charles 01-26-2003, 12:04 PM But "dynamic content" is the whole problem. It just simply cannot work on a Braill or audio browser. The solution is for web auhors to be a little less lazy and make sure that their pages fail safe. khalidali63 01-26-2003, 12:32 PM Unfortunatley I have never been lucky enough to create contents for audio or braill browsers.I am sure soon we will be able to make full use of CSS2. Which will enable general developers like me to create contents for any type of client base (smart people like you already do that). Anyways,I am very much hopefull that soon NS will come to rescue all of our concerns,on the contrary to allots of mis-perceptions on behalf of MS I think they are coming around and have finally decided to follow the w3c standards slowly but seems like surely. here take a look at this link and just see what we are missing in browser preparednes when it comes to the strength of CSS. http://www.w3.org/TR/REC-CSS2/aural.html cheers Khalid Charles 01-26-2003, 12:39 PM You don't understand. If you follow HTML 4.01 Strict and use content mark-up and not presentation mark-up then your page will work on all browsers. Aural style sheets will not work on Braille browsers. Presentation itself is something that you cannot rely upon. In this regard, CSS is no different than JavaScript and that's why accessibility guidelines require that your page work without them. khalidali63 01-26-2003, 02:28 PM Originally posted by Dave Clark So, why did I warrant a response like yours? Dave No way I did not intend it to be judgemental at all,I am merely making a valid point. Originally posted by Dave Clark ... We cannot "dictate" to others what they can or cannot use. Dave I kinda have to disagree a tat here, the word dictate is a bit over kill, Answer this, What is all that hoopla about Standard compliance?Why W3C is going through all that effort to create standards,and on top of everything why finally MS IE has started adopting W3C standards? Just because they want to "dictate" a set of rules for the developers to follow and create webpages that do not drive industry nutts. And believe me its not "dictation" at all,it is just letting people know about following the strict rules because I think as you do too that this forum is for helping people so whats wrong with educating people who come here as well as helping them? Originally posted by Dave Clark Now. Aren't you sorry you tried to open that bag of worms? :D Dave :p Not even close... I honestly wanted this bag of worm to be opened and read the point of view of all you inteliigent and experienced people on this. lets hear some more... cheers... Khalid W8 4me 01-26-2003, 05:27 PM It's lucky I don't know enough to get involved in this excited discussion. :) webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |