OT: asp vbscript browser detection

Hello, from some times when I user firefox 2.x or safari on a
page with
browser detection script
Server.CreateObject("MSWC.BrowserType")
I get 'Default' browser name, with explorer all works fine...
howdy

Hello Michael, I thankyou for your suggestion, I see on web
stats some
users with ie5, I try to write some specific style ;-)
Michael Fesser write:
> .oO(howdy)
>
>> I need to switch the css or redirect to another page
old browsers (ie5
>> for sample) because I use some transparent png.
>
> Do such browsers really show up in your logs anymore?
And even if they
> do, I wouldn't care anymore. Or do you want your site to
look perfect in
> Netscape 4 as well? Somewhere you simply have to draw
the line.
>
> I don't even care about IE 6 that much anymore. I also
use a lot of PNGs
> with alpha-transparency, which is not supported in IE 6
(at least not
> natively). But as long as it doesn't look too bad and
all the content is
> accessible, I can live with some glitches.
>
> Write reasonable, standards-compliant markup and CSS,
that's the primary
> goal. Make sure your content is properly structured and
also accessible
> and usable without CSS.
>
> Then, if you think you have to fix something in IE here
and there, have
> a look at conditional comments to include an IE-specific
stylesheet.
> That's the recommended and most reliable way to supply
workarounds. If I
> remember correctly they're supported as of IE 5. But as
said - if this
> browser doesn't show up in your logs anymore, you don't
really have to
> care about it. It would be too much work for nothing.
>
> Micha

