Content expiration from web page

Hi, all - Dreamweaver 8.0.2, Win XP, using asp, vbscript, and
SQL database (and utilizing WebAssist's Super Suite).
I'm going to be developing a "clients only" area with asp
pages connecting to a SQL database. As part of the project, I need
to develop an administration area where our technical writing staff
can add documents to the site (via an upload/web form) with a field
on the form that lets them enter the date they want the content to
expire. 'Expire' meaning the link to a particular file (this could
be old release notes, product bulletins, etc.).no longer show up on
the web page to the client once a given date is reached.
I'm only assuming that you would enter the expiration date in
a column in the database table and then run a query that compares
the column date to today's date and if the comparison yields some
value, then the link is either displayed or it's not. Would that be
fair logic?
I'm really not sure how to approach this - is this something
that can be written in asp code or would this be more of a server
function? If anyone has ever done this, I would be very grateful
for any suggestions or 'best methods' in which to achieve this.
Thank you.
John

On 18 Mar 2007 in macromedia.dreamweaver.appdev,
BurritoVictim wrote:
> I'm only assuming that you would enter the expiration
date in a
> column in the database table and then run a query that
compares the
> column date to today's date and if the comparison yields
some value,
> then the link is either displayed or it's not. Would
that be fair
> logic?
That would be fair logic.
> I'm really not sure how to approach this - is this
something that
> can be written in asp code or would this be more of a
server
> function ?
You'd write it in the SQL for the query:
SELECT field1, field2 FROM myTable WHERE expirationDate >
GETDATE()
The GETDATE() function assumes that you're using Microsoft
SQL Server;
you specified only "SQL", and that's the query language that
almost all
databases use.
Joe Makowiec
http://makowiec.net/
Email:
http://makowiec.net/email.php

Similar Messages

  • How do I save contents from web page to iWork

    This may be the wrong community so please let me know if it is? I want to save a document from a web page in Safari to iWork on iCloud.com. The document is of my son's USA hockey membership confirmation and I don't know how to save it to iWork or which application to save it to once I do? Numbers, Pages? Thank you in advance..

    I thought I was clear about what I'm trying to achieve... I want to view my document in either Pages or Numbers, because they are on both my Macs and iPhone/iPod touch's.
    Aug 25, 2012 2:57 PM (in response to Winston Churchill)   
    It's really just content on a web page but its information I need to have access to across all my devices from a MacBook Pro to iPhone and iPod touch. I want to be able to view it in the Pages iOS app and the OS X app.
    I just need to know the best way to save it, & in the fewest amount of clicks preferably.   

  • CS6: DistributedCOM Error id: 10016 when open pdf from web page in Win8.1

    For example here below I've got the issue: 
    http://modemwifi.it/wp-content/uploads/asus-dsl-n55u.pdf
    Adobe Acrobat X pro V 10.1.8:
    DistributedCOM Error id: 10016 when open pdf from web page.
    Nome registro: System
    Origine:       Microsoft-Windows-DistributedCOM
    Data:          04/11/2013 19:09:19
    ID evento:     10016
    Categoria attività:Nessuna
    Livello:       Errore
    Parole chiave: Classico
    Utente:        PC-PIERO\Piero
    Computer:      Pc-Piero
    Descrizione:
    Le impostazioni delle autorizzazioni impostazioni predefinite del computer non concedono l'autorizzazione di Attivazione in Locale per l'applicazione server COM con CLSID
    {B801CA65-A1FC-11D0-85AD-444553540000}
    e APPID
    {2EAF0840-690A-101B-9CA8-9240CE2738AE}
    all'utente Pc-Piero\SID Piero (S-1-5-21-3453328585-262132574-2759341577-1001) dall'indirizzo LocalHost (tramite LRPC) in esecuzione nel SID del contenitore di applicazioni Non disponibile (S-1-15-2-1430448594-2639229838-973813799-439329657-1197984847-4069167804-1277922394). Per modificare tale autorizzazione di sicurezza, è possibile utilizzare lo strumento amministrativo Servizi componenti.
    XML evento:
    < Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-DistributedCOM" Guid="{1B562E86-B7AA-4131-BADC-B6F3A001407E}" EventSourceName="DCOM" />
        <EventID Qualifiers="0">10016</EventID>
        <Version>0</Version>
        <Level>2</Level>
        <Task>0</Task>
        <Opcode>0</Opcode>
        <Keywords>0x8080000000000000</Keywords>
        <TimeCreated SystemTime="2013-11-04T18:09:19.468877700Z" />
        <EventRecordID>14806</EventRecordID>
        <Correlation />
        <Execution ProcessID="768" ThreadID="776" />
        <Channel>System</Channel>
        <Computer>Pc-Piero</Computer>
        <Security UserID="S-1-5-21-3453328585-262132574-2759341577-1001" />
      </System>
      <EventData>
        <Data Name="param1">impostazioni predefinite del computer</Data>
        <Data Name="param2">Locale</Data>
        <Data Name="param3">Attivazione</Data>
        <Data Name="param4">{B801CA65-A1FC-11D0-85AD-444553540000}</Data>
        <Data Name="param5">{2EAF0840-690A-101B-9CA8-9240CE2738AE}</Data>
        <Data Name="param6">Pc-Piero</Data>
        <Data Name="param7">Piero</Data>
        <Data Name="param8">S-1-5-21-3453328585-262132574-2759341577-1001</Data>
        <Data Name="param9">LocalHost (tramite LRPC)</Data>
        <Data Name="param10">Non disponibile</Data>
        <Data Name="param11">S-1-15-2-1430448594-2639229838-973813799-439329657-1197984847-4069167804-1 277922394</Data>
      </EventData>
    < /Event>
    How can I solve this problem?
    Thanks

    // I got this from an Action (I�m using Struts)
    java.sql.Blob file=(java.sql.Blob)request.getAttribute("PDFfile");
    String filename=(String)request.getAttribute("filename");
    try{
      int iLength = (int)(file.length());
      response.setHeader("Content-type", "application/pdf");   
      response.setHeader("Content-Disposition", "inline; filename=\""+filename+"\"");
      response.setHeader("Expires","0");
      response.setHeader("Cache-Control","must-revalidate, post-check=0, pre-check=0");
      response.setHeader("Pragma","public");
      response.setContentLength(iLength);
      ServletOutputStream os = response.getOutputStream();
      InputStream in = null;
      in = file.getBinaryStream();
      byte buff[] = new byte[1024];
      while (true) {
          int i = in.read(buff);
          if (i<0) break;      
          os.write(buff,0,i); 
      os.flush();
      os.close();
    } catch(Exception ex){
       out.println("Error while reading file : " + ex.getMessage());
    }and now it�s running !!! I�m not using response.setContentType(...) and I do this in response.setHeader("Content-type", "application/pdf"). And I use response.setHeader("Content-Disposition", "inline; filename=\""+filename+"\"") instead of response.setHeader("Content-Disposition", "attachment; filename=\""+filename+"\"");

  • How to display file contents on a web page

    On unix platform I have created a class that can read the contents of a file and display them to the standard output. But now i want to display these file contents on a web page through jsp. On JSP code I have imported this class and want to assign a record from a file and write it to the screen using html. I think the class needs to be modified in order to return the string record read from a file so that im able to access it from a jsp and assign it to a variable the I can display it on the screen. Can someone help me with these code?

    Actually, you mean Linksys.  BIG difference there.
    Linksys Business Series was accumulated into Cisco Small Business, since it was purpose built for small business, not residential/consumer grade.
    The new PVC2300 actually are Cisco branded on the case.
    The collateral you seek is protected by the business unit that supplies it, since it was placed on a portal that only Cisco registered partners can access.
    As I wrote, I already checked with the BU and they told me thats where it lives and not to hand it out.  I cannot override that. 
    I am not sure there are any secrets in there, but I dont make the rules, sorry.
    Do you want to be a Cisco Partner?   Sign up and gain access to everything you need to sell Cisco successfully to end customers?  If you tell me your geography (city/state/zip, I will have an ICAM call you and help recruit you.....
    Steve D
    Systems Engineer
    U.S. Partner Sales team
    RTP, N.C.

  • Create PDF from Web page using Acrobat X - Page Order

    I have a structured web site that is in fact Program Help The web pages are structured as follows:
    index.html - Main Topic Index page with links to all topic subject index pages
    topic/index.html - Topic Subject Index Page with links to all subject pages
    topic/subject.html - Subject page
    .....etc
    Using Acrobat 5 "Create PDF from Web Page" created a perfect logical PDF  page structure in the page order of of the web site. In Acrobat 5 page 1  was the Main Topic Index Page, page 2 was the 1st Topic Subject Index  Page, page 3 was the 1st Subject Page, then the 2nd subject of the 1st  Topic, etc. until the Topic Subjects were exhausted after which the 2nd  Topic Subject Index Page and so it went on. As a result the bookmark  structure was sensible. The page order was as follows:
    Main Topic Contents
    Topic 1 Contents
    Subject 1 of Topic 1
    Subject 2 of Topic 1
    Topic N Contents
    Subject 1 of Topic N
    Subject 2 of Topic N
    Acrobat X (just purchased) produces a differently structured PDF from the same HTML pages. The order is:
    Main Topic Contents
    Topic 1 Contents
    Topic 2 Contents
    Topic N Contents
    Main Topic Contents (a second time)
    Subject 1 of Topic 1
    Subject 2 of Topic 1
    Subject N of Topic 1
    Subject 1 of Topic 2
    Subject 2 of Topic 2
    Subject N of Topic N
    Question: Is there any way I can get back with Acrobat X the same page order I got with Acrobat 5?
    Any help appreciated. The website is www.caliach.com/caliach/vision/help/index.html
    Chris

    Acrobat is using the underlying mark up of the rendered HTML page.
    This may or may not provide an adequate input to Acrobat when it is noodling out how and what to tag.
    I suspect you may find that, to obtain an adequately tagged PDF, you may have to capture the web page content with the create bookmarks and create tags options off.
    Once you have the PDF make working copies.
    Try letting Acrobat tag this already created PDF to see what happens.
    You may have to manually tag the PDF.
    n.b., The default read order for western language can be altered by user selections in the accesibility setup or by selection in the PDF page(s) Page Properties.
    Be well...

  • I am no longer able to open or download most PDFs from web pages. I have the pop-up blocker turned off in Preferences.

    In recent months I have found that I am unable to download or open PDF documents from web pages. Download links either open a blank page in a new tab or do nothing. PDFs that I am unable to view in Firefox can be viewed and/or downloaded in Safari most of the time and Chrome all of the time so I assume the problem is not my computer or operating system. I recently turned off the pop-up blocker but that did not make a difference. The problem has worsened over the past couple months, it appears that more and more web sites are moving to a different protocol for viewing/downloading PDFs. It used to happen occasionally but now I find that I am unable to view a majority - about 75% - of PDFs. I am using Firefox v18 for Mac with Mac OS X 10.6.8.

    hello ahegarty, you could try using the [https://addons.mozilla.org/firefox/addon/pdfjs/ PDF Viewer] addon, for more details also see [[PDF files are blank and can't be downloaded on Mac]].

  • Error message says need Adobe reader 8 or 9 installed to open pdfs from web pages yet Reader 9alredy

    Error message says need Adobe reader 8 or 9 installed to open pdfs from web pages yet Reader 9 is alredy installed on computer. Is this a 64 bit ossue although I am sure I did not have this problem prior to a replacement hard drive being installed.

    What is your operating system, browser?
    What is the exact message you are getting?

  • Where are files downloaded to on the mac when creating a pdf from web pages?

    where on the mac HD are files downloaded to  when creating a pdf from web pages?
    Im creating web pages from the whole site so creating a large document, so wondered where these fiels are stored on the mac so I can delete when finished as dont want to clog up the hard drive.

    Look at the LiveCycle server products.

  • Automize Create a PDF From Web Page

    I am trying to create PDF's from a list of 100+ web pages / URLs.
    I would like to automize the process as to save me time.
    (I have been doing some research but I am a newbie when it comes to programing / scripting / coding)
    My questions are
    1) Is it possible to write a script to execute Acrobat's Create PDF from Web Page option in order to automize a long list of URLs?
    Something along the lines of .bat file (reading something like)
    acrobat.exe "http://www.google.com" "%CD%\GoogleTest.pfd"
    acrobat.exe "http://www.yahoo.com" "%CD%\YahooTest.pdf"
    2) If it is possible to script / automize Acrobat's Create PDF from Web Page can you lead me to the right direction as to what programs I need to write a script (if any) and any examples of how the script would be written would be extremely helpful
    Thank you for your time

    You can post your question in the forum for Acrobat Scripting or Acrobat SDK.

  • When I try to print from web page I get "printer not activated - error code 30", printer works on Internet Explorer

    When I try to print from web page I get a dialogue box "Printer not activated - error code 30" followed by a dialogue box "An unknown error occurred while printing". The printer works on websites when I use Internet Explorer. Also, if I copy the web page and paste it into a Word document, I can print a copy. This issue just started this week; I have not encountered this problem prior to this week. Please advise.

    What does that error message say?
    See this: http://kb.mozillazine.org/Problems_printing_web_pages

  • How to include non web pages to the "Create PDF from Web Page" feature?

    In Acrobat Pro (v. 10), when I use the "Create PDF from Web Page" feature, it works great for html pages, but it skips non-html links (doc, pdf, ppt, xls, etc). I need Acrobat Pro to convert those files and put them in the order as well. I don't see an option for this in settings. Is there ANY way I can do this? This is for an archiving purpose and I have 10,000 plus files to convert. Please help.

    This is a question i'm trying to answer too. My issue is that I have a PDF file which itself contains links to both DOC and PDF files. The end result is that I need one consolidated PDF containing all the linked files (in order).
    I can run the "create from web page" on this PDF file, and it'll download them, but not convert them. It just adds them as "jumbled" text to the end of the document. I need it to download, convert, and then append them.
    So, as isunshine3 asked above, any way to have Adobe convert the files that it finds linked when running the "create from web page"?
    THanks
    Matt

  • File, create PDF, from web page, entire site...questions

    I am new to adobe, is this the proper forum for Adobe Acrobat 9 Pro for macintosh?  I think yes...
    Created a PDF from:  File, create PDF, from web page, entire site.
    Is there a way to print this without the background color?  If you printed from a browser, you could choose not to print the back ground color.  I know exactly the color.
    Is there a way to make this PDF look like the web, with no page breakes?  I have tried various things, but the page breaks are always displayed.
    Is there a way to create bookmarks on somthing other than the title tag in the web site?  The title tag is an SEO 1 sentence summary of the page, which makes for very long book mark names.
    Thanks for your help.
    bob
    www.answerstat.net

    I don't use v9, but what I would do is click the FILE--PRINT option, print to PDF, and enter to print one page (default is first page)

  • "Create PDF from Web Page" Yields Authorization Failure

    Acrobat 9 Pro Extended running on Windows XP Service Pack 3:
    When using "Create PDF from Web Page," certain linked pages result in an "Authorization Failure" error message. Is there any way to instruct Acrobat to disregard pages that are not downloadable and continue creating the PDF?

    I am having the same issue AND none of my pages or files require a UserID or Password. My issue appears to be something with the domain because a and b work just fine and produce a PDF file while item c does not work and produces the error msg.
    http://www.dot.wi.gov/projects/neregion/151/index.htm works just fine and produces a PDF file.
    http://www.dot.state.wi.us/projects/neregion/151/index.htm works just fine and produces a PDF file.
    http://www.wisconsindot.gov/projects/neregion/151/index.htm produces an error msg. ‘Nothing done’.Error info. - Authorization Failure    http://www.wisconsindot.gov/projects/neregion/151/index.htm
    [email protected]

  • Create PDF From Web Page - Authenticated SharePoint Sites generate "Authorization Failure" error

    We have several authenticated sharepoint sites on our intranet, and we are trying to create a PDF of a site (x levels down) using the Acrobat create PDF from web page feature.  When you try to create a PDF from a non-sharepoint, authenticated website, a login prompt appears asking for login credentials.  However, when you try to use the same feature on an authenticated sharepoint site, you do not get prompted for credentials and instead get an Authorization Failure error.  the popup says "Error: Nothing Done".  We have successfully PDF'd anonymous sharepoint sites on the WWW.  Has anyone successfully PDF'd an authenticated SharePoint site? 
    Thanks in advance,
    -Richard.

    I am having the same issue AND none of my pages or files require a UserID or Password. My issue appears to be something with the domain because a and b work just fine and produce a PDF file while item c does not work and produces the error msg.
    http://www.dot.wi.gov/projects/neregion/151/index.htm works just fine and produces a PDF file.
    http://www.dot.state.wi.us/projects/neregion/151/index.htm works just fine and produces a PDF file.
    http://www.wisconsindot.gov/projects/neregion/151/index.htm produces an error msg. ‘Nothing done’.Error info. - Authorization Failure    http://www.wisconsindot.gov/projects/neregion/151/index.htm
    [email protected]

  • Create PDF from web page w/password

    Would like to created a PDF using the 'Create PDF from WEB Page' function. The initial page of the site requires a login which we have but we seem to be unable to use Acrobat to archive the site because it requires a login. Is there a way to login and create a pdf of the site?

    I tested this in Acrobat X and the exact same issue occurs
    http://www.quantumdynamix.net/clients/image-map-test/ImageMapTest-AcrobatX.pdf
    This has to be considered a legatimate bug, especially since IMAGE MAPS is listes as one of the supported HTML features via the help files

Maybe you are looking for

  • Video test failed in graphic card laptop g50-70

    when i run hardware scan in lenovo solution center, i got waring graphic card video test and got result  Result code: WVC003000-DK7X2I Video Card. so i want to know why test show warning in my graphic card

  • Read BDS documents in an ABAP report

    I have entered comments in BPS using standard functionnality. I would like to create an ABAP report to display content of my comments to avoid having to click on each icon. Do you know what are the function modules or abap report to call. Any piece o

  • In which field of cluster table payload is stored

    hi which field of the cluster tables (SXMSCLUP,SXMSCLUR) and master table(SXMSPMAST) contains the xml message(payload)? what are the classes used by SXMB_MONI to get the xml messsages?are these java classee?please let me know the classes. thanks&rega

  • Home Folder needs Repairing

    I cant log in as I get the following message "Your home folder, which is protected by FireVault, didn't open. It needs to be repaired. TO repair the folder and continue logging in, click OK to login" I clicked ok but no luck logging in

  • Alv add new row with counter

    Hello. I would like to add a new row to an ALV GRID CONTROL in which one of the fields is a counter. Which methods, codes have I to change/write? For example: ALV COUNTER FLIGHT DESTINATION 1     1234  CDG 2     3443  SVQ On adding a new row : COUNTE