Client side news page

Hi.
I am creating a basic HTML website but my client has
requested that it includes a 'News' page that shows a list of
recent news items with links to view the full article. My client
wants to be able to update these news articles manually himself and
for the main 'News' page to show any recent additions (in date
order) automatically.
Does anyone know if there is any script that can be used or
will he have to buy some kind of software package to be able to do
this?
I'm a bit of a newbie at this so any help would be gratefully
received!!
Thanks in advance.

In html i don't know a way. But using a database in any
flavor
(php,asp,asp.net) it is pretty easy. IMHO you First need to
find out
what flavor the host is supporting. Second, bone up on
dynamic pages
using databases.
One of my clients has an easy news page that shows the most
recent news
items at the top of the page and the oldest at the bottom.
The user
can put in an expire date and a field I call topper (topper
items are
always at the top of the list). The query that populates the
pages
looks like this
select added_dt, Headline, news, Topper
from news
WHERE Focus = 'General' and ((expires > getdate()) or
(expires is
null))
order BY topper desc, added_dt desc
You can query addtional fields like 'url link', 'added by',
'area of
interest' (or focus as I call it), etc.

Similar Messages

  • Printing web page at client side

    i want to print web page at client side . Page & printer settings are through coding. i tried using
    DocFlavor myFormat = new DocFlavor("text/plain; charset=utf-16be","java.net.URL");
    i found exception invalid flavor

    If you are trying to print a web page on the client side, you have to use the browser's print function which can be invoked through JavaScript. What you are trying to do can't possibly work. Even if you weren't getting an exception, it wouldn't work. Any Java code in the JSP will have no effect on what happens on the client's machine.

  • How to copy a page( webpart page) with its content using client side.

    How to copy a page(in my case  webpart page) with its content(it may contain webparts) using client code (i mean using SPservices or ECMA script).
    What i am planning is ,to give end user a page where it will contain text box to specify  name of page and a button with the help of  content editor webpart.
    where on click of button we need to write client side code such that it should create a new page from a existing page in a library with given name by user.
    Any suggestion would be helpful. For your information we can do it through UI with the help Site Actions / Manage Content and Structure.But i want to automate it using client side code.Server side code is restricted.
    or can we create a template of an existing page with content without the help of sharepoint designer.
    Thanks in advance
    with regards Ravichandra

    This is good example
    http://balajiindia.wordpress.com/2011/05/27/using-jquery-with-custom-web-services-in-sharepoint/
    Create web service
    http://balajiindia.wordpress.com/2011/05/27/using-jquery-with-custom-web-services-in-sharepoint/. Create method "Create Page" http://www.learningsharepoint.com/2010/09/17/create-publishing-pages-sharepoint-2010-programmatically/
    Build your Java Script. You can use Content Editor Web Part if you want to avoid custom web part development http://www.codeproject.com/Articles/544538/JQuery-with-SharePoint
    Oleg

  • Opening a Java Window from a jsp page on the client side

    Hi all,
    Thanks in advance to all who could help me for this problem.
    I've written some jsp pages. In one of them, I open a new Java Window,
    which is a simple Java Frame. If I test this directly on the Tomcat
    server, everything works well.
    But when I call the jsp page through a web browser of a distant client
    (normal use), and when I want to see the java window, no window pops
    up. It appears that the Java Window pops up on the server, and not on
    the client side, which is what I wanted.
    Could someone tell me how to make the Java frames appear on the client
    side ? (Is it linked to the code or to the configuration of Tomcat ?)
    Thanks in advance,
    Alexis.

    JSP always run on the server. On the client you only see the results.
    But you can use applets on the client side: http://java.sun.com/docs/books/tutorial/uiswing/components/applet.html

  • How to 'client-side include for secondary menu on page'

    Hi there.
    The following page refers:
    test page for early
    draft
    The linked page is in fact a DW CS3 tmp preview file, for
    that reason the CSS has been pulled into the html file by DW, it
    won't look that way in the eventual page file.
    After lengthy battles with the Spry Horizontal menu, I
    eventually resorted to Pop Menu Magic 2 (PPM2) to generate menus.
    I'm very happy with the product (I'm not looking for PPM2 support,
    but rather support pertaining to CSS-driven menu's in general
    relating to caching). I started out with a single main navigation
    menu, which was very comprehensive - but also very big (ito file
    size). I was hoping to cache a part of the menu on the client-side
    to reduce download times once the site visitor has downloaded the
    first page in the site (where he enters the site is not
    applicable). But that proved impossible (I think...).
    I then followed some advice to break up my main navigation
    menu, keep only the more important stuff in there and rather
    distribute the lower levels of the main menu into their own
    dedicated menus. From there the page linked above.
    The main menu at the top is fine, no problem there. On the
    left below the masthead I've created two menus, one above the other
    (it displays as a single menu but the first menu ends above the
    "Other tour lists" item). The first of these two menus contains the
    bulk of the heavy navigation elements (±160kb of the total
    page file size of 220kb). The div info that applies to this menu =
    <div id="p7PMM_2" class="p7PMMv06">. I'd love to cache this
    menu, either in full or the bulk thereof, on the client-side. That
    is implement a client-side include. When a visitor first enters our
    site the include file with the 160kb (secondary) menu gets
    downloaded together with CSS stylesheets, etc. When the visitor
    links through to a following page in our site, his machine
    (client-side) dishes up the menu to that next page without having
    to download it from our hosting server a second time.
    Is this possible and how? Any and all suggestions will be
    appreciated!
    Our clients are mostly wealthy and thus probably (virtually)
    all have high-speed broadband connections. I seriously doubt that
    any of them are running dial-up connections. Thus this issue is not
    going to sink our site. But I'd love to cut page file size if
    possible.
    Furthermore, I'm not too worried about the small portion of
    visitors that may have their javascript disabled in their browsers.
    The main navigation menu at the top of the page will still allow
    them to navigate the site. Much the same goes for SEO.
    I've tried one or two CSI javascripts and succeeded in
    actually getting the relevant tags and contents inserted in the
    html document, but the javascript would then 'break'. That is all
    the coding and menu contents would be there, but the javascript
    won't function (menu's won't pop / fly-out). I'm a little clueless
    when it comes to Javascript, and many other things :-), but I
    suspect that the Javascript in the include file does not get
    called. If the Javascript is kept in the html file, the menu
    content (elements) in the include file arrives in the html file
    after the relevant script has been called and doesn't get
    rendered??
    Once again any help / suggestions will be appreciated!

    > But that proved impossible (I
    > think...).
    Even without doing anything on your part, the images, the
    CSS, and the
    javascript is already cached client-side. You cannot cache
    any of the
    structural code client-side.
    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
    ==================
    "afrilux" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hi there.
    >
    > The following page refers:
    http://www.afrilux.co.za/test/1/dev2.htm
    >
    > The linked page is in fact a DW CS3 tmp preview file,
    for that reason the
    > CSS
    > has been pulled into the html file by DW, it won't look
    that way in the
    > eventual page file.
    >
    > After lengthy battles with the Spry Horizontal menu, I
    eventually resorted
    > to
    > Pop Menu Magic 2 (PPM2) to generate menus. I'm very
    happy with the product
    > (I'm
    > not looking for PPM2 support, but rather support
    pertaining to CSS-driven
    > menu's in general relating to caching). I started out
    with a single main
    > navigation menu, which was very comprehensive - but also
    very big (ito
    > file
    > size). I was hoping to cache a part of the menu on the
    client-side to
    > reduce
    > download times once the site visitor has downloaded the
    first page in the
    > site
    > (where he enters the site is not applicable). But that
    proved impossible
    > (I
    > think...).
    >
    > I then followed some advice to break up my main
    navigation menu, keep only
    > the
    > more important stuff in there and rather distribute the
    lower levels of
    > the
    > main menu into their own dedicated menus. From there the
    page linked
    > above.
    >
    > The main menu at the top is fine, no problem there. On
    the left below the
    > masthead I've created two menus, one above the other (it
    displays as a
    > single
    > menu but the first menu ends above the "Other tour
    lists" item). The first
    > of
    > these two menus contains the bulk of the heavy
    navigation elements (?160kb
    > of
    > the total page file size of 220kb). The div info that
    applies to this menu
    > =
    > <div id="p7PMM_2" class="p7PMMv06">. I'd love to
    cache this menu, either
    > in
    > full or the bulk thereof, on the client-side. That is
    implement a
    > client-side
    > include. When a visitor first enters our site the
    include file with the
    > 160kb
    > (secondary) menu gets downloaded together with CSS
    stylesheets, etc. When
    > the
    > visitor links through to a following page in our site,
    his machine
    > (client-side) dishes up the menu to that next page
    without having to
    > download
    > it from our hosting server a second time.
    >
    > Is this possible and how? Any and all suggestions will
    be appreciated!
    >
    > Our clients are mostly wealthy and thus probably
    (virtually) all have
    > high-speed broadband connections. I seriously doubt that
    any of them are
    > running dial-up connections. Thus this issue is not
    going to sink our
    > site. But
    > I'd love to cut page file size if possible.
    >
    > Furthermore, I'm not too worried about the small portion
    of visitors that
    > may
    > have their javascript disabled in their browsers. The
    main navigation menu
    > at
    > the top of the page will still allow them to navigate
    the site. Much the
    > same
    > goes for SEO.
    >
    > I've tried one or two CSI javascripts and succeeded in
    actually getting
    > the
    > relevant tags and contents inserted in the html
    document, but the
    > javascript
    > would then 'break'. That is all the coding and menu
    contents would be
    > there,
    > but the javascript won't function (menu's won't pop /
    fly-out). I'm a
    > little
    > clueless when it comes to Javascript, and many other
    things :-), but I
    > suspect
    > that the Javascript in the include file does not get
    called. If the
    > Javascript
    > is kept in the html file, the menu content (elements) in
    the include file
    > arrives in the html file after the relevant script has
    been called and
    > doesn't
    > get rendered??
    >
    > Once again any help / suggestions will be appreciated!
    >
    >

  • Hi am new and need help on client side java.

    Hi I am a .net developer. Dont boo lol. I am trying to find the latest on Java. I build web apps and would like to use java on the client side.
    Is there a new form of java for client side code.
    What do I need to install?
    Where are some good sites that provide tutorials for Java newbies wishing to develop web client scripts etc.
    Thanks

    Hi I am a .net developer. Dont boo lol. I am trying
    to find the latest on Java. I build web apps and
    would like to use java on the client side.
    Is there a new form of java for client side code. Web apps usually use Java Server Pages, or JSPs, on the client side.
    What do I need to install? Tomcat is a free servlet/JSP engine:
    http://jakarta.apache.org/tomcat
    Where are some good sites that provide tutorials for
    Java newbies wishing to develop web client scripts
    etc.
    ThanksBetter buy a book. I highly recommend Hans Bergsten's JSP book for O'Reilly.
    %

  • How do I make it so my client can edit Links in business catalyst when they create new pages?

    Okay so essentially I have built a site in Muse uploaded to business catalyst and I've setup a site template so that the client can create new pages as each new course arrives, but how do I get the link from the homepage to link to the new page? basically I need the link to be editable.
    What would be ideal is a kind of portfolio layout where there is a thumbnail and a new page but for my client to be able to add a new project adn it would create a thumbnail on the homepage and a new page that he can edit. Does anyone know of something like that possible in Business catalyst?

    Hi
    Editing with Business Catalyst only works with image or text editing , we cannot add new page or page items using in browser editing.
    However, you can manage the site from BC end when your client and login to admin and add pages, modify etc, but if you re-publish the site from Muse then then changes will be overwritten.
    Thanks,
    Sanjit

  • How can I view two pages side by side in the new Pages?

    I can not find the feature to allow me to do this (which was available in the old version). This is really causing problems with some of my documents that have been created to be viewed this way. Any help would be great!

    I am a loyal Apple user because Apple form always follows function.  Deleting this feature from Pages was a stupid decision.  Amateurish, really.  Makes me question the new design team's competence.
    One of the key principals in good user experience design is providing value - simple, clean functionality that users find useful.  Side-by-side edititng is a great example.  Yes, the document is stored internally as a linear stream, but from the user's point of view the presentation should be as a reader sees it.   I don't know why it was removed, but I suspect it was either to conform with the internal form of the data, or to the least-common-denominator presentation device, or both.  
    I bought a Thunderbolt display so that I could edit documents 2 pages at a time.  My intended audience sees the document this way, and so I would like to write it this way.  But I can't with the new Pages. 
    Apple, please restore the side-by-side view in Pages.  I have work to do.  (And while you are at it, fix the EndNote plug-in.)

  • Copy one list items new list using client side object model

    Hi,
    I have a requirement like i need to copy one list information to new list with createdby and modified by fields.I need to use client side object model code.Can u please send me the code sample.
    Regards,
    Praveen

    Hi,
    According to your post, my understanding is that you want to copy one list items new list using client side object model.
    You can use console application.
    Here is a similar thread for your reference:
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/28a43891-7505-4d34-b513-fdd66773c2a3/copy-list-item-to-another-list-using-client-object-model-in-console-application?forum=sharepointdevelopmentprevious
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Why can't I upload my new pages, changes in nav & side bars

    The problem that I'm having with my site www.KosherWoman.com is I make a change to my template in DW CS5  & the changes do appear on the side bars & on the navigation on  all the pages when I tested them via F 12, etc. with Firefox & IE.  However, when I  upload it to my server, the changes don't appear on the pages or the navigation.  I've tried the put method locally & then I tried it on the remote view  Still no change. I then copied the entire site on my flast drive & had a friend load the site & try it on his computer in his office.   He encountered the exact same problems I did.  I've been adding new pages, adding to the navigation, changing the side bar ads & promos since this website went on line 8 months ago.  These problems just started a couple of weeks ago.  Thanks for any help you can provide.

    I took your advice & called Earthlink, our web host.   They wanted to check my FTP settings but just like when they changed their system a month ago,  I could access the 'home page' for changing the FTP settings but I couldn't click on anything.  When this happened a month ago, the web host rep
    'took over' my computer & changed the FTP settings but after about 10 tries the web host rep I was speaking to this time failed to make the necessary connection so he could make the changes by taking over my computer.  Then yelled at me saying I shouldn't rely on them, I should figure it out myself. When I asked to speak to a supervisor, he hung up on me.  So I don't think I'll get anywhere by contacting them again.

  • How do I set up side by side pages--like a book--in new Pages?

    How do I set up side by side print view in new Pages? I need to see how it will look in book format.

    You can't. Apple has removed Facing Pages along with almost 100 other features.
    Pages '09 should still be in your Applications/iWork folder.
    Peter

  • How do I create a newsletter with facing pages that have the margins adjusted for stapling the pages on the left side? ...Like a book.I hate the new pages.

    Can anyone recommend a program for newsletters that makes sense.  I used AppleWorks and the old page without any problem. Facing pages, two columns, text boxes, photos, mastheads.   The new pages *****! I can't adjust spacing between lines as needed, I can't adjust the margins for facing pages. Inspector is not what it used to be.  If I use Pages '09 v. 4.3 (1048), I am not allowed to make corrections. My choice is cancel, update, or correct a copy which is no longer '09.
    iMac OS X Yosemite 10.10.1
    Pages 5.5.1 (2111)

    How are you "not allowed to make corrections"?
    Peter

  • Why does IE8 running on XP and Win7 Virtual Machine deletes the history while I'm still browsing the same site with client-side hashbang routing?

    Hello, 
    I have a asp.net mvc 5 web application running on .net 4.5 hosted on my local windows 8 machine on macbook pro using parallels. I'm running Internet Explorer 8 Version: 8.0.6001.18702 running on XP and Version: 8.0.7601.17514 running on Windows 7 Enterprise.
     I've got both of the virtual machine source from www.modern.ie 
    My web application is attempting to provide single page user experience by having some client-side routing by using '#!/xxx' hashbangs in the url so that I can get and post via ajax and change the hash in  the url without causing the page to reload. My
    code works fine in IE9+ and other modern browsers.
    However, I'm facing this strange issue in both of the IE8 versions. When running my demo app in IE8, I can login, view home page and can navigate from this home page to many details page. From the very first login page, all the pages are the result
    of form's post action via ajax which then expects html from server and loads in the DOM. The page structure of my app is like summary form => Details page (can also contain summary forms) => Details...so on.
    The above process works fine for few of the navigation steps. If I keep navigating from one page to another & go back, I have observed that the browser back button is removing the history items slowly. And a time comes when it totally forgets about
    all the history pages that I visited to reach this current page I'm viewing!! It treats like I have just started my browsing session and this current page is the first page I've landed on with no back option. Now if I again try to navigate, I have encountered
    problems like both the back and forward buttons gets disabled.
    Hope, my words above is clear enough to explain this problem. The same application works fine in IE9+ and other browsers. 
    Till now, I have tried following steps on both VMs: 
    Resetting IE8.
    Increasing disk space to 1024mb for temporary internet files storage.
    Setting 'Never' for Check for newer versions of stored pages.
    Disabling the automatic crash recovery feature didn't helped in this case. Found this on support website.
    Deleted temporary files, history, cache, etc many a times.
    Search many forums, posted question on StackOverflow, ASP.NET
    Forums - but didn't helped.
    Tried 'beforeunload' event of browser to see if any of the page is reloading because of submit or any other reason. But the page doesn't reload at all.
    The issue is browser forgets about the browsing history while I'm still browsing the same site. 
    Is there any possible fix for the issue above? Does IE8 have any issues as many ajax form post is happening on every page? 

    I have really tried many things to identify any possible reason of the issue above. Even rewrote all my javascript navigation code and checked server-side code.
    But the only place where I got the solution is at site: http://www.enhanceie.com/ie/bugs.asp which states that there is a bug in IE8 which reads like:
     IE0012: IE Travellog broken when navigating back/away from a page with
     a large POST form If there is a form input field with a value longer
     than 523,659 characters, when you navigate away from the page, IE may
     clear the current session's travellog (similar to history), disabling
     the back and forward buttons. Repros in IE6 & IE7.
    There are following solutions that you can go for:
    - Check for the input field that has lots of characters as mentioned above and solve your problem.
    - If you have control over the system where IE8 will be used, you can add the following registry key on that machine. There is no existing key, so, you need to add a new one:
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\TravelLog] "MaxSize"=dword:ffffffff
    I am really relaxed to find this information as I spent really long time to solve this issue. Hope this will help someone.

  • Open Oracle Form in client side from BPEL Process

    Hello,
    I'm new in BPEL and I'm trying to do a Process who open a Form before it finish. I do that with a Java embedding with the next code:
    try {                     
    Runtime.getRuntime().exec("rundll32.exe url.dll,FileProtocolHandler http://dl380:8890/forms/frmservlet?config=atender&otherparams=CLIENTE="+variable );
    } catch (Exception e) {                                                
    e.printStackTrace();
    But this code open a form in the server side and I need that it be open in the client side. Someone know what's can I do?
    I hope you help me in this!
    Thanks in advance!
    Alejandra

    Hi Sreedhar,
    Probably there are simpler options, but one thing you can do is to create a new function in Oracle to access the same form (Service Contracts Authoring), and include this in the Form Parameters:
    QUERY_ONLY="YES"
    That will make the function read only (in theory). Now you can call that function from the OAF Page instead of OKS_OKSAUDET.
    Hope it helps.

  • Tabular form - Client side Clone Row on apex 4.1 not work

    Hi all,
    j have a tabular form page where i have implemented Vika's clone row solution.
    (See http://htmldb.oracle.com/pls/otn/f?p=24317:49)
    Now, after migrating my application from Apex 3.2 to Apex 4.1 this feature not work.
    Clicking the Copy icon copies the row and puts it right below.
    Now, if I change some values in the new row and click Save, the MRU process updates does not insert the row in the database
    Apex 4.1
    rdbms 11.2.0.4
    win xp
    chrome browser
    Any help?
    Thanks in advance.
    lukx
    The "clone row" function is
    </script>
         <style type="text/css">
         img.clone {
         cursor:pointer;
         </style>
         <script type="text/javascript">
         var g_this;
         function fn_delete(pThis)
         var l_tr=$x_UpTill(pThis,'TR');
         l_tr.parentNode.removeChild(l_tr);
         function fn_CloneRow(pThis){
              g_this=pThis;
              l_tr=$x_UpTill(pThis,'TR');
              l_table=$x_UpTill(l_tr,'TABLE');
              l_tbody=$x_UpTill(l_tr,'TBODY');
              l_clone=l_tr.cloneNode(true);
              html_RowHighlight(l_clone,"pink");
              l_inputs=l_clone.getElementsByTagName('input');
              for (var j=0;j<l_inputs.length;j++) {
              l_this=l_inputs[j];
              if (l_this.type=="hidden") l_this.value="";
              if (l_this.name=="fcs") l_this.value="zzzz";
              if (l_this.type=="checkbox") l_this.parentNode.removeChild(l_this);
              // Change Clone functionality to Delete
              var l_img=l_clone.getElementsByTagName('img')[0];
              l_img.src="/i/delete.gif";
              if (document.all) l_img.onclick=function(){fn_delete(this)};
              else l_img.setAttribute("onclick","fn_delete(this)");
              l_tbody.insertBefore(l_clone,l_tr.nextSibling?l_tr.nextSibling:l_tr);
         </script>

    I have't looked at the specific clone-row sample code you mentioned in your post, but just wanted to point out that we've introduced client-side add-row functionality in APEX 4.0, so if you're using this code to add new rows on the client-side, then using the built-in functionality might be easier. Of course if you actually want to get a copy of an existing row, that might not be sufficient. As for the MRU process, the way APEX identifies new rows is by looking at the primary key or ROWID column value, which needs to be NULL. APEX also looks at the apex_application.g_fcud array, which holds information for each row on whether to do an create, update or delete. This array was introduced in APEX 4.0, and that's what could potentially be causing your example to fail after the upgrade.
    Regards,
    Marc

Maybe you are looking for