Similar Messages

  • Need to update a record on page load. How? (ASP/VBScript)

    The standard Update Record behavior requires a form on the page, plus a recordset to identify the value to be updated. In my scenario, the value for the record to be updated is already in the URL as the ID. I just don't know how to write it myself and Dreamweaver won't do this.
    The page I want to do this on is a record detail page, so there is already a record ID already present in the querystring. The record is new until a user views it, and what I need is something that just writes a simple value to one field in the table for the record being viewed. This is it in a nutshell:
    Using the value from the ID in the URL querystring, update the "viewed" field in a specific table with the value of "y".
    This would be the first operation as the page loads and then the page would load and show the data that it already does.
    I'd be happy with raw code is someone is generous enough to provide that, or perhaps some instructional help on reverse engineering the standard update record code generated by Dreamweaver. Or, if you know of any extensions designed to do this - I'd be interested in that too!
    My app I'm working on is in ASP/vbscript.
    Subject line edited by moderator to indicate server model

    Good point! I wasn't thinking about how that would make the app vulnerable to sql injection.
    The function I want to perform is similar to how an email changes from unread to read when you view it. I simple want the records being viewed to take on the status of being read or "viewed". Perhaps I'm going about this in the wrong way, but I've been planning to use a database field as the indicator of whether a record has a viewed status or not. Null value is new, and a value of "y" (yes) meaning the value is viewed/read.
    If you have a better recommendation, I'm all ears.

  • Browser detection code for JSP ?

    Hi ,
              Im new to JSP (in case the question wasn't a give-away!!).
              I would like to know how to do a browser detect - becuase I have
              1 CSS for IE and another for Netscape.
              Is there some code snippet site that I can get it from, or can
              someone post it here please> >?
              Thanks heaps
              ROb
              

    try:
              request.getHeader("User-Agent")
              If you want to see it, do something like:
              Browser: <%= request.getHeader("User-Agent") %>
              Hope that helps.
              Regards,
              Eric
              "rob" <[email protected]> wrote in message
              news:[email protected]..
              > Hi ,
              >
              > Im new to JSP (in case the question wasn't a give-away!!).
              >
              > I would like to know how to do a browser detect - becuase I have
              > 1 CSS for IE and another for Netscape.
              >
              > Is there some code snippet site that I can get it from, or can
              > someone post it here please> >?
              >
              > Thanks heaps
              >
              > ROb
              

  • Code Coloring, ASP/VBScript, & CS5

    My IT area has set up the web  server  to process all .HTM files as if they were .ASP. Subsequently, I  cannot  view my HTM files as they would appear if they were "true" ASP  files in  Dreamweaver CS5. I applied the changes described in TechNote  16410 to MMDocumentTypes.xml (removing the HTM extension from the winfileextension and macfileextension attirbutes of the HTML InternalType and adding the HTM extension to the winfileextension and macfileextension attirbutes of the ASP-VBScript InternalType). I moved HTM in Extensions.txt from the HTML Documents line to the Active Server Pages line and I removed the backup I had made of MMDocumentTypes.xml from the Adobe directory.
    Based on another posting in this forum regarding code coloring, I added <%@LANGUAGE="VBSCRIPT"%> to the first line of my HTM (ASP) file.
    No matter which file with the HTM extension I open in Dreamweaver, I get this message:
    When  this happens also I need to terminate Dreamweaver using Windows XP's  Task Manager.  File > Close, application "close" [X] button, Ctrl+Q  and Alt+F4 do not  work.

    As far as I know (could be wrong here), DW does not allow you to alter the behavior of htm(l) files. The technote is aimed at adding new file types that DW doesn't already recognize.

  • ASP VBScript

    I created a simple update ASP VBscript form in Dreamweaver 8.
    However the connection to my DB no longer works if someone enters
    quotation marks. The quotation marks appear in my DB however the
    connection is then broken, I think this is because quotation marks
    and apostrophes are classed as special characters. Can anyone
    advise me how I can modify my code to replace them with double
    apostrophes?
    Dim MM_editCmd
    Set MM_editCmd = Server.CreateObject ("ADODB.Command")
    MM_editCmd.ActiveConnection = MM_connDB_STRING
    MM_editCmd.CommandText = "UPDATE connDB SET title1 = ?,
    body1 = ?, title2 = ?, body2 = ?, title3 = ?, body3 = ? WHERE body1
    = ?"
    MM_editCmd.Prepared = true
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param1", 202, 1, 50,
    Request.Form("textfield"))
    MM_editCmd.Execute
    MM_editCmd.ActiveConnection.Close

    > Are developers "jumping ship" when it comes to ASP
    VBScript development?
    I love the VB.
    Dan Smith > adobe community expert
    http://www.dsmith.tv

  • ASP VBScript to XML RSS question

    I'm just not getting this to work in ASP VBScript.  I just want to loop the recordset so I have all the rows be translated into a xml based rss feed.  What I have makes sense to me, but I only get the first record no matter what I try.
    <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
    <!--#include file="Connections/cnConn.asp" -->
    <%
    set rsJobs = Server.CreateObject("ADODB.Recordset")
    rsJobs.ActiveConnection = MM_cnConn_STRING
    rsJobs.Source = "SELECT id, city, [state], jobtype, datePosted FROM DatabaseTable"
    rsJobs.CursorType = 0
    rsJobs.CursorLocation = 2
    rsJobs.LockType = 3
    rsJobs.Open()
    rsJobs_numRows = 0
    %>
    <%
    Dim Repeat1__numRows
    Dim Repeat1__index
    Repeat1__numRows = -1
    Repeat1__index = 0
    rsJobs_numRows = rsJobs_numRows + Repeat1__numRows
    %>
    <%
    response.write "<?xml version=""1.0"" encoding=""utf-8""?>"
    response.write "<rss version=""2.0"">"
    response.write "<channel>"
    response.write "<title></title>"
    response.write "<link>/</link>"
    response.write "<description></description>"
    %>
    <%
    While ((Repeat1__numRows <> 0) AND (NOT rsJobs.EOF))
    %>
    <%
      response.write "<item>"
      response.write "<title>" & (rsJobs.Fields.Item("jobtype").Value) & "</title>"
      response.write "<description>" & (rsJobs.Fields.Item("city").Value) & ", " & (rsJobs.Fields.Item("state").Value) & "</description>"
      response.write "<link>domain</link>"
      response.write "<pubDate>" & (rsJobs.Fields.Item("dateposted").Value) & "</pubDate>"
      response.write "</item>"
    %>
    <%
      Repeat1__index=Repeat1__index+1
      Repeat1__numRows=Repeat1__numRows-1
      rsJobs.MoveNext()
    Wend
    %>
    <%
    response.write "</channel>"
    response.write "</rss>"
    %>
    <%
    rsJobs.Close()
    Set rsJobs = Nothing
    %>

    Just giving it a casual look I don't see why it is not working. But why are you declaring all of those counters and then not using them? Seems to overly complicate things. I would get rid of all references to:
    rsJobs_numRows
    Dim Repeat1__numRows
    Dim Repeat1__index
    and then change the while loop test to:
    While (NOT rsJobs.EOF)
    It shouldn't really matter, since your counter used in the while test starts at -1 and is decremented so it should never = 0, but still, it's confusing to read.
    And of course, verify that the select statement actually returns more than one row. Use the recordcount property of the recordset.

  • Browser Detection Kit

    I have a site with several flash buttons. I can see them in
    IE but not Fiirefox or Netscape. I have re-downloaded Flash Player.
    This is the page:
    http://trainedwhistle.com/Audio_Books.html.
    I have found references to the Flash Browser Detection Kit on this
    sire but none of the links work. can anyone help me?

    I get a 404 error when trying your link.
    Can you check it and re-post.
    regards
    Nick Barling
    www.barkingweb.com

  • Simple call to stored function from asp (vbscript) adodb

    please let me know if this question would be better suited to another forum.
    i am simply attempting to call an oracle stored function that returns a varchar2 from an asp vbscript page using adodb. i have calling of stored procedures working fine.
    attempting to call the function with the following code:
    set sp_aprvd_cr = Server.CreateObject("ADODB.Command")
    sp_aprvd_cr.ActiveConnection = MM_MHR_CONN_STR_STRING
    sp_aprvd_cr.CommandType = 4
    sp_aprvd_cr.CommandTimeout = 0
    sp_aprvd_cr.Prepared = true
    sp_aprvd_cr.CommandText = "PMS.sp_hpmsq054_aprvd_cr"
    sp_aprvd_cr.Parameters.Append sp_aprvd_cr.CreateParameter("IP_PMSPT_ID", 200, 1,10,sp_aprvd_cr__P_PMSPT_ID)
    sp_aprvd_cr.Parameters.Append sp_aprvd_cr.CreateParameter("return_param", adVarchar, adParamOutput)
    set rst_aprvd_cr = sp_aprvd_cr.Execute
    suspect that preparing the return code is where i am having troubles.
    any examples or assistance would be greatly appreciated.
    thanks in advance.

    Return value from stored function must be the first parameter in the parameters collection.
    So, try this instead,
    sp_aprvd_cr.Parameters.Append sp_aprvd_cr.CreateParameter("return_param", adVarchar, adParamOutput)
    sp_aprvd_cr.Parameters.Append sp_aprvd_cr.CreateParameter("IP_PMSPT_ID", 200, 1,10,sp_aprvd_cr__P_PMSPT_ID)Cheers,
    NH

  • ¿How i make a Browser Detect swf movie?

    Hi, i use a simple embed swf movie in one of many pages i own, but recently I build a new page in html5. But i tested in Internet Explorer and doesnt work well. What i need its a script code in AS3 to use in my swf movie that detect the browser and if the browser its IE9 load an old page, but if its other browser is like mozilla or chrome, load  the new page in html5.
    It is possible to do that in AS3 right?
    Thanks to all
    Firefawx 

    You can simply say "I want an animation to play before it decides which page to load" and we'd get it. So you want to show your logo animation.
    Use the tutorial link I gave you and look at the code. It is a full example of browser detection using both actionscript and javascript. ActionScript needs JavaScript to get the information on what browser it is. All of the information and code examples are there to show you how to detect the browser.
    Spanish translation:
    Usted puede simplemente decir "yo quiero una animación para jugar antes de que decida lo que se cargue la página" y que sería para nosotros. Así que usted quieremostrar su animación de la insignia.
    Utilice el enlace tutorial que te di y mirar el código. Se trata de un ejemplo completo dela detección del navegador utilizando tanto ActionScript y JavaScript. ActionScriptnecesita JavaScript para obtener la información del navegador que es. Todos los ejemplos de la información y el código están ahí para mostrar la forma de detectar el navegador.

  • Update multiple records with Update Command Dreamweaver 8.0.2 - ASP VBScript

    Dreamweaver 8.0.2 - Language ASP – VBScript
    I’m trying to update more than one record at a time
    using checkboxes. I’ve successfully done this numerous times
    prior to Dreamweaver 8.0.2.
    Before Dreamweaver 8.0.2, I would create a page with a
    recordset, form, checkbox and repeat region and pass the ID to
    another page containing an ‘Update Command’. The code
    on the Update page looked similar to the following:
    <%
    if(Request.QueryString("MemberID") <> "") then
    spMemberApproving__MMColParam = Request.QueryString("MemberID")
    %>
    <%
    set spMemberApproving = Server.CreateObject("ADODB.Command")
    spMemberApproving.ActiveConnection =
    MM_connIssuesManager_STRING
    spMemberApproving.CommandText = "UPDATE tblMembers SET
    MemberApproved = 1 WHERE MemberID IN (" +
    Replace(spMemberApproving__MMColParam, "'", "''") + ")"
    spMemberApproving.CommandType = 1
    spMemberApproving.CommandTimeout = 0
    spMemberApproving.Prepared = true
    spMemberApproving.Execute()
    Response.Redirect("default.asp")
    %>
    However, in Dreamweaver 8.0.2 when you fill out the Update
    Command dialog box, Dreamweaver asks you to provide the
    ‘Type’ and ‘Size’ for the variables (see:
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=4e6b330a
    That being said and done, the code on the Update page looks
    like the following:
    <%
    ' IIf implementation
    Function MM_IIf(condition, ifTrue, ifFalse)
    If condition = "" Then
    MM_IIf = ifFalse
    Else
    MM_IIf = ifTrue
    End If
    End Function
    %>
    <%
    if(Request.QueryString("MemberID") <> "") then
    spMemberApproving__MMColParam = Request.QueryString("MemberID")
    %>
    <%
    Set spMemberApproving = Server.CreateObject ("ADODB.Command")
    spMemberApproving.ActiveConnection =
    MM_connIssuesManager_STRING
    spMemberApproving.CommandText = "UPDATE tblMembers SET
    MemberApproved = 1 WHERE MemberID IN (?) "
    spMemberApproving.Parameters.Append
    spMemberApproving.CreateParameter("MMColParam", 202, 1, 10,
    MM_IIF(Request.QueryString("MemberID"),
    Request.QueryString("MemberID"), spMemberApproving__MMColParam
    spMemberApproving.CommandType = 1
    spMemberApproving.CommandTimeout = 0
    spMemberApproving.Prepared = true
    spMemberApproving.Execute()
    Response.Redirect("default.asp")
    %>
    The Update Command works perfectly when only 1 record is
    being updated. However, when I try to update more than one record I
    get the following error:
    Error Type:
    ADODB.Command (0x800A0D5D)
    Application uses a value of the wrong type for the current
    operation.
    /issues_manager/admin/members_approving.asp, line 27
    Can anyone help me out?

    Yes, this is a bug in Dreamweaver 8.0.2. The only workaround
    is to stay with
    8.0.1 or to hand-code the query. Adobe removed most of the
    useful ways to
    use Commands and Recordsets in 8.0.2 and limited it to basic
    queries.
    Tom Muck
    co-author Dreamweaver MX 2004: The Complete Reference
    http://www.tom-muck.com/
    Cartweaver Development Team
    http://www.cartweaver.com
    Extending Knowledge Daily
    http://www.communitymx.com/
    "Button1" <[email protected]> wrote in message
    news:[email protected]...
    > Dreamweaver 8.0.2 - Language ASP ? VBScript
    >
    > I?m trying to update more than one record at a time
    using checkboxes.
    > I?ve
    > successfully done this numerous times prior to
    Dreamweaver 8.0.2.
    >
    > Before Dreamweaver 8.0.2, I would create a page with a
    recordset, form,
    > checkbox and repeat region and pass the ID to another
    page containing an
    > ?Update Command?. The code on the Update page looked
    similar to the
    > following:
    >
    > <%
    > if(Request.QueryString("MemberID") <> "") then
    > spMemberApproving__MMColParam =
    > Request.QueryString("MemberID")
    > %>
    >
    > <%
    >
    > set spMemberApproving =
    Server.CreateObject("ADODB.Command")
    > spMemberApproving.ActiveConnection =
    MM_connIssuesManager_STRING
    > spMemberApproving.CommandText = "UPDATE tblMembers SET
    MemberApproved = 1
    > WHERE MemberID IN (" +
    Replace(spMemberApproving__MMColParam, "'", "''") +
    > ")"
    > spMemberApproving.CommandType = 1
    > spMemberApproving.CommandTimeout = 0
    > spMemberApproving.Prepared = true
    > spMemberApproving.Execute()
    >
    > Response.Redirect("default.asp")
    > %>
    >
    > However, in Dreamweaver 8.0.2 when you fill out the
    Update Command dialog
    > box,
    > Dreamweaver asks you to provide the ?Type? and ?Size?
    for the variables
    > (see:
    >
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=4e6b330a
    >
    >
    >
    > That being said and done, the code on the Update page
    looks like the
    > following:
    >
    > <%
    > ' IIf implementation
    > Function MM_IIf(condition, ifTrue, ifFalse)
    > If condition = "" Then
    > MM_IIf = ifFalse
    > Else
    > MM_IIf = ifTrue
    > End If
    > End Function
    > %>
    >
    > <%
    > if(Request.QueryString("MemberID") <> "") then
    > spMemberApproving__MMColParam =
    > Request.QueryString("MemberID")
    > %>
    > <%
    >
    > Set spMemberApproving = Server.CreateObject
    ("ADODB.Command")
    > spMemberApproving.ActiveConnection =
    MM_connIssuesManager_STRING
    > spMemberApproving.CommandText = "UPDATE tblMembers SET
    MemberApproved = 1
    > WHERE MemberID IN (?) "
    > spMemberApproving.Parameters.Append
    > spMemberApproving.CreateParameter("MMColParam", 202, 1,
    10,
    > MM_IIF(Request.QueryString("MemberID"),
    Request.QueryString("MemberID"),
    > spMemberApproving__MMColParam & ""))
    > spMemberApproving.CommandType = 1
    > spMemberApproving.CommandTimeout = 0
    > spMemberApproving.Prepared = true
    > spMemberApproving.Execute()
    >
    > Response.Redirect("default.asp")
    > %>
    >
    >
    > The Update Command works perfectly when only 1 record is
    being updated.
    > However, when I try to update more than one record I get
    the following
    > error:
    >
    > Error Type:
    > ADODB.Command (0x800A0D5D)
    > Application uses a value of the wrong type for the
    current operation.
    > /issues_manager/admin/members_approving.asp, line 27
    >
    >
    > Can anyone help me out?
    >
    >

  • Unsupported Browser Detected

    On three computers (since we updated adobe this last time) when we try to open a PDF file, we get the following message-
    "Unsupported Browser Detected
    PDF Compatibility Mode requires Internet Explorer 5.5 for Windows or better
    If you are not sure whether a supported browser is installed on  your computer, please contact your system administrator. PDF  Compatibility can be toggled on/off in your System Configuration  settings."
    I have IE10, Windows 7 (on this system) and XP on the other two. I have re-downloaded both acrobat and flash a few times now, went into the registry key to delete the "creative update" as was suggested on another thread (it was not there), and tried earlier versions. I also downloaded firefox as a browser as was also suggested... no go. I was also told that a 32 bit browser like Chrome would work. It didn't.
    After three days of troubleshooting, re-downloading, etc., I am at my wits end.
    HELP PLEASE

    If the site only works with older versions of Firefox try it with Firefox 3.6
    You may wish to try Firefox Portable, you can then use that for the problem site, and continue to use Firefox 8, or 9 for day to day browsing. (I think Firefox 9 is due out as a new Release today).
    * see [[installing a previous version of firefox]]
    * and http://portableapps.com/apps/internet/firefox_portable/localization#legacy36

  • Does Weblogic Provides any in built utility for server side browser detection

              Hi
              Does Weblogic Provides any in built utility or package for server side browser
              detection i.e. to know the browser details
              of the client with the first request.
              One such available product is BrowserHawk(http://www.cyscape.com).
              any thing similar to this available?
              Thanks in advance
              Mrutyunjay
              

    Hey Mohammed,
              yes, you could use just wl server to do file uploading. in your html client
              code, you need to specify the type of the data that you are sending as
              follows:
              <form action="UploadTestServlet" enctype="multipart/form-data" method=POST>
              File: <input type=file name=file><br>
              <input type=submit>
              </form>
              This will send your file to be processed by the UploadTestServlet. You need to
              code UploadTestServlet yourself to parse and extract useful data. check out
              www.servlets.com for a utility class that does just that
              Winston
              Mohammed Ali Usmani wrote:
              > Hi to All;
              >
              > I want to know if I can use weblogic (webserver) for file uploading from
              > client browser without using any ftp server.
              > Do I have to use some special code (may be in my servlet/html page) for
              > handling this. I mean that do I have to provide the implementation of RFC
              > 1867 by myself at server side?
              >
              > Or it is just merly a browser support? It doesn't effect the webserver at
              > all?
              >
              > Thanks
              

  • ASP VBScript producing Dreamweaver Javascript Error Messages

    Do almost anything in Dreamweaver CS4 with ASP VBScript seems to produce javascript error messages.  can be a blank page, and you try to create a recordset... error box, error box, and then the code gets inserted but is not in the server behaviors panel.  i'm usually working in php and have never had this problem, but it's quite annoying to work that way... being forced to hand code a lot simple because dreamweaver isn't working correctly.
    warning one:
    the following javascript error(s) occurred:
    warning two:
    while executing findServerbehaviors in Recordset.htm, a JavaScript error occurred
    deleted .dat file and restarted dreamweaver, per some discussions via google... did nothing.

    anyone know how to fix this issue with dreamweaver?

  • Browser detection script

    Hello,
    I'm wondering how playback in Flash or on older browsers work. Does the published content run a browser detection script?
    Thank you.

    Actually this seems to work better:
    if (accept.indexOf("vnd.wap.wml") >= 0) {
         // I have a WAP browser...
    }I thought Opera (being WML compatible) would load the WML content, but thankfully it does not broadcast it in the Accept header.
    Thanks.

  • IE6-only browser detect?

    How do I insert code to detect ONLY IE6? This seems to be the
    only major browser that messes up my design.
    http://descom.org/okay/home.html
    Thanks!

    Use IE Conditional Comments instead. Browser detection is
    pretty
    unreliable. To read more about IE CC's Google it.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "descom" <[email protected]> wrote in
    message
    news:ea84c0$o98$[email protected]..
    > How do I insert code to detect ONLY IE6? This seems to
    be the only major
    > browser that messes up my design.
    >
    http://descom.org/okay/home.html
    >
    > Thanks!

Maybe you are looking for

  • Problem with Table Value Set

    Hi, i have created a Table value Set for showing Vendor_site_code in DFF XXXX_VENDOR_NAME Table Application :Purchasing Table Name:PO_VENDORS Value:VENDOR_NAME ID:VENDOR_ID XXXX_VENDOR_SITECODE Table Application :Purchasing Table Name:PO_VENDORS PV,

  • Toshiba external HDD not recognized by MacBook Air

    I have a 1TB Toshiba USB3.0 external hard drive that I have been using for the last year or so to back up all my work data. The drive works perfectly when I connect it to a PC (Dell desktop, laptop, HP laptop, etc.).  I even was using it last night o

  • Configure Deffered Tax procedure, please help?

    Hi Experts, I am working on a project. please help me to configure Deffered Tax procedure. So far I have configured regular Tax codes & replica of the same as target tax code. Please advice how to : 1. what special should i mention to in target tax c

  • Non-Serializable objects in webservice

    Hi everyone, I'm writing a webservice that connects and performs update on a third-party data repository (document management system) through the vendor provided framework. Some of the objects used in the framework are not serialized, and WebLogic Wo

  • Outline stroke giving too many unnecessary points.

    how will I'm going to deal with this? when I converting into this, it give too many points even it looks like it can can just a 2 to 4 points. Any plugin that I may use while still maintaining its shape? and btw i'm on PC not Mac. Simplify and Cleanu