Javascript ASP

CS3
ASP - VB Script
mySQL version 5
I have a simple insert statement using the dreamweaver cs3
wizard.
Text Area inserts to varchar field type no problem.
I have a dynamic list next to the Text Area which is
populated using
this code.
<%
While ((Repeat1__numRows <> 0) AND (NOT Shorthand.EOF))
%>
<a href="javascript:;"
onclick="document.form1.notetext.value+='<%=(Shorthand.Fields.Item("shorthand_text").Valu e)%>'"><%=(Shorthand.Fields.Item("shorthand_text").Value)%></a><br>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Shorthand.MoveNext()
Wend
%>
The problem arises when I go hit submit to Insert and it
crashes saying
the content of the text box is not in the field list.
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[MySQL][ODBC 3.51 Driver][mysqld-5.0.54-log]Unknown column
'NotAvailable' in 'field list'
/lawyers/Notes_New.asp, line 46
I used to be able to debug sql statement but am stumped as to
how to do
it in CS3.
I know the javascript is screwing it up.
Any help is appreciated.

MikeL7 wrote:
> I think its the += thats not working try this
> <a href="#"
>
onclick="document.form1.notetext.value='<%=(Shorthand.Fields.Item("shorthand_tex
>
t").Value)%>'"><%=(Shorthand.Fields.Item("shorthand_text").Value)%></a><br>
>
>
Thanks Mike.
Weird, I compared it to another page with exactly the same
functions and
works fine. A varchar database field was assigned a code 202
by
dreamweaver on the page that didn't work and 201 on the page
that did.
I changed it to 201 on the broken page manually and it now
works fine.
That cost me three days!!!!!!!!!!
ARGH!!!!

Similar Messages

  • DreamweaverのJavaScriptエラー

    現在、WindowsXP Professional の環境下でDreamweaver8を使用していますが、簡単なFlash(MX Professional 2004)をトップページに組み組むときに誤ってコードを修正してしまったためか、次のようなエラーが突然、更新ページだけでなく、Dreamweaverを開くときにも発生するようになり ました。
    【1】Dreamweaverを開くときのエラー・メッセージ:
    以下のJavaScriptエラーが表示されます。
    「ライン56、ファイル“C¥Program Files¥Macromedia¥Dreamweaver8¥Configuration¥Shared¥Common¥Scripts¥dwscriptsExtData.js”:Re ferenceError:dwscrpts is not defined」
    参考までに、「OKボタン」を押すと、「onLoad内で_onOpen.htmを実行中、JavaScriptエラーが発生しました。」と続けて表示されます。
    【2】更新ページでのエラー・メッセージ:
    更新ページでは、更に次のようなエラーメッセージが表示されます。
    「エラーのため、次のトランスレーターがロードされませんでした。
    ASP.htm:には無効な設定情報が含まれています。」以下、Coldfusion, JSP,PHP_MySQL,XSLTと続き、いずれも同様の表現です。
    また、Flashを一旦削除して、タグの間に、再度、挿入しようとすると、全く、挿入ができません。
    これらのエラーメッセージや症状は、今まで全く問題が無かった他のホルダー(サイト)でも表示されるようになったため、上記エラーメッセージの意味と対処法がわからず困惑しています。
    お手数ですが、どなたかご存知の方、お教えいただけますでしょうか。

    当方で試行錯誤した結果、「Dreamweaver ユーザ設定フォルダを再作成」して、無事解決することができました。
    お騒がせしました。

  • Adobe Flash Player 12.0.0.77 not playing in Mozilla Firefox 27.0.1

    I am using Windows XP.  I downloaded Adobe Flash Player 12.0.0.7 and installed it on my computer.  I opened Mozilla Firefox 27.0.1 and went to youtube to watch videos.  I clicked on a video to watch and received the following information:
    The Adobe Flash Player is required for video playback.
    Get the latest Flash Player.
    I opened Control Panel on my computer and saw that Adobe Flash Player is indeed installed.  So why is Firefox not recognizing it?

    I opened Firefox, clicked on "Tools", clicked "Add-ons", and noticed there is a "Shockwave Flash 12.0.0.77" listed.  Is that the adobe flash player?
    Yes, it is.
    It is set on "never activate" - because when I have it on, I get a computer page stall from time to time, and a little window pops up saying, "Warning:  Unresponsive script, A script on this page may be busy, or it may have stopped responding.  You can stop the script now, or you can continue to see if the script will complete."
    See: https://support.mozilla.org/en-US/kb/warning-unresponsive-script for a few suggested solutions.
    BTW, "script" errors are not the same as Unresponsive plug-in errors.
    The former are caused by javascript, ASP script or PHP scripts (in the page code) malfunctioning or "locking up".
    The latter are caused by a defective plug-in (like Flash Player).

  • How can you remove the Save button on a survey?

    What options are there to remove the SAVE button from a SharePoint survey?
    I need to remove this if possible, I was hoping it would be as simple as editing a form in the Survey list... but that is apparently not the case.
    I need to supress the SAVE button as it confuses end users and we don't want any half completed surveys. Either it gets finished or not at all.
    Can someone hopefully provide me with an nice simple solution?  Or any solution at all :)
    Thanks!

    Hi,
    Save button on the surveys with multiple question or with branching logic enabled is an out of the box feature and it is by design.
    If you want to remove the “save” button in a survey, I think you can use JavaScript to hide this button:
    1. Open your site in SharePoint Designer.
    2. Open your survey list newform.aspx page, in the code view, find this code “<asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server"> <table>……. </table> “add the JavaScript” </asp:Content>”, add JavaScript before the “</asp:Content>” tag:
    <script>
    var x=document.getElementsByTagName("input");
    for (var i=0;i<x.length;i++)
    if (x.item(i).type=="button"&&x.item(i).value=="Save")
    {x.item(i).style.display = "none"};
    </script>
    After this, you will not see the “Save” button when create new survey response. You can also add this JavaScript in the editform.aspx page.
    Hope it can help you.
    Xue-Mei Chang

  • PHP/Mysql issue

    I use Dreamweaver CS3 to create my sites on a Windows/Apache
    Server with PHP5 and Mysql 5. The site works perfectly on my
    testing server at home. On the Web server I'm getting the following
    error which causes the page to not load:
    PHP Warning: mysql_query(): supplied argument is not a valid
    MySQL-Link resource in
    /hermes/bosweb/web248/b2488/ipw.horsehelp/public_html/residents/residents.php
    on line 63
    PHP Warning: mysql_select_db(): supplied argument is not a
    valid MySQL-Link resource in
    /hermes/bosweb/web248/b2488/ipw.horsehelp/public_html/residents/residents.php
    on line 61
    The lines in question are:
    Line 61 - mysql_select_db($database_conn_phh, $conn_phh);
    $query_getSuccess = "SELECT * FROM horses WHERE status =
    'Success Story' ORDER BY horse_barn ASC";
    $getSuccess = mysql_query($query_getSuccess, $conn_phh) or
    die(mysql_error());
    $row_getSuccess = mysql_fetch_assoc($getSuccess);
    $totalRows_getSuccess = mysql_num_rows($getSuccess);
    All of the code is supplied by Dreamweaver. I did not tweak
    the code. I'm not a web developer and what I have found out there
    is still reading greek to me. My connection file is working and
    connecting the database that I have tested.
    Since the above code is throughout the site in one form or
    another it's causing me major headaches. Any help would be
    appreciated.

    This is the first time I've used Adobe products so if the
    following is in the wrong forum (It's the closest one I found so
    far) or the format is incorrect please forgive me.
    I'm new to Dreamweaver CS3 and as I was reading the "first
    steps" it mentions to set up a Dreamweaver site right away. I got
    as far as completing "Site Definition" page under the basic side of
    the setup screen.
    The next screen is "Do you want to work with server
    Technology?"
    There are 2 options - Yes or No. If you select yes a
    drop-down menu appears with several options (but you can only
    select one)...
    Asp Javascript
    Asp VbScript
    Asp.net#
    Asp.net Vb
    Cold Fusion
    JSP
    Php MySql.
    I know nothing about these format and brand new to web design
    so I thought it best to contact GoDaddy (my hosting account) to
    find out what their servers would support. I spoke to a tech rep
    but she wasn't sure.
    She did mention that I have a windows hosting account and Php
    MySql would not work unless I changed to their Linux platform at no
    additional charge.
    The site I have in mind will design with CSS, Liquid layout,
    have some flash, widgets, an inquiry form that clients complete and
    results e-mailed to me, auto-responder, Paypal link and whatever
    else I can discover from Dreamweaver.
    My question being:
    I haven't even begun designing my site because I do not know
    what weather I should select the Yes option and select one of the
    formats mentioned above (if so which one) - or select the No
    option. If I do select the No option at the very beginning, will I
    have problems with my site uploading and working correctly?
    Thank you
    Travis

  • Help needed : Spry Blogspot RSS Reader

    I am trying to build a RSS feed reader that pulls the content
    from blogspot.
    If I pull the feed via
    http://??????.blogspot.com/feeds/posts/default?alt=rss
    (rss 2.0) I can see the schema. I can also see all the columns when
    i go to the Spry table generator. Unfortunately I get nothing when
    i load the page in Firefox or Safari. Any ideas why? Has anyone
    gotten this to work?
    Same exact thing happens when I try and pull it as an Atom
    feed:
    http://??????.blogspot.com/feeds/posts/default
    I've been using Spry for quite a few things and have been
    loving it, but this one has me stumped. Any help would be greatly
    appreciated.

    Thanks for the prompt answer. I had actually just come across
    it. I am using javascript (ASP) to create a proxy. works great now.
    I'll put the code in if anyone wants to use it:
    <%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%>
    <script language="JavaScript" runat="server">
    Response.ContentType = "text/xml";
    Response.Charset="utf-8";
    try
    // rssURL is set to the path RSS feed...
    var rssUrl = "
    http://???????.blogspot.com/feeds/posts/default?alt=rss";
    var xml = new ActiveXObject("MSXML2.DomDocument.4.0");
    xml.setProperty("ServerHTTPRequest", true);
    xml.async = false;
    xml.validateOnParse = true;
    xml.load(decodeURIComponent(rssUrl));
    // if something goes wrong, we'll send out an XML-formatted
    error response.
    if (xml.parseError.errorCode != 0)
    xmlError = new Error();
    xmlError.Message = "<?xml version=\"1.0\"
    encoding=\"utf-8\"?>";
    xmlError.Message += "<error>";
    xmlError.Message += "<description>";
    xmlError.Message += "Error parsing feed: " +
    xml.parseError.reason;
    xmlError.Message += "</description>";
    xmlError.Message += "</error>";
    throw(xmlError);
    // Handily, we can simply save the XML to the Response
    stream in ASP.
    xml.save(Response);
    catch(e)
    Response.Write(e.Message);
    </script>

  • Live data view

    I installed php om my mac using xampp. I made a testSite
    folder in the htdocs folder in xampp. I made a new Site in
    Dreamweaver and made the testSite folder the test server folder
    with local php/MySQL. I put
    http://localhost/ as the URL preffix,
    and I've tried 127.0.0.1. I made a dateTest php file and saved it
    in testSite. I enter the link into my browser and the correct date
    showed up, so I think I have my testing server working. Then when I
    try live data view in DW I get the 404 error. It says its
    attempting to request the dateTest.php file but it always adds some
    radom number to the file name and it does'nt show the subfolder
    testSite. The path in the error message is
    http://127.0.0.1/dateTest_TUUF58NIX.php.
    when I type it in my browser it's
    http://127.0.0.1/testSite/dateTest.php
    is this the problem or does anyone know whats going on?
    thanks for any help.

    OK, I have at least figured the first part out, which as I
    gather from Google searching may be of use to a few people.
    Of course, this is a wacky Vista permissions problem. One
    must go to the folder in which your DB is housed and change the
    permissions of user name IUSR to read and write. Note that as I
    understand it this is changed in Vista relative to XP: In XP one
    would change the permissions for user IUSR_<machine_name>.
    Not so Vista.
    I now have a new problem: when I try to execute the
    Javascript .asp page using Live Data View, it gives me the error
    "Microsoft JScript runtime error '800a1391
    "'IInventory' is undefined"
    I should mention that "Inventory" is the name I gave to the
    DSN connection in ODBC Administrator.
    Anybody got any ideas on this one?

  • Acrobat X: Java-Script-Problem

    Hallo zusammen,
    ich habe folgendes Problem: aus einer .pdf-Datei möchte ich die Bookmarks, die ich selbst erstellt habe, auslesen (warum führt zu weit).
    Dafür verwende ich folgendes Script, das ich von www.evermap.com/javascript.asp habe:
    /* Create a bookmark report */
    function PrintBookmark(Report, bm, nLevel)
    // write a name of the bookmark
            var inch = 72; 
    Report.writeText(bm.name);
    // process children
    if (bm.children != null)
      Report.indent(inch/2);
      for (var i = 0; i < bm.children.length; i++)
       PrintBookmark(Report, bm.children[i], nLevel + 1);
      Report.outdent(inch/2);
    var root = this.bookmarkRoot;
    var Report = new Report();
    PrintBookmark(Report, root, 0);
    // Change output path for the report
    Report.save("/c/myreport.pdf");
    Acrobat gibt über die Console als Fehler zurück: bm is undefined.
    Ich verstehe das so, das ich bm als var erst definierten muss. Aber wie? Javascript ist mir zu hoch...
    Kann mir jemand helfen?
    Vielen Dank schon im Voraus,
    Stefan

    Ich hab die Lösung :
    http://acrobatusers.com/content/create-bookmark-report
    Trotzdem vielen Dank fürs Lesen!

  • Starting

    Hello
    My Name is Shahab
    I have a question and I hope you can help me.
    I want to start web site designing with Dreamweaver.
    I wonder what do I need to know?
    In the help books that I read ,they said no need for coding
    But when it comes for dynamic pages what should I do?
    And where should I start to learn?
    Do I need to know all about XML, JavaScript, ASP,
    .Net…..
    Could you help me in this matter please?
    Thank you
    Yours sincerely Shahab

    Start with HTML and CSS. Forget everything else until you are
    very
    comfortable with this basic knowledge.
    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
    ==================
    "shahab11" <[email protected]> wrote in
    message
    news:fbcph4$n8c$[email protected]..
    > Hello
    > My Name is Shahab
    >
    > I have a question and I hope you can help me.
    >
    > I want to start web site designing with Dreamweaver.
    > I wonder what do I need to know?
    > In the help books that I read ,they said no need for
    coding
    > But when it comes for dynamic pages what should I do?
    > And where should I start to learn?
    > Do I need to know all about XML, JavaScript, ASP,
    .Net?..
    > Could you help me in this matter please?
    > Thank you
    > Yours sincerely Shahab
    >
    >

  • Easy Syntax Question

    I have a JavaScript asp page. On that page I have the
    following line displayed...
    <th scope="col"><A HREF="AddToCart2.asp?<%=
    Server.HTMLEncode(MM_keepURL) + ((MM_keepURL!="")?"&":"") +
    "ID=" + rsMasterCardList.Fields.Item("ID").Value
    %>">Withdraw</A></th>
    I only want the "Withdraw" hypertext to be displayed if the
    variable rsMasterCardList.Fields.Item("Quantity").Value is > 0.
    Java is killing me with all the brackets, parenthesis, and
    semicolons. I just can't seem to figure out what goes where. Thanks
    in advance for all the help.

    "MrJCG1" <[email protected]> wrote in
    message
    news:ekoamj$n61$[email protected]..
    > Oh my. Thank you. That worked. Sorry it took so long to
    respond. I
    > looked
    > at your post and I thought all that code looked a little
    bit insane for
    > something so simple. But I went and plugged it in and it
    worked
    > perfectly.
    >
    > Why so much code for something so simple? Why couldn't I
    just have a
    > "server
    > side" IF statement checking the value and if it = 0 then
    don't execute
    > the
    > "client side" code posting on the web page?
    That's exactly what you have. I used Response.Write to keep
    everything
    enclosed, but you could have just as easily left the HTML
    outside the server
    block.
    JScript:
    <th scope="col">
    <%
    if((rsMasterCardList.Fields.Item("Quantity").Value) > 0) {
    %>
    <A
    HREF="AddToCart2.asp?<%=Server.HTMLEncode(MM_keepURL) +
    ((MM_keepURL !=
    "")?"&":"") + "ID=" +
    rsMasterCardList.Fields.Item("ID").Value%>">Withdraw</A>
    <%
    %>
    </th>
    VBScript:
    <th scope="col">
    <%
    If rsMasterCardList.Fields.Item("Quantity").Value > 0 Then
    %>
    <A
    HREF="AddToCart2.asp?<%=Server.HTMLEncode(MM_keepURL))%><%
    If MM_keepURL <> "" Then
    Response.Write("&")
    End If
    Response.Write("ID=" &
    rsMasterCardList.Fields.Item("ID").Value)%>">Withdraw</A>")
    End If
    %>
    </th>
    > Anyway, thank you. I feel like sending you a tip ($).
    Make me understand
    > why
    > I can't do what I mentioned above and I just might.
    >
    There's no need for a client-side function. Your data is on
    the server; the
    HTML is generated on the server; you output what you need
    using only
    server-side code. The reason there's so much up there is
    because of your
    need to preserve the query string. If you were only
    presenting a link for
    ID with no need to keep the query string, it would look much
    simpler:
    <th scope="col">
    <%If rsMasterCardList.Fields.Item("Quantity").Value > 0
    Then%>
    <A
    HREF="AddToCart2.asp?ID=<%=rsMasterCardList.Fields.Item("ID").Value%>">Withdraw</A>
    <%End If%>
    </th>

  • Webdesigner sucht Ansetllung

    Liebe User,
    ich bin ein 17jähriger Webdesigner und suche einen festen Job. Ich beherrsche neben Golive, ImageStyler, Livemotin, Photoshop und Flash die Sprachen HTML, DHTML, JavaScript, ASP. Ich suche ab September eine Anstellung in der Gegend von München oder Augsburg. Bitte lassen Sie sich nicht von meinem Alter ablenken, ich sehe das eher als Vorteil ! Ich habe bis jetzt erst 2 größere Projekte Onlien : www.nfkillers.net und www.lawofgame.de .
    Ich würde mich sehr über Ihr Interesse freuen.
    Ihr Jonathan Spreter
    [email protected]

    Ich bin angehender ACE für Adobe Indesign.
    Ich schule Sie und Ihre Mitarbeiter für dieses Programm, sowohl Grundlagen, als auch fortgeschrittenen Techniken.
    Nutzen Sie die Gelegenheit, den Umstieg oder Neueinstieg in dieses moderne Layout-Programm zu wagen!
    Und das begleitet von einem kostengünstigen Training.

  • Error when calling a javascript fonction from asp c# code

    Hi,
    I have an error when I excute my code below and I do not understand where it is coming from.
    page ASPX:
    <asp:Button ID="Bt_refresh" OnClick="Bt_refresh_Click" runat="server" Text="Resfresh" />
    page ASP:
    protected void Bt_refresh_Click(object sender, EventArgs e){            System.Web.UI.ScriptManager.RegisterStartupScript(this, this.GetType(), "Test", "<script type='text/javascript'>switchTo(event,'mapserv.xml');</script>", false);           }
    page JavaScript:
    function switchTo(event, dzi) {    console.log("Debut switchTo");    if (dzi) {        console.log(dzi);        viewer.openDzi(dzi);        console.log("open dzi");    } else {        viewer.close();        console.log("viewer closed");    }}
    and I get that error:
    Uncaught TypeError: Cannot read property 'openDzi' of nullLoad_image.js:14
    switchToLoad_image.js:14
    (anonymous function)
    However my link is working when I use this method in my ASPX page:
    <a href="#" onclick="switchTo(event,'map.xml');">map</a>

    Hi mi jo,
    ASP.NET forum is the right forum for your question, you can get more helpful ansers if you post a new thread there.
    Thanks for your understanding.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Can't add database to ASP Javascript page?

    If I make a page with document type of ASP javascript the option to add a db connection is grayed out even though the site, type and server onumbers have checks by them.  Do the same thing with doc type of ASP VB script and I can add db.  I don't believe I used to have this problem before.
    Any ideas on what I'm doing wrong would be appreciated. Thanks.

    Arrrgghhh!!!! But thank you for replying and letting me know.

  • Simple Examples of data connectivity and transfer of data from an .asp.vb to javascript in an .aspx file

    What forum might be useful in solving this issue:
    Simple Examples of data connectivity and transfer of data from an .asp.vb to javascript in an .aspx file

    They'll help you here in the Microsoft ASP.net forums.
    http://forums.asp.net/
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • ASP page stops loading after Javascript

    Hi all
    I have an ASP page that works fine on it's own. However, I
    have an include file that calls a .js The Javascript has a function
    that compares two field values and if both values match a specific
    string it pops up an alert to the user. The javascript works fine
    but the ASP page doesn't finish loading into the browser "Please
    wait while page loads....." error message. This also prevents any
    conditions from being applied to fields that have been created
    following the above two fields. Can't see any errors using DW 8.
    Any help or pointers to help much appreciated

    I have resolved this, thanks to anyone who spent time on
    this.

Maybe you are looking for

  • Table not showing up in browser in correct position

    I have a three cell table placed in the content area of a site. Usually the content starts an inch below a topic title and a set of icons. In this situation, the table with layout items is at least 2 inches below the topic title. I've tried adding va

  • DVD button loop point

    I know this question is on here alot and I've already read some different things. I have a project where the DVD menu has and intro and at about 16 secs. the buttons fade in. I have figured out how to make the button delay by setting the loop point.

  • Downloading patches via ftp

    Hi I found these instructions for downloading patches via ftp... http://docs.sun.com/app/docs/doc/817-3331/6miuccqni?a=view (Under section entitled "Example—Downloading and Applying a Signed Patch by Using ftp") I tried to follow these, but cannot se

  • Screen colored, then black, then won't start

    my iBook is a year old and it's been running sluggish lately...but today for no reason the screen when mutli-diaganol colors, then went black, then wouldn't shut off. pulled battery, turned back on after four tries to the same multi-diaganol colored

  • HT1560 Unable to restore Apple TV 2 (3rd)

    Hello I have an Apple TV 2 (3rd). It does not see or connect to any WIFI connections. The moment I put in a LAN cable I get a black screen and nothing hapens, no matter how long I wait. Restoring is not possible because it can't download the firmware