Jump to content
xisto Community

p_a

Members
  • Content Count

    22
  • Joined

  • Last visited

Everything posted by p_a

  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....
  16. It would be better not to do reorder of ID fields anyway. I do not want even to show them in my forms, grids. Maybe the new numbered field would be the best way to solve it. Why shoud everybody avoid changing ID fields? Simply because of possibility of having relations in database between tables. ID fields sometimes have their main role in relations and playing games with them will make a mess. I would never do it.
  17. p_a

    Asp Or Php

    ASP and PHP are definitely used mostly for database connections. Many programmers do not have other reasons to use them if there is no need for database connection.But, answer to the question ASP or PHP would not be so simple. I am using both and I have to say that, I am using ASP for MS SQL Server, MS Access connections, and PHP for MySQL connections. So it depends on the database platform I am using. PHP and MySQL is good, reliable, fast, scalable, longterm solid decision. Why? It is free (if you do not want support from MySQL AB), it is proven to work good (I have good experience).
  18. I have both Internet Explorer and FireFox installed. But, also, I installed Opera at my Laptop. Opera is different. It has different organization of use, different views.Two months ago I installed OffByOne browser. It's really small, of course it does not have full capabilities as Internet Explorer, FireFox have, but - It's more safe and secure. How? Simply - it does not take all the worms and troians from every single site one visited. Internet Explorer obviously got the "feature" of "pasting to itself" everything bad from all the sites one visit, and that was the reason for SP2 in Windows XP. Unfortunately, the SP2 has it's problematical "advantages", I mean - it has it's benefits, but also - it has number of problematical "details".
  19. Javascript is, of course, very usable. I used even few Javascript menu generators. But, sometimes I would like to do something like this: I have a website with, for example 10 webpages. I want to have the same header and footer at all of them. I make pages, and include the header.php at the top, and the footer.php at the bottom. Javascript menu is in the header.php. Menu is simple, and complete inside one function. When I started website from initial index.something (may be .php or .html) I do not see the header at all (even it's included). The most interesting thing is the fact: I save the Javascript function to the .js file, I put the line of code where I am calling the .js from header.php, and - everything works! Why? Where is the problem? It has to work both ways by any logic! Because it's the same thing. Or it is not.
  20. Is this possible? Number of webpages I visited said - simply no. But having in mind new structure of .NET, I hope there would be a possibility to disable ALT+TAB, or CTRL+ALT+DEL at the webpage.Why to disable it? Sometimes in educational institutions tests and quizes are based on website server with client browsers on students computers. To avoid possibility of starting another program, or changing current application, there should be a possibility of disabling ALT-DEL for example. Is the keyboard combination under protection of the operating system?
  21. Xoops is really, really good. I made few websites using the CMS. It has number of modules, just to be included by administrator. It's so easy to make new modules. New modules can be made as modules based on xoops rules, but also as blocks, as ordinary webpages. Xoops seems to be complex at the first sight, but the complexity is natural for huge benefits it gives.
  22. I have many PHP Books, PHP Bible among others, but no clear description how to build menus (dynamic) Javascript like. Is PHP enough strong to do this? I also have Javascript Bible, many possibilities are usable within PHP pages.Anybody has experience in creating dynamic menus in PHP?
×
×
  • 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.