DB Update on page load?

On my VBScript to SQL Server site, I need to write something
whereby when a
page loads, it UPDATEs a record on a table with a value. Is
there a way to
modify the DW8 Update behavior to do this? Help?

That's what you'll have to do - write the SQL by hand. All of
DW's Server
Behaviors assume you are updating from a form on the page.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Dooza" <[email protected]> wrote in message
news:fl2n3f$ocj$[email protected]..
> _adrian wrote:
>> On my VBScript to SQL Server site, I need to write
something whereby when
>> a page loads, it UPDATEs a record on a table with a
value. Is there a
>> way to modify the DW8 Update behavior to do this?
Help?
>
> I have done this before using a command, rather than a
built in update
> behaviour. As long as you know how to write the UPDATE
sql you should be
> fine.
>
> Steve

Similar Messages

  • Update on Page Load

    Is it possible to do an update to a recordset on Page Load
    instead of Form
    Submit? I'm using ASP (VBScript) and have applied the DW
    Update Record
    server behavior, but I want it to occurr on page load. Is
    this is possible,
    how would I make this work?
    Brandon
    ==================
    Presentations Direct -
    http://www.presentationsdirect.com
    > Binding Machines
    http://www.presentationsdirect.com/binding-machines/gbc-binding-machines.asp
    > Laminators
    http://www.presentationsdirect.com/laminators/gbc-laminators.asp
    > Paper Shredders
    http://www.presentationsdirect.com/paper-shredders/gbc-paper-shredders.asp
    ==================

    Can you remind me how the syntax would be for the onload
    script if I already
    have an onload attribute applied? Would I separate the onload
    events with a
    comma and not repeat "onload"?
    Brandon
    ==================
    Presentations Direct -
    http://www.presentationsdirect.com
    > Binding Machines
    http://www.presentationsdirect.com/binding-machines/gbc-binding-machines.asp
    > Laminators
    http://www.presentationsdirect.com/laminators/gbc-laminators.asp
    > Paper Shredders
    http://www.presentationsdirect.com/paper-shredders/gbc-paper-shredders.asp
    ==================
    "Paul Whitham AdobeCommunityExpert"
    <[email protected]> wrote in message
    news:[email protected]...
    > Brandon
    >
    > There are two ways to do this. If it does not depend on
    form values then
    > you can use the standard script and remove the IF
    statement that checks to
    > the form being set. You would also need to remove the
    redirection.
    >
    > The other way is to create all the form fields as
    hidden, and then attach
    > some javascript to the body tag like this
    >
    > onload=document.formname.submit();
    >
    > --
    > Paul Whitham
    > Certified Dreamweaver MX2004 Professional
    > Adobe Community Expert - Dreamweaver
    >
    > Valleybiz Internet Design
    > www.valleybiz.net
    >
    > "Brandon" <[email protected]>
    wrote in message
    > news:[email protected]...
    >> Is it possible to do an update to a recordset on
    Page Load instead of
    >> Form Submit? I'm using ASP (VBScript) and have
    applied the DW Update
    >> Record server behavior, but I want it to occurr on
    page load. Is this is
    >> possible, how would I make this work?
    >>
    >> --
    >> Brandon
    >>
    >> ==================
    >> Presentations Direct -
    http://www.presentationsdirect.com
    >> > Binding Machines
    >>
    >>
    http://www.presentationsdirect.com/binding-machines/gbc-binding-machines.asp
    >> > Laminators
    >>
    http://www.presentationsdirect.com/laminators/gbc-laminators.asp
    >> > Paper Shredders
    >>
    >>
    http://www.presentationsdirect.com/paper-shredders/gbc-paper-shredders.asp
    >> ==================
    >>
    >
    >

  • My Firefox is impossible to use. It is very very slow to change pages, load pages and so one.

    I already search and applied several suggestions found in Internet, but until now, no one solve the problem. Firefox is using much memory (600.000) and much CPU (100%) and work very slow to load new pages or update the pages loaded.
    I am using APP "Memory Fox" but is the same.

    hello VictorTrindade, please try to [[Reset Firefox – easily fix most problems|reset firefox]] and see if this can address the issue...
    please also make sure that firefox isn't blocked by your security software/firewall in any way.

  • I just updated my pages and now it won't load. This is on my iPad. The first version which has the latest version it can have 5.1 or something like that. I am trying to open a document and am worried that if I uninstall and reinstall I will lose all my do

    I just updated my pages and now it won't load. This is on my iPad. The first version which has the latest version it can have 5.1 or something like that. I am trying to open a document and am worried that if I uninstall and reinstall I will lose all my documents

    I just uninstalled it and am waiting for it to reinstall. I sincerely hope that I have not lost everything that I worked on so hard. Now that mobile me is gone, I have not been able to go between devices to transfer things. I was merely trying to take a document I had worked on and open it in pages, but it said my version was too old. When I updated, it wouldn't load. Now I cannot do anything. I hope that the reinstall fixes it without losing everything. Please advise!!! Yes, I am in panic mode.

  • After updating to the latest version of Firefox on my Mac there is no progress bar for the page load. I really miss this feature and can't seem to find a way to obtain it.

    The page load progress bar that was on the lower right of the window is no longer there. After updating to the latest version of Firefox on my Mac there is no progress bar for the page load. I really miss this feature and can't seem to find a way to obtain it. The tab has a circular progress wheel but this is useless for determining a stuck or slow loading page.
    PLEASE NOTE: I am typing this in from a Windows based work computer but am asking about my Apple MacBook Pro that i use at home.

    Firefox 4 saves the previous session automatically, so there is no longer need for the dialog asking if you want to save the current session.<br />
    You can use "Firefox > History > Restore Previous Session" to get the previous session at any time.<br />
    There is also a "Restore Previous Session" button on the default <b>about:home</b> Home page.<br />
    Another possibility is to use:
    * [http://kb.mozillazine.org/Menu_differences Firefox (Tools) > Options] > General > Startup: "When Firefox Starts": "Show my windows and tabs from last time"

  • 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.

  • Have been running version 4 for a week without problems. Today, downloaded MS live security update, and have had problems since. when I click on a favorite site, it takes 20 to 40 seconds before the page load's and the same if I click a link on the page.

    been running version 4 for a week without problems. Today, downloaded MS live security update, and have had problems since. when I click on a favorite site, it takes 20 to 40 seconds before the page load's.'''bold text'''

    http://portableapps.com/apps/internet/firefox_portable/localization#legacy36

  • Update record on page load

    I need to update a record on page load. Basically, I need to
    keep track of new content for users, so if they've viewed it, it
    changes the viewed column from 0 to 1. any suggestions?

    I guess there is no requirement for a stored procedure here,
    though, is
    there? You could just have code on the page that executes
    before the <html>
    tag to update that record, no?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Dooza" <[email protected]> wrote in message
    news:g0rgk3$nm5$[email protected]..
    > jsteinmann wrote:
    >> I need to update a record on page load. Basically, I
    need to keep track
    >> of new content for users, so if they've viewed it,
    it changes the viewed
    >> column from 0 to 1. any suggestions?
    >
    > Create a stored procedure, then call it using a
    Recordset, passing the
    > user id and content id.
    >
    > Steve

  • Okay so about four days ago my ipad says it has apps to update but whenever i go to the update apps page it will not load and i have tried rebooting signing out but nothing will work, any suggestions?

    Okay so about four days ago my ipad says it has apps to update but whenever i go to the update apps page it will not load and i have tried rebooting signing out but nothing will work, any suggestions?

    If you are getting the blank app update screen, many, many people are having this problem over the last couple of days. It is a problem that Apple must fix now.
    According to Fly150 in another discussion, this will work.
    If you want to update the Apps while waiting for Apple to fix Updates:
    1. Go to App Store
    2. Select Purchased
    3. Select All
    4. Scroll down to find the Apps showing update
    5. Select update on the Apps
    This should update the Apps and get rid of the update count in App Store. Apple needs to fix this. It is a workaround only until then.

  • WRT350n Firmware Update 1.03.7 - Web page load really slow after update

    Well I updated my WRT350N with the new firmware, but now web pages load very slowly, and streaming video is even slower. Before the update it was blazing fast. I run a mixed network of wireless N and G. Both Wireless N connections connect at 200 or higher Mbps now, which is a great improvement.
    Anybody got any ideas why web pages and steaming video run so slow now.
    Also downloading files never goes above 30 kb/sec now.
    I use comcast cable and downloads were so fast before.
    Thanks in advance.

    check the download speed and the streaming video when the computer is directly connected to the modem

  • Firefox crashes as soon as the page loads it is completely unusable

    i got a update prompt from firefox a few hours ago which i installed and now it wont work as soon as the page loads it crashes it wont even stay on long enough to figure out the problem i swear by firefox i have used its for years and never had any problems with it ever if i recall but lately it has been freezing and crashing often i feel like i am using internet explorer and thats bad but now i cant get it to work at all and am forced to downgrade to a lesser program WHAT IS GOING ON????? as for crash ids and troubleshooting info none of that even comes up

    Do a clean (re)install:
    * Download a fresh Firefox copy and save the file to the desktop.
    * http://www.mozilla.com/firefox/all.html
    * Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.
    * Don't remove personal data if you uninstall the current version.
    * It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    * It may not be necessary to create a new profile, so first try if it works with your current profile and if not then create a new profile.
    Your bookmarks and other profile data are stored elsewhere (not in the Firefox program folder) and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox.
    * http://kb.mozillazine.org/Profile_Manager
    * http://kb.mozillazine.org/Profile_backup
    * http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • Old JSP pages loading // how to get new ones?

    I am new to the forum and hope that experts can help. I am running a JSP application on an Apache/tomcat setup.
    I encounter the problem that although I update a webpage (say 'example.jsp') with a date of 12 Jan 2009, the server continues to use a version of the page from many days before.
    Miscellaneous point: these pages are being accessed by jsp:include and jsp:forward.
    It seems like there is a hidden cache somewhere that the server likes to use in place of my updated pages.
    I'd be pleased for any solutions!

    Thanks everyone for the very helpful replies.
    There were a total of 4 problem files.
    Here are the results based on the suggestions received:
    1. The suggestion of deletion of the .java and .class files (to be regenerated automatically from the .jsp files) fixed 3 of the problems: " Occasionally, we get one that just wont recompile and I have to delete it from the work directory. A JSP is turned into a .java file and then compiled in to a .class file in this directory. Deleting it will cause the file to recompile. [tomcat home]/work/catalina/localhost/[war directory name]/org/apache/[path to the file]." I was a bit wary to delete the entire directory, but I went for it, and everything (including the numerous subdirectories) was automatically regenerated.
    2. There was still 1 problem file. I think that this file was somehow in the RAM of tomcat because the suggestion to shut everything down and restart took care of this last file: "Along with webapps folder in tomcat, there is a work folder. Open work.catalina.localhost. In localhost, you will find your application. Delete it. Deleting it will not cause any problem. Now again restart tomcat. Now you should get the new pages loaded."
    3. The following suggestion seems to be a very good one for my application (i.e., low traffic on a specialized site) that could prevent similar problems in the future: "If this is for development only and you´re using Tomcat, consider to set <context reloadable="true">. This will check for changes in the webapps folder at certain intervals and automagically redeploy/reload the changes. Don´t use this setting in production, it´s fairly expensive to let it check the webapps everytime. For other appservers, consult the appserver specific documentation for similar settings."
    Coming to this community was a very good idea with lots of excellent suggestions that fixed my problem! I had been frustrated by this for some months now. Thanks everyone!

  • When I click on a bookmark in the listing, nothing happens. If I right click and click on "Open In New Tab" the page loads. I am using version 14.0.1

    Firefox just updated to version 14.0.1. When I clicked on one of my book,marks from the listing, nothing happened. The page did not load. If I right click on the bookmark and choose " Open in a New Tab", the page loads in a new tab. None of my bookmarks will work by simplying clicking on them from the listing.

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Using a4j to load a rich:dataTable after the page loads

    I have a rich:dataTable that calls a session bean which executes an SQL query to generate the data to be displayed in the table. Something simple like:
    <rich:dataTable rowClasses="evenRow,oddRow"
    rows="30"
    value="#{Bean.items}"
    var="items">
    where Bean.getItems() performs an SQL query and returns List<Item>.
    The problem is that the query takes a long time to execute (~45 seconds) and I'd like the page to initially load while the query is being executed, displaying a spinner while it loads. Once the query is done, I'd like to update the initially empty table using ajax.
    I set up a spinner using a4j:status and it works fine after the page initially loads (using a rich:datascroller).
    However, the page will not initially load until the query completes, which is a problem because the query is so slow. What happens is the user clicks on the "List Items" tab from my site's homepage, sits there on the same page for 45 seconds with absolutely no visual indication that anything is happening, and then finally is taken to the list of items page.
    What is needed to make the dataTable load via AJAX the first time, as well as all subsequent times?
    Thanks!
    Edited by: rcrowell on Sep 8, 2008 5:42 PM

    rcrowell wrote:
    The issue isn't the PK of the table; the query is joining across many tables and aggregating data from one table in particular with millions of rows. The table has paging, but again that won't help the timinig issues due to the aggregation that must be performed on a large table.
    Surely there must be a way to get the dataTable to always load its data via ajax, and not only after the first time.Well JSF does not have AJAX built-in, so why would there be? Perhaps one of the AJAX-based frameworks has this. I imagine it wouldn't be hard to do with the existing AJAX frameworks even without a built-in component specifically for it. Trigger an AJAX action on load which rerenders a panel which will only contain the dataTable upon the rerendering.
    >
    I think I could do it by adding a 'dataTableRendered' variable to the bean and using a jsFunction to set this variable to True when the page loads, but I'm looking for a better way. (I'm also not 100% sure this would do what I want.)

  • Slow web page loads on Mac, but not for PC

    I use a D-Link wireless router (DI-524) for my PowerBook G4 15" and my roommate's Dell PC. Very recently I seem to get very slow web page loads with some pages not even loading at all.
    Airport is consistently connected with no drops at all and when I'm downloading something it never gets interrupted the whole way through.
    My roommate's PC has no problem whatsoever and all of the web pages that he visits load instantly. It seems that my main problem is with web pages.
    I've tried doing a clean install on my Powerbook, I've tried resetting the router (I've tried upgrading the firmware but the router decided it didn't want to work with the new version). And surprisingly, I get the same slow speeds when I hook up my Powerbook to my router via ethernet cable. The only time my speeds are perfectly fine is when I hook up my Powerbook directly to the wall (I dorm in a university so we have a T3 line).
    Can someone please give me some advice on this very frustrating issue?

    In addition to Neds suggestions, empty the Safari cache (which should be empty after a clean install).
    Goto the Safari Get Info screen (in Finder or in Dock if you have Safari there), click the triangle on languages, and disable those you don't use.
    My Safari response time was significantly slowed after the 10.4.5 update, and using the combo updater took care of that. The 10.4.6 combo update is located here.

Maybe you are looking for

  • How do I stop auto sync then sync only one item

    I have 5 Macs. They are all set to sync using dot mac. I hadn't used 2 of them lately, the others were being synced. I noticed that mail had 2 of the exact smart folders (with several folders within them). And all of the criteria disappeared from the

  • Readonly Access to AR and AP Modules

    Hi, I need to give readonly access for AR and AP modules for a database user (TEST) and I need to give readonly access for the above modules for Application User (TEST) How can I give readonly access

  • How to map qualifiers?

    Hello, I am new in MDM and have (hopefully) a basic question: I have issues in the import manager. My target table is the table “Products” (source is an Excel file). I am facing issues to import the price data. The sub table price is a qualified look

  • Apache and ssl

    Hi gurus, I know this is not the rite place to post this issue.But i gues someone has faced this problem. I want to configure ssl on Apache if there are any good documents or steps please let me know.. I already have a certificate,genetrated by CA So

  • Hdmi monitor to displayport on computer

    Is it possible to use the hdmi connector on a w2207h to a displayport on a cpu[via hdmi-displayport adapter] instead of using the VGA port on the cpu as a computer display connection? This question was solved. View Solution.