archive-com.com » COM » N » NEOPARADIGMS.COM

Total: 54

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • Article | Topic: ASP Dynamic Coding
    most likely place you would want to use dynamic coding Forms exist to provide interaction and as I ve said elsewhere interaction is what ASP development is all about You probably have two or more forms in your web project a contact page that sends you feedback a customer information form maybe you use a form to navigate between pages or to redirect to another page based upon user input Dynamic coding can make your forms smarter Using ASP code you can validate the form s content If you are savvy with web development you might say back to me that Javascript will also do the same just open and page made in FrontPage and you ll see this in action You can also use VBScripting instead to accomplish the same end provided you are using the end user s browser to do the work For many types of work this is the correct methodology It is certainly faster to have the browser correct the page but you will see that a great many forms still wait upon the Submit action to trigger validation If this occurs then you begin to use the coding inefficiently The problem is corrected by efficient coding however by either using a validation routine as the action in the page most common or using the Blur event of the active form element to perform the validation If you re not a developer I probably just lost you Don t worry The upshot of the previous paragraph is that web scripting if used properly can make your forms smart and efficient in collecting the information you need from your visitors Fortunately the nuts and bolts of efficient coding is not the focus of this discussion With regard to smart forms however one of the reasons you

    Original URL path: http://neoparadigms.com/asp-dynamic_coding.html (2016-04-29)
    Open archived version from archive


  • Article | Topic: ASP Server-Side Scripting
    very useful and demonstrate efficient use Although Internet Explorer has a commanding lead in the global install base it is just good design to accomodate some of the other browsers in our design process There are two ways we can do this we can use JavaScript to get this information from the client browser and code each page for both the determination and the handling of the differences or we can use ASP and the host server to determine the information and handling Which is better To answer this it is necessary to understand a little bit about resource usage in server versus client scripting When client side scripting is employed the resources used are those of the end user browser and machine Generally processing a page at the client can be more efficient for tasks that are contained wholly inside the individual web page A good example is the animation of page elements or form contents validation It would be wasteful in both resources and time to load the page and then send and receive calls to and from the server to manipulate elements of a loaded page Although we are dealing with how the end browser will display elements based on coded differences in this case server side scripting can and will be more efficient if used properly Proper use is the key phrase Different types of functions use server resources differently The task at hand determining browser requirements and properties involves querying the server for information carried to it by the request for your web page s Asking the server to tell you what it knows involves the heavier of the performance hits of server side scripting If you ask the server to get this information for each page you send to the client that would be inefficient and poor design If you think in terms of Every page on the host server coded the same way and all sending their data requests at the same instant you can see that the likelihood of slow response time even timeout and loss of request is very high Proper design therefore involves a mechanism not available in client side scripting global variables and data ASP and server side scripting allow you to get the information required all at once and store it until the end user leaves your site So the correct choice to make here is to use ASP coding at the server side and collect the information in a single request when the user first hits your web site The natural consequence of this is that you will also use server side scripting to read the stored information and predetermine the actions taken in the page construction before sending the page to the client You will still have to code each page to check for the information but the check would be performed like this pseudo code If Global variable browser type has been set build pages for Global variable browser type Otherwise this is the first

    Original URL path: http://neoparadigms.com/anatomy_of_a_dynamic_web_page_pt1.html (2016-04-29)
    Open archived version from archive

  • Article | Topic: ASP Database Connectivity
    single page Immediately following your validation code is the best place to locate your database connection and record insertion code Although we have taken care not to allow incomplete information and while not part of this article you should also have checked for malicious code entered as text there is another task required to ensure good data and along the way prevent data entry errors as well Check For Duplicate Data Entry Before attempting to add a new record Any good database design will include some measure of indexing and referential integrity If these are Greek words to you don t worry The upshot is that database development and ASP database connectivity coding should not permit or force duplicate information in your database It s all well and good that you may have thrown together a quick Access database with all default values thus ensuring the fewest end user errors but not necessarily the most astute design but we will take steps now to code around any flaws inherent in the database itself if they exist For instructional purposes we will assume that you have required four inputs First name Last Name Company and Phone Number We will also assume that you have preformatted the phone number to a consistent format at the validation stage not a bad idea hint hint These four string values by our rules must be unique to permit a new data record You should code for record updates versus inserts based upon same name but new company or new phone I would count same name and differing company and phone as a new entry but we will skip that here The pseudo code for this would look something like declare dbConnect variable declare dbRecordset variable Open connection Open recordset containing FirstName LastName Company Phone values

    Original URL path: http://neoparadigms.com/anatomy_of_a_dynamic_web_page_pt2.html (2016-04-29)
    Open archived version from archive

  • Article | Topic: ASP Single Page Solutions
    this task Most people well most people who have ever put up a webmailer page have come across a most excellent little freeware Perl file called FormMail Most web hosts even offer it as a free plug in Higher praise is hard to offer The point is that you are not confined to a single language base and Perl is a valid choice for many tasks We will stay within the generic ASP pseudo language for our discussion Send Mail Recall that we are still within our original single page We have collected our information validated it and added a record to our database We still have all of our information in Page Memory All we have to do is assemble it format it a bit so that it is intelligible to us when we get it as opposed to a single line of unbroken data and send it to ourselves Since this is a fairly common task sending email it might be a good idea to write a function that can be called easily whenever we want it The pseudo code for it will look much like this SendMail Function ToWho FromWho Subject Message Declare variables Get valid SMTP object Set SMTP object properties assemble the email message Send Mail You would store this function somewhere on your server in a file that you then include in the page that needs to perform this function You might store a great many useful little functions in a common library hint hint Returning to our page code we must assemble the message parts for our function to use the email addresses for To and From as well as the Subject are no trouble The message will need to be formatted however You will need to write Line Breaks or Carriage Returns

    Original URL path: http://neoparadigms.com/anatomy_of_a_dynamic_web_page_pt3.html (2016-04-29)
    Open archived version from archive

  • Article | Topic: Topic: HTML Encoding
    16 number I ll get to that in a moment but the value we will get is 20 To finish encoding the SPACE character we have to escape the value we have to tell the browser that we are encoding the value In HTML a percent sign is the escape character So a SPACE is written as 20 It sounds complicated perhaps but really it is very simple The process comes in two parts locate the ASCII code number of the characters you wish to encode The tough part is converting the decimal number to hexadecimal form If you are interested in reading the remainder of this article for information by all means please do I will be presenting the code you will want to use If on the other hand you have no interest in getting into the code details and only want a solution you can use right now without worrying why and how it works most of us really then you can use the following link to a small utility I am providing to simplify your life and get the job done Download HTML Encode Decode Utility Convert Characters HTML Encoded String For short strings you could manually translate each character to it s corresponding DEC number or go right to the HEX value on the chart below You could but it would be enormously tedious Ok by now you re thinking to yourself that there HAS to be an easy way to get this done And you re right You can use your web browser and a standard javascript call to change your text to HTML Encoded text JavaScript provides two functions to switch between HTML Encoded and normal text escape and unescape Not too difficult at all You can either use the stand alone utility provided in the link above or you can write a very simple html file with a form in it to do the very same job There is a small amount of work to be done to get the escaped version to actually print in a copiable form the browser tends to automatically restore the escaped string which is annoying when you actually want to print the escaped value Try The Form Result Get The Code Copy and Paste to a new file DOCTYPE html PUBLIC W3C DTD XHTML 1 0 Transitional EN http www w3 org TR xhtml1 DTD xhtml1 transitional dtd html xmlns http www w3 org 1999 xhtml head title HTML Encode String Example title meta http equiv Content Type content text html charset iso 8859 1 script language JavaScript type text javascript toAscii converts characters to decimal ascii values only works for space 32 through tilde 126 but that is sufficient function toAscii char build printable charset string var symbols 0123456789 var lcaseChars abcdefghijklmnopqrstuvwxyz var charset symbols var pos charset lcaseChars toUpperCase charset charset lcaseChars charset pos charset indexOf char if pos 1 Ascii Decimal 32 pos return 32 pos return 0 If not in range 32

    Original URL path: http://neoparadigms.com/techtip-html-encoding.html (2016-04-29)
    Open archived version from archive

  • Neo•Paradigms | Online Quote Request
    Site Web Links About Neo Paradigms Contact Us Capture The Mind The Market The Eye Web Design Quotes No form can adequately gather all the necessary details for a web development project certainly not within a manageable page The purpose of this form is to gather the base information you would like to convey so that we may properly assign a response team to your request We will use the

    Original URL path: http://neoparadigms.com/quote-web.asp (2016-04-29)
    Open archived version from archive



  •