www.webdeveloper.com
Results 1 to 4 of 4

Thread: Import data from xml using Javascript

Hybrid View

  1. #1
    Join Date
    Jul 2009
    Posts
    48

    Exclamation Import data from xml using Javascript

    Hello,

    I am making an unsecured html login using a javascript switch, but instead of using a switch i would like the script to verify the username and password from an xml file and then if it exists and its the right password it redirects to the desired page, but if it isn't the right password it displays an error message. Any help?

  2. #2
    Join Date
    Jan 2009
    Posts
    34
    use AJAX calls to parse your XML and then test for the existance using a for loop in your javascript.... However I highly recoomend using server authentication and a databse as it is more secure than having JavaScript makuing a call to an open XML file.

    You can see some AJAX tutorials here for AJAX ASP.NET libraries here...

    http://www.msdev.com/Directory/Searc...x?keyword=AJAX

    if you are using ASP or are on a windows server you can get the same tutorial in that site to distinguish making you authentication codng in ASP

    Hope this helps provde the insights you need!

    Larry D
    MSAE

  3. #3
    Join Date
    Jul 2009
    Posts
    48

    Post

    Thankyou but except i really do not know a thing about asp or AJAX other than AJAX being a cleaner, thanks anyway

  4. #4
    Join Date
    May 2009
    Posts
    7

    re

    This is a really basic AJAx tutorial:
    http://www.w3schools.com/Ajax/Default.Asp

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles