Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by yoshida

  1. OK I seem to have 'solved' this. Windows 7 appears to have improved user authentication, so this line <authentication mode="Windows" /> which was referenced in the warning caused the f00k-up. I removed it.
  2. I'm learning ASP.net from a book, and I must say it's quite enjoyable and straightforward. Less of a hassle than PHP from what I've experienced.However I'm in day three of learning, and every next day I can't seem to run a previous project. Though I can start a new project and that'll run no problem.The software I'm using is Microsoft Visual Web Developer 2008 Express edition on Windows 7 build 7100. The warning I get is this one:X:\docs\project folder\project\chapter0203.aspx: ASP.NET runtime error: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond ap
  3. hmm... intended to store it as a set of files on the fileserver, but now it appears like I need to promote my machine to webserver and host it from there.The net - it's an option, but password protection will not enhance accesibility.The intranet - perhaps. Need to confirm it with IT and that involves the 'ok' from a bunch of other guys before I can even make a proof of concept.Still going with XML due to portability.
  4. Haha that sucksMust be for security reasons. How about PHP?
  5. I don't believe that. Doesn't XML have it's own DOM? From the W3Schools tutorial: Definitely. But that would imply dynamic communication between the browser and a server script and database. Any browsersided interface improvement is considered AJAX these days... such a shame.
  6. Hi, I want to build a CMS with XML as the database and ECMAscript (JS) as script language. In fact, what I want is use XSL and make an 'interactive layer' provided by Javascript.It doesn't seem to make sense, but please bare with me. I want to build a userfriendly intranet application without using a database such as MySQL or Oracle. We're talking 500 records max so an XML file will do just fine. It will be a listing of records, with one fixed background for each record and a style language to get all records in their required position. It will only have to work for IE but an easy milti-browse
  7. Sounds like a plan, but can't I let Javascript fetch the post info instead? Can it be used again by my PHP script?My javascript is in an external .js script.
  8. Hi folks, I'm facing a bit of a snag here.I'm making a CMS manpage to alter the content for my website. I divided the workload into chunks to keep it all manageable, so far I have template related database info, a news manpage, and a management page to add and alter 'html' pages.Each manpage is a form or a set of forms, which gets loaded into a DIV using the XmlHttpRequest (think 'AJAX'). So I have one index.html, and a menu decides which variable is used to load the related PHP script.I have the function that loads stuff check if a variable already exists, and if not it uses a default value.
  9. EDITMade it work. Just forgot the OR boolean is used like || and not |.Sample code removed.
  10. Here I am looking for the long way around...I thought of creating an array, and have it populate the page using a WHILE loop. But I bashed my head against the wall in stupidity after two lines of code.I used PHP for this one instead, opening the specified DIV, call <?php require_once('script.php') ?> and closed the DIV.It's the easiest way since it's a management page for my new CMS after all.
  11. This may be a stupid n00b question, but how do I call a javascript function without using an event trigger? I'd like to populate some divs with data, both the source data and the target divs defined by a parameter. That means I have to call the function, an XmlHttpRequest, multiple times.I'll search my library for answers, helpful suggestions are welcome in the meantime.
  12. Books called Javascript - the basics will only teach you the basics, how variables work, how to write and use functions, etc.Books like database-driven AJAX will assume you have basic JS knowledge, and will teach you how to use databases in combination with AJAX.Books like Bulletproof AJAX will assume you have basic AJAX knowledge. etc.I'd recommend doing a few online tutorials, but type rather than cut/paste to understand the importance of debugging and learn the most important keywords..Then, when you know what you want to do with it and would like to widen your knowledge, go out and buy a b
  13. So then I'll have to propagate the parameter as a variable, and make index.php look for it. (index.php?serverPage=newspost071017)Then set var serverPage='<?php serverPage ?>'Not even going to ask whether it is possible, I'll simply try. And keep the results to myself. (jk )
  14. Hi. I'd like to create a button on my Ajax site which says 'add this page to your favorites'.It goes down like this: my links are event triggers which passes a parameter to the script. The page passed in the parameter gets loaded.Now the first lines look like this: function loadMainBody(serverPage) { if (!serverPage) { var serverPage = 'dummy.html'; } How do I add something to favs? Can I also store the event trigger and it's parameter?
  15. AJAX is a technology referred to when doing an asynchronous server request, and load that information into a div at client side. AJAX does not require server scripting. It only requires php scripting if you'd want to load information from a database. Everything else can be done using Javascript.Don't get me wrong: executing a XMLHttpRequest on a PHP script and load the result in a DIV has very powerful potential. But you're still using a div as if it were a unique browser window within a page.One thing to keep in mind is that posting a HTML form using PHP requires a Javascript function to dina
  16. yoshida

    Writing program

    I use Crimson Editor, which has code highlighting (but not syntax hinting). I don't use any WYSIWTF program, since it generally produces 'bad code'.Wasn't there a discussion like this already in another part of the forums?
  17. yoshida

    I hate IE 6

    As long as the code validates, I think it's unfair to call it bad code. IE6 has known compatibility issues with CSS2. I wonder why they never bothered to fix it with an update.To me, if a site works well in FF2, IE7, the Safari browser for Windows AND the newer Opera versions I don't bother damaging my code to be compatible with quirks in IE6. Unless IE6 is deemed the only supported browser for a company's intranet application.Short version: live with it or use a browser sniffer and multiple stylesheets (which has been done for too long).
  18. Thanks, I'll try, and post whatever result I come up with.
  19. Thanks, that makes more sense to me. Which shouldn't mean one solution is better than the other. My knowledge of Javascript is too limited to make such judgement.Would this work with the function provided by Jesh? Could that function be simplified in any way?
  20. Plus, they link to the W3C validation service, which I used to think about as a service offered by the W3Schools. It's very easy to mix things up like that and I think they're pretty much like two branches on the same tree.Thanks for clearing up a very important misunderstanding.
  21. OK I'm sorry, you're right but you're also abit harsh. Who is to say that there is no relation whatsoever between the World Wide Web Consortium and the World Wide Web Schools? W3S is in fact teaching standards developed by the W3C. But let's not turn this shouting into a war.
  22. The W3C is doing more than writing tutorials, they're creating standards and recommendations for how web languages should be applied by developers and interpreted by browsers. They also try to convince webdevelopers and browserbuilders to conform with these standards and recommendations. I see it improve as my sites work with all newer browsers with less and less hassle. There was a big interpretation gap between IE6 and FF1.5, but not so much between IE7 and FF2. Opera users may agree with the benefits, as would anyone who ever read a book written by one of the W3C members.These standards are
  23. n'ah, I've seen this tackled in another way somewhere, where the submit button was the event trigger and the Javascript function retrieved the sended post data by form ID. But I'll try this one. Thanks.
  24. It's not really clear yet... how should I define the first example (your quote)? Also, isn't form data supposed to be one 'value'? Could I give an ID to the form to simplify the process (getElementFromId)?Noted differently, what function should I add to my javascript file? What should the event trigger look like? (based on the thought that the function can extract data from the form if it has a certain ID) The solution is already taking shape in my head, but I can't get it to work on my screen yet.
  25. Hi,Short version: how do I submit a form through Ajax?Longer version:I defined the variable httpRequest using an object sniffer, and created a function called loadMainBody(serverPage). This function loads data into a div called Main. The datasource is defined by the variable serverPage, using a parameter in the event trigger, which is any variant of <a href="java script://" onclick="loadMainBody(datasource.html)">clickMe</a>.Loading a page into Main is a piece of cake. Loading a form into Main is the same cake with a slightly different topping. But submitting the form data to a han
  • Create New...