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 application level. This error can be caused by a virtual directory not being configured as an application in IIS. (X:\docs\project folder\project\web.config line 86)It's no doubt a minor serversided issue, like the project being in the wrong folder or a service that refuses to start. I didn't use the Search function because I lack sufficient experience to effectively use the right keywords (so don't nag about it!) and the outcome of this issue will greatly determine my motivation to learn this web language.Definite solutions only please, keep the guesstimation level to a plausible level. if anyone could help me out then that would be greatly appreciated.Thanks, Bram
  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-browser solution would be appreciated. In the most ideal case I can edit an entry when I click it, and batch-export all records to PDF.What kind of basic knowledge do I need? I can work with XML and understand the basic concepts of JS. I'd be most interested in understanding how I manipulate a XML file using JS, in such a way that the whole deal looks dynamic (no reloading and such). Would this mean I'd have to make each entry a block element with it's own autogenerated ID?Thanks in advance, have a good weekend.
  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. if (!serverPage) { var serverPage = 'tempmanpage.php'; } I tested this CMS manpage succesfully for the first script, tempmanpage.php (which manages information loaded for the template).When I use AJAX to load the script called defmanpage.php, the page to manage default HTML pages stored into the database, it shows as expected. I embedded a form with a dropdown menu to decide whether I want to create a new page or alter an existing one. A textarea is opened containing the HTML code for the page I want to alter or containing nothing at all if I want to create a new page. The action for this form is obviously index.html, because I want to reload my PHP script to create the textbox and fill it with the desired info. The problem is my javascript uses the default value (tempmanpage.php) and not the value for the last visited page (defmanpage.php).So the question is quite simple: I want my index.html to load a specific page when I click Submit. Is there any way to do so? Do I have to migrate my form from PHP to Javascript, and if so, what would be the best approach? I'm far more familiar with PHP than with Javascript.
  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 book about it. I actually own about 10 webprogramming/designing books, from basic XML to Bulletproof Ajax. I use six out of ten whenever designing a webpage.If you want to rely on books, I suggest you buy multiple books to learn and combine the best practices from all of them. Books improve on each other when used properly, and are a fair bit more professional and up-to-date than most tutorials you'll find online.Hope this helps.
  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 dinamically load the handler message into your DIV, and post the data to the handler. In other words: ALL communications are to be handled using the AJAX approach, you can't get away with direct interaction with the PHP script.Don't hesitate to flame me in cold blood if I'm clearly wrong at any point; I'm still learning but these are the basics I firmly believe to be true and base my design concepts upon. If I'm wrong, you'd be doing me a favor by telling me.
  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. yoshida

    Ajax and forms

    Thanks, I'll try, and post whatever result I come up with.
  19. yoshida

    Ajax and forms

    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 saving our time, application of them means having a competitive edge and making more profit. Any time invested by the W3C members has been saved a thousandfold worldwide. And they do it for free. There hasn't been an organisation like W3C in the world ever. So why should anyone care ow their website looks, it's for geeks/pro's and not really for n00bs and fancycats.
  23. yoshida

    Ajax and forms

    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. yoshida

    Ajax and forms

    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 handler and load the handler into Main using the function loadMainBody(handler.php) is another kind of cake entirely.What would be the shortest way to do this? My guess is I have to turn the submit button into an event trigger, but that's about as far as I can manage.Any real help would be greatly appreciated. Thanks in advance.
  • Create New...