SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Member
    Join Date
    Aug 2004
    Location
    il
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    response.write - error

    why do I get an error on the following code:
    <body>
    <%
    Response.Write" <script language = ""vbscript""> "
    Response.Write" res = MsgBox (""Do you want to edit appliance?"",4,""Edit Appliance"") "
    Response.Write" if res=7 then"
    Response.Write" end if"
    Response.Write" </script>"
    %>


    This code does work:
    <body>
    <%
    Response.Write" <script language = ""vbscript""> "
    Response.Write" res = MsgBox (""Do you want to edit appliance?"",4,""Edit ppliance"") "
    Response.Write" </script>"
    %>

    It seems that I have a syntax error, please help...

  2. #2
    Phil fillup07's Avatar
    Join Date
    May 2002
    Location
    Jacksonville, FL
    Posts
    1,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    We cannot help if you don't give us the error message.

  3. #3
    SitePoint Member
    Join Date
    Aug 2004
    Location
    il
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by fillup07
    We cannot help if you don't give us the error message.
    thanks for the replay,

    it was a syntax problem and I solved it by changing all
    the code to JS.

  4. #4
    Phil fillup07's Avatar
    Join Date
    May 2002
    Location
    Jacksonville, FL
    Posts
    1,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, you said originally that it was a syntax problem, but you did not copy and paste the error message as is necessary for our help in the future. Just letting you know so if you post again...

  5. #5
    SitePoint Evangelist
    Join Date
    Sep 2002
    Location
    Downunder
    Posts
    541
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can some one say for certain this will produce a client side msgbox rather than also producing a server side one as well. Am currently using but don't have access to the web server so can't see what's happening at that end.

    TIA

  6. #6
    SitePoint Evangelist
    Join Date
    Sep 2002
    Location
    Downunder
    Posts
    541
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Never mind, doesn't work in Firefox

  7. #7
    Drupaler bronze trophy greg.harvey's Avatar
    Join Date
    Jul 2002
    Location
    London, UK
    Posts
    3,258
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why on Earth would anyone use client side VBS???

  8. #8
    SitePoint Evangelist
    Join Date
    Sep 2002
    Location
    Downunder
    Posts
    541
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by greg.harvey
    Why on Earth would anyone use client side VBS???
    When you work in an environment where everyone is used to vb style message boxes, it help's them to see exactly the same thing with the new web enabled applications. Try getting that stuff happening in php btw

    It's about making the end users comfortable with using the software. Unfort it ain't working in Firefox (which approx 10% of the office use), so back to the drawing board for us. It's similar to using the word "abort" in a message when you hit a critical error, yes it describes what is happening, but nope not acceptable to some of our female staff.

    We're thinking of going down the lines of a bit of JS to pop a window and passing in parameters for error messages and icons, apparently the ! style icons are off putting as well. Currently one of our web researchers is seeing what people think of a beta popup .... which leads to the next question
    :'(


Bookmarks

Posting Permissions

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