Jump to content
xisto Community

p_a

Members
  • Content Count

    22
  • Joined

  • Last visited

  1. Thanks....Everything is okay with browser detection, it works very well, it's not the question.The question is at the end of the post. It's related to dialogbox which asks if Client wants the window to be closed. I want the window closed without the question.
  2. I have one html page, I replace it using Javascript to another, after checking if client browser is IE 6+ or not. I have the html page, first.hml: <HTML><HEAD><TITLE>MyFirstPage</TITLE></HEAD><script LANGUAGE="Javascript">if(window.navigator.appName == "Microsoft Internet Explorer" && window.navigator.appVersion.substring(window.navigator.appVersion.indexOf("MSIE") + 5, window.navigator.appVersion.indexOf("MSIE") + 8) >= 6) window.location.replace("/second.html")elsewindow.location="/index_no_IE.html"</script><BODY></BODY></HTML> If client uses IE 6+ he will get the second.html, not in new window, but in the same window, first.html will be replaced by second.html: <HTML><HEAD><TITLE>MySecondPage</TITLE></HEAD><body onblur="self.close()"><B>This is The Second Page!</B></BODY></HTML> I want the page to be closed if user goes to another window, or any other application, if user does switch to anything else. Because of that, I did insert <body onblur="self.close()"> into the second.html But I got the question: The Web page you are viewing is trying to cloce the window. Do you want to close this window? Is there any possibility to avoid the question? To close the window without the question?
  3. p_a

    Get Pixel's Color

    Thanks all! I still believe that there should be a way to get pixel's color using client side scripting like Javascript or VBScript. In my web application I even do not need to have the color under mouse pointer, but just the color at certain position, like 10,10 as I mentioned above. I do not know if PHP or Perl can do it (both are server scripting languages) but I am sure that Java can do it. The only problem is that I really want to avoid Java, not because it is bad, but because of - I already have PHP+Javascript in my application, and Java is sometimes slow to start itself into memory, especially on older PCs. I had really bad experience with JSP, I have even kind of strange anxiety using JSP, cause when I transfered my applications from JSP to PHP I got them work much, much faster and more reliable. Somebody would say I should just make better JSP setings on my web server, but, with PHP everything worked amazingly smooth immidiately.I hope that I'll find a way to get pixel color without using Java.
  4. p_a

    Get Pixel's Color

    Okay, considering Javascript is not strong enough, can VBscript do the task?
  5. How to get a pixel's color from any certain pixel at the screen, using Javascript, dhtml, any client-side scripting language?For example how to get pixel's color for 10,10 pixel?
  6. For coding I mostly use Crimson Editor. It has few really good features, it's perfect for coders.Of course there are others, but when one gets used to an editor, it's not easy to change it, even one knows there are better editors.
  7. I had bad experience with Java Server Pages. Lot of problems, website in difficulties, ....PHP seems to be much better. Fast, reliable. Optimized for databases. Really good.Many sites went from JSP to PHP.
  8. There are lots of possibilities of using old computers as routers.If computerhas enough RAM (24 - 32 MB) it can be good router.Just few Ethernet cards, Linuxoid software router installed and - it flies!I tried, it works.
  9. Internet Explorer is the best. But, also it's challenge for all those people who do like to (ab)use its security holes.I used Netscape Navigator during 1999-2001 mostly. Then I change it to Internet Explorer. I had Opera fe months at my old Laptop. Last year I installed Firefox to one of my desktops. It looks really fine.If I want to emphasize something. When I go (better to say, if I have to) to those risky websites, where possibility is the site is full of installed trojans, worms, I am using "independent", small browser, with less capabilities of browsing, but with less capabilities of getting problems.
  10. Of course - security reasons are so severe, I really do not want to make the link without being sure everything would be safe.But, for example - is there anything in HTML (not XML) excluding frames, including layers, that can have another page as it content. Layer can have pictures and texts, it can move from side to side, but, can it have complete webpage inside, or, is there any other possibility, any other HTML capability? iframe? something similar? I just want to include .php page that cannot be started in main server, to be started at another server, and after being started, as clean html, to be included in the main page.
  11. If web server does not have .php support and I want to put a guestbook or something similar (no database), and there is no support for other server side scripting, what should I do?I would not like frames on my page, but - is there a possibility to put .php page from another site into layer on my webpage at the no-php-site? Does layer support (or any other html command, excluding frames) page including from another server?Also, does anybody have a solution for this any other way? How to make a guestbook without php, perl, other scripting languages? Or, how control (read, write contents) a file at the server without php, perl? Any way to do that?
  12. I can see the complete page with header and footer included. Problem is the menu in header. If the Javascript code function is inside the header.php it will not work, it will not be visible in the webpage. If it is outside header.php as, for example menu.js, I just put the ordinary code to call the Javascript from header.php, it works perfect.
  13. I saw it at few sites that include Test systems, but never perfect, smooth solutions.Simple example: Screen has to parts: question part and bigger, practice part.Question: How to bold name of the company at the second sentence in the document?Practice part (shows the real MS Word application, with already opened document with 4-5 sentences inside).User has to choose (mark) mentioned company name, then choose B from the toolbars, then press submit button.Of course MS Word has to be installed, Java Runtime also.Everything should work in Java. Anybody has experience with this?
  14. I made site for my students to use it thru exam process.Tests are in few groups, every test has 15-45 questions.First I used Javascript to have window over complete screen, without menus, toolbars, borders.I excluded right mouse key.Also, I disabled Ctrl and Alt keys.I disabled printing the webpage.I insert the code to recogniized if Internet Expolorer version 6 or above is installed, and what operating system is at the PC.Few other things also I disabled, but, unfortunately Windows XP SP2 came and it disables fullscreen Javascript capability for sites not recognized as trusted.Also, even I disabled Alt key, Alt+Tab still worked, and Ctrl-Alt-Delete still worked also. It seems to be two keyboard combinations are defined in Operating System lowlevel processes, and there is not an easy way to disable them.
  15. Of course - everybody would see the learning issue different way.The best (but not so easy) way is to install webserver, PHP and MySQL, buy few good books, buy php book with command, visit php script library sites, download few scripts, install them on the localsite, run them, make changes, view what any change do to the result pages. Not an easy way to create php script from the start. And, of course Internet is full of examples. No need to create new, cause there is incredible probability it already exists. Everybody just have to change it for own use.Yes, there is possibility to learn to script in PHP in 10 minutes, if one considers "Hello world!" as script. Well, of course it is script....
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.