How to load content in div without re-loading page

Im looking for a way to keep all my static content loaded but
only load new content in my center div when a user clicks on a
link. Is there a way to do this that is friendly on all browsers?
Please help I value any help!!

I would suggest that you remove the mp3s from playing but if
you must have
it....
...I've written some script in Flash that uses sharedObjects
(kind of like
cookies) to read and see if the object exists. If it does, it
goes to a
different frame. If not, then it goes to another.
The script(actionscript 2) is as follows. Put it on frame 1
of your
timeline:
stop();
var my_so:SharedObject = SharedObject.getLocal("seenThis");
if (my_so.data.name == "seen it") {
//been here before.
//here is where you go if you have already seen it,
//make sure there is no music playing on frame 25
gotoAndStop(25); } else {
//first visit
gotoAndPlay(26);
my_so.data.name = "seen it";
my_so.flush(1000);
Now, there are some considerations in using shared objects
...Sometimes your
SWF files may not be allowed to write local shared objects,
and sometimes
the data stored in local shared objects can be deleted
without your
knowledge. Flash Player users can manage the disk space that
is available to
individual domains or to all domains. When users lower the
amount of disk
space available, some local shared objects may be deleted.
Flash Player
users also have privacy controls that can prevent third-party
domains
(domains other than the domain in the current browser address
bar) from
reading or writing local shared objects. But, in something
like this seen it
example.no real harm if the object gets deleted.
Dan Smith > adobe community expert
Flash Helps >
http://www.smithmediafusion.com/blog/?cat=11
http://www.dsmith.tv

Similar Messages

  • How to make contents of DIV on page I'm leaving fade out?

    I am trying to figure out how to make the contents of a DIV on the page I'm clicking away from fade out. I know how to make the next page load with a fade in. So I'm half way there (I guess).  Wix has a lot of designs that use this effect. Here's a link to an example:
    http://www.wix.com/website-template/view/html/633?originUrl=http%3A%2F%2Fwww.wix.com&numbe r-of-page=1&position-in-page=1
    This is the code that I use to make a DIV load with a fade in:
    I add this CSS code under the DIV that I want to apply the fade in effect to:
         animation: fadein 2s;
        -moz-animation: fadein 2s; /* Firefox */
        -webkit-animation: fadein 2s; /* Safari and Chrome */
        -o-animation: fadein 2s; /* Opera */
    And I add this extra code to the CSS styles sheet:
    @keyframes fadein {
        from {
            opacity:0;
        to {
            opacity:1;
    @-moz-keyframes fadein { /* Firefox */
        from {
            opacity:0;
        to {
            opacity:1;
    @-webkit-keyframes fadein { /* Safari and Chrome */
        from {
            opacity:0;
        to {
            opacity:1;
    @-o-keyframes fadein { /* Opera */
        from {
            opacity:0;
        to {
            opacity: 1;

    Success!!! Thank you! Although I did have to change one more thing. See bold text below.
    One more question. What if I wanted to apply this effect to two ID's instead of one? Would it be as simple as adding a comma and then the ID in quotes like this?.... $(#container", "#footer")
    $(document).ready(function() {
        $("#container").css("display", "none");
        $("#container").fadeIn(2000);
        $("a.transition").click(function(event){
            event.preventDefault();
            linkLocation = this.href;
            $("#container").fadeOut(1000, redirectPage);       
        function redirectPage() {
            window.location = linkLocation;

  • How to view contents of file without opening the file?

    Does anyone know of a utility that will allow you to quickly view the contents - or a part thereof - of a file (particularly Word files) without having to open the file? I have thousands of files restored after a disk failure, but their filenames have been lost and replaced with sequential numbers. The only way of knowing the contents is to open the file, a tedious process for so many. I seem to recall seeing a shareware app that allowed this. Thanks for any help.
    MacBook Pro 17   Mac OS X (10.4.8)  

    Open the Script Editor in the /Applications/AppleScript/ folder and paste in the following:
    tell application "Finder"
    repeat with this_num from 1 to 5
    set the_item to item this_num of window 1
    set the_name to name of the_item
    set the_text to (read (the_item as alias) from 1 to 15)
    tell application "TextEdit"
    set text of document 1 to (text of document 1) & the_name & return & the_text & return & return
    end tell
    end repeat
    end tell
    Before running the script, place the folder containing the files in the frontmost Finder window; you may want to split the files between several different folders and process each folder before heading on to the next one. The numbers in blue can be customized as needed; the first one controls how many files the script will search on each run, and the other two define what part of the file will be searched. The output from a file which is in a format other than plain text may contain document formatting and other content which will look like random characters.
    (19999)

  • How to pull content from div on one page to div on another page

    Hi all,
    I would like to pull content from the divs on page to divs on another page (so that I only have to update information on one page).
    Could anybody give me a tip on where to read about this/how to do this? I am not expecting the final answer, just a clue on where to start looking for how to get startet.
    Thanks in advance for any answers.
    Best regards,
    Ivan
    www.colombiareiser.no

    Try reading on DW Spry html data sets. The Spry HTML data set allows users to use standard HTML tables and other structured markup as a data source.
    http://labs.adobe.com/technologies/spry/articles/html_dataset/index.html
    http://labs.adobe.com/technologies/spry/docs.html
    Regards,
    Vinay

  • Iphone display shattered. How to access content in iTunes without 4-digit passcode?

    A pickpocket took my iPhone when I tried to photograph him, and slammed it in the asphalt The screen and display is broken and the touch-function won't work. But someone is still in there! However, when I plug the phone to my computer(not a Mac) iTunes recognizes there is a unit there, but says I need to type in the 4-digit passcode on the iPhone to get access to it in iTunes. But the touch-screen is still broken, so I can't type in anything. Any solution? Can I type in the code or apple-password somewhere else? Hope somebody can help me! I really want my contacts and pictures :S

    If this is the computer the device normally syncs with, no passcode is needed.
    If the device has been used as designed, contacts would be synced with a supported application on the computer or a cloud service and would not be lost simply by the device being lost/stolen, a hardware failure, or damage.
    If the device had been used as designed, it would not be primary storage for pictures taken with the device, they would have been copied off regularly by the user to a computer.  You might still be able to copy the pictures off as this does not require syncing or iTunes in any way. 
    Importing pictures from iOS device to computer
    Have you failed to use the device as designed?
    Sorry, but if you have failed to use the device as designed, the touch screen is damaged to the point of not being usable, your contacts and most, if not all of your data is gone.

  • How to update content types enheriting from the System Page Content type

    After importing a design package I found out that my content types was missing some columns. I could add the missing columns to my "page" and "Article Page" site content type. When adding the exisiting columns I could choose to update
    everything that inherits from this type:
    This is working. However I still miss 2 columns in the "Page" Content type:
    1. Rollup Image
    2. Hide physical URLs from search
    If I roll back my dev environment I can see that these are inherited from the "System Page" content type which is not editable. The columns are in the "System Page" content type but They are gone in "Page" content type that
    should inherit the columns.
    So how do I update these?
    Thanks

    Hi Alex,
    Thank you for replying. I totally agree with you regarding not to modify the OOB content types. The content types I have created/modified is also my own "new" content types.
    However the designpackage import messed up the OOB content types somehow so I'm only trying to get back to the state before the import. The only thing I see is still missing is the two previously mentioned columns in the "page" content type.
    Do you have any other suggestions in how to get back to the "OOB State"?
    Thank you
    Update: this is my page content type. It's not set to read only so it should update the last two missing columns from its parent (system page content type) right?

  • Getting started with Ajax - how do I query the db without 'submitting' the page?

    Hi guys,
    I'm building a simple 'power point presentation' - basically a cf page which will display a large jpg [a slide]) every n seconds I want the page to query the db to ask if it needs to change the jpg and if so which jpg should it now show. In this way we can control the presentation by updating the database on the fly.
    So I think I will acheive this as follows:
    1. a 'display' page that contains javascript that fires every n seconds
    2. that js to somehow pass 2 variables (GET?) to an action page (ie user id and an authentication var)
    3. the action page will the query the db (using the vars passed in step 2)
    4. the action page returns a result (path to jpg to display) which somehow(?!) is passed back to the display page
    5. the display page then swaps the jpg it is showing for the one passed back to it in step 4
    6. ideally the display page then also passes another 2 variables to the action page letting us know it has received the update and changed the image accordingly
    I'm fine with all the html and cfm stuff - where I am stuck is the js bits, I've had a good look through google and don't seem to be making any progress so if anyone could please point me in the right direction I'd be ever so grateful.
    Any snippets / advice very gratefully received
    TIA
    Nick

    Hi Nick -
    Let me also recommend jQuery.
    Fantastic stuff once you get the hang of it, and even the simple stuff is cool.
    Ok... here's what I did...
    There are probably better ways to do it, but I cheated, in that I did it my way, and got some good results.
    Using divs to define my display areas here's what I did:
    I have 2 select statements -
    1) Selecting from 1 populates the other select.
    2) The JS function is triggered when a selection is made.
    3) The Ajax statement goes out to a web page, that new page does a query and creates a new div with the same name as "txtResult", for my example.
    4) The Ajax then pulls back the new page and displays it.
    It's pretty easy after a few tries.
    Hope this helps.
    Doug
    function dynamic_Select(poolID){
    $.ajax({
    type: "GET",
    url: '/forms/selectSchedules.cfm',
    data: "id=" + poolID,
    dataType: "text/html",
    success: function(html){
        $("#txtResult").html(html);    
        <div style=" padding-left:100px;">   
            Select Pool:
            <select name="pool" onchange="dynamic_Select(this.value)" />
            <option value="#" selected="selected">-Select-</option>
            <cfoutput query="pools">
            <option value="#poolID#">#poolName#</option>
            </cfoutput>
            </select>
            <span id="txtResult" style=" padding-left:100px;">
                Select Schedule:
                <select name="schedules" id="schedules" onchange="getInfo()">
                <option></option>
                </select>
            </span>
        </div>

  • Displaying the  results without refreshing the page

    Hi,
    I need to show the items added to the basket within a list box which is on the top frame without refreshing the page.the page is a jsp page.Could you please give me idea how this could be done.
    The problem is, there are 2 frames, one above and one below.In the below frame I select a product and add to the basket, at the same time I need to show these items in above frame within the list box, the above frame should not refresh, it should show the items as soon as the items are added.
    Thanks

    The cart bean is on the server? Then you will have to send a request to the server to get it added. How do you do that? You post a form. How do you post a form without submitting a page? You don't.
    You need to make a design decision. If you want all of your logic on the server, you will have to be content with client-side refreshes. If client-side refreshes and their inherent delays are not acceptable, you will have to learn to be savvy with JavaScript but realize that anything you do on the form is still only on the form until you submit it.

  • My friend synced a video to my ipod but it erased all my data on my ipod,but i cant figure out how to load my old libray back without deleting the movie. my friend cant tell me the password. How can I get my old library back without deleting the movie?

    My friend synced a video to my ipod but it earased all my data on my ipod,but I can't figure out how to load my old library back without deleting the movie. My friend shares a family account so she can't tell me the password. How can i get my old library back without deleting the movie?

    Linnwarner wrote:
    She does have the right because she bought the movie.
    Not true at all.
    You only buy the right to your own personal use.
    You do NOT have the right to distribute to others.
    This is illegal.  There is no doubt about it

  • I have a 4S and just tried updating to the latest iOS version and my phone went into recovery mode and iTunes says I need to restore to factory settings. Anyone know how I can fix my phone without losing all my content?

    I have a 4S and just tried updating to the latest iOS version and my phone went into recovery mode and iTunes says I need to restore to factory settings. Anyone know how I can fix my phone without losing all my content?

    You would only be able to restore to a backup to iCloud or iTunes:
    Restore from Backup
    Cheers,
    GB

  • How to load content of my text file into a Vector?

    Hi!
    Two questions.
    Let say I have used BufferedReader(new FileReader(c:/java/MyText.txt)) to read from MyText.txt file. I want to know how to load content of this file (every line describe each photo in my photo-set) into a Vector? And how to associate lines of MyText.txt as an elements of the Vector?
    I am trying to do something, but no results.
    try{
    BufferedReader reader = new BufferedReader(new FileReader("c:/java/Applications/MyText.txt"));
    String str=reader.readLine();
    JList myList = new JList();
    StringTokenizer st = new StringTokenizer(str,"\n");
    Vector vr = new Vector(25);
    while(st.hasMoreTokens()){
    String nextToken = st.nextToken();
    vr.addElement(nextToken);
    myList.setListData(vr);
    TA1.setText(TA1.getText()+
    (String)myList.getSelectedValue());
    }catch(IOException evt) {};

    BufferedReader reader = new BufferedReader(new FileReader("c:/java/Applications/MyText.txt"));
    Vector photos = new Vector(0,0);
    while(reader.ready())
       photos.addElement(reader.readLine());
    }good luck,
    Felipe

  • Loading content without reloading whole page

    Hi Guys
    I have a "one page" wordpress site. But have hit a stumbling block in my creation.
    Essentially what I want is for one of the "sections" on my one page site to have it's own menu, and for each menu item to 'reveal' it's own content beneath it without re-loading the whole page.
    My first thought is an Iframe, but this might be a bit dated now.
    A plugin would be most ideal to simplify things.
    Thanks :-)

    Actually yes
    I knew there was something in my previous experience to do this job and that was it... "tabs"
    Atleast it gives me the correct keywords to search for to find a more suitable solution.
    So unless anyone knows of any good Wordpress plugins for this, concider this topic answered :-)
    (ps. I'm not after a plugin to shortcut anything.... its more the case that I need it maintanable by clients)

  • How do I put ipod classic contents onto iTunes without losing what's already on either?

    How do I put ipod classic contents onto iTunes without losing what's already on iTunes?

    See this older post from another forum member Zevoneer covering the different methods and software available to assist you with the task of copying content from your iPod back to your PC and into iTunes.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    B-rock

  • Hi. How can I delete the table without deleting the content? My pages is 5.2.2.

    Hi. How can I delete the table without deleting the content? My pages version is 5.2.2. Thank you for your help.

    There is no convert Table to text capability in Pages v5.2.2, as there was in Pages ’09 v4.3.
    You can keep the table while making the table grid vanish, leaving the existing tabular text structure. Select the table, and under the Format panel > Table tab, the following settings will produce this output. If selected, you can refine its document placement in the Arrange tab.

  • I saw a post on how to load iMovie 6 without deleting iMovie 9 or iLife 11 I can't find the post now does anyone know if this is possible. I do not want risk not being able to reload iMovie 9 it appears that I would have to reload the whole  iLife suit

    I saw a post on how to load iMovie 6 without deleting iMovie 9 or iLife 11 I can't find the post now does anyone know if this is possible. I do not want risk not being able to reload iMovie 9 it appears that I would have to reload the whole  iLife suit

    Could have been mine!
    Happily this is easily achieved, but it has to be done backwards.
    Delete iMovie 9 (just drag it to the trash). Now install iMovie 6 from the iLife 6 install disks.
    Now re-install iMovie 9. This automatically moves iMovie 6 into a folder it creates in your Applications folder called iMovie Previous Version.
    Now you have them both, and you can have both in the Dock as well.
    Alternatively you could try this method, suggested by poster Uitech:
    Open a terminal and type "touch /Library/Preferences/com.apple.iLife08.plist"
    (No quotes)
    Install iMovieHD6 from the iLife 6 install disk.
    This works with both Leopard and Snow Leopard Macs.

Maybe you are looking for

  • Java mapping for Dynamic File name: stuctures?

    Hi, Scenario:  Sender AS2 adapter --> PI --> Receiver File (NFS) Adapter. Just a file pass through, no mapping Requirement: Want to have the receiver file name as C1.yymmdd.C2 where C1 and C2 are contants and yymmdd is current date. I was told in sdn

  • ICloud syncing issues... again.

    Right back to where I was a couple weeks ago. Numbers files aren't syncing to iCloud again. Restarted, reinstalled, etc. again and still nothing. I noticed that my files weren't deleted off of the ipad when deleting the app. When I reinstalled, all o

  • Using Airtunes for other things than iTunes?

    Hi, Is it possible to use my Airport Express, which is connected to speakers around the house, for other sounds than just from iTunes? So I can hear different sounds from all applications as though it were my built in speakers I was using? Thanks. Mc

  • [SOLVED] chromium unresponsive when opening preferences

    When opening preferences in chromium, a new tab appears but it is not populated and the tab becomes unresponsive. Obviously, this is a deal-breaker and I need some help in fixing it. I observed that after opening preferences, a new ktradertest proces

  • CommandButton onClick() action problem

    Hi every one , I want to execute an Ajax function when clicking on submit button before submitting the page like this : <h:commandButton value="Go" onclick="myFun();" action="#{myController.getPropertyName}"/>where this javascript function will show