Creating a Javascript Preloader for my HTML sites... wont work..

Hey all,
I am creating a Javascript Preloader for my html site (www.rockspire.com), I have scripted all actions and have come away with a bar that does not load. Can someone please direct me as to where the error may be.
Thanks in advance!
Site: www.rockspire.com
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Index</title>
<script type="text/javascript">
<!-- begin hiding
// You may modify the following:
var locationAfterPreload = "index2.html" // URL of the page after preload finishes
var lengthOfPreloadBar = 450 // Length of preload bar (in pixels)
var heightOfPreloadBar = 10 // Height of preload bar (in pixels)
// Put the URLs of images that you want to preload below (as many as you want)
var yourImages = new Array(
"images/lparch1.jpg",
"images/lparch2.jpg",
"images/lparch3.jpg",
"images/lparch4.jpg",
"images/lparch5.jpg",
"images/lparch6.jpg",
"images/lparch7.jpg",
"images/lparch8.jpg",
"images/lparch9.jpg",
"images/lpart1.jpg",
"images/lpart2.jpg",
"images/lpart3.jpg",
"images/lpart4.jpg",
"images/lpart5.jpg",
"images/lpart6.jpg",
"images/lpart7.jpg",
"images/lpbetty1.jpg",
"images/lpbetty2.jpg",
"images/lpbetty3.jpg",
"images/lpbetty4.jpg",
"images/lpbetty5.jpg",
"images/lpnature1.jpg",
"images/lpnature2.jpg",
"images/lpnature3.jpg",
"images/lpnature4.jpg",
"images/lpnature5.jpg",
"images/lpnature6.jpg",
"images/lpnature7.jpg",
"images/lpnature8.jpg",
"images/lpnature9.jpg",
"images/lpnature10.jpg",
"images/lpnature11.jpg",
"images/thumbnail_arch1.jpg",
"images/thumbnail_arch1bw.jpg",
"images/thumbnail_arch10.jpg",
"images/thumbnail_arch10bw.jpg",
"images/thumbnail_arch11.jpg",
"images/thumbnail_arch11bw.jpg",
"images/thumbnail_arch2.jpg",
"images/thumbnail_arch2bw.jpg",
"images/thumbnail_arch3.jpg",
"images/thumbnail_arch3bw.jpg",
"images/thumbnail_arch4.jpg",
"images/thumbnail_arch4bw.jpg",
"images/thumbnail_arch5.jpg",
"images/thumbnail_arch5bw.jpg",
"images/thumbnail_arch6.jpg",
"images/thumbnail_arch6bw.jpg",
"images/thumbnail_arch7.jpg",
"images/thumbnail_arch7bw.jpg",
"images/thumbnail_arch8.jpg",
"images/thumbnail_arch8bw.jpg",
"images/thumbnail_arch9.jpg",
"images/thumbnail_arch9bw.jpg",
"images/thumbnail_art1.jpg",
"images/thumbnail_art1bw.jpg",
"images/thumbnail_art2.jpg",
"images/thumbnail_art2bw.jpg",
"images/thumbnail_art3.jpg",
"images/thumbnail_art3bw.jpg",
"images/thumbnail_art4.jpg",
"images/thumbnail_art4bw.jpg",
"images/thumbnail_art5.jpg",
"images/thumbnail_art5bw.jpg",
"images/thumbnail_art6.jpg",
"images/thumbnail_art6bw.jpg",
"images/thumbnail_art7.jpg",
"images/thumbnail_art7bw.jpg",
"images/thumbnail_b1.jpg",
"images/thumbnail_b1bw.jpg",
"images/thumbnail_b2.jpg",
"images/thumbnail_b2bw.jpg",
"images/thumbnail_b3.jpg",
"images/thumbnail_b3bw.jpg",
"images/thumbnail_b4.jpg",
"images/thumbnail_b4bw.jpg",
"images/thumbnail_b5.jpg",
"images/thumbnail_b5bw.jpg",
"images/thumbnail_nat1.jpg",
"images/thumbnail_nat1bw.jpg",
"images/thumbnail_nat2.jpg",
"images/thumbnail_nat2bw.jpg",
"images/thumbnail_nat3.jpg",
"images/thumbnail_nat3bw.jpg",
"images/thumbnail_nat4.jpg",
"images/thumbnail_nat4bw.jpg",
"images/thumbnail_nat5.jpg",
"images/thumbnail_nat5bw.jpg",
"images/thumbnail_nat6.jpg",
"images/thumbnail_nat6bw.jpg",
"images/thumbnail_nat7.jpg",
"images/thumbnail_nat7bw.jpg",
"images/thumbnail_nat8.jpg",
"images/thumbnail_nat8bw.jpg",
"images/thumbnail_nat9.jpg",
"images/thumbnail_nat9bw.jpg",
"images/thumbnail_nat10.jpg",
"images/thumbnail_nat10bw.jpg",
"images/thumbnail_nat11.jpg",
"images/thumbnail_nat11bw.jpg",
"images/index_01.jpg",
"images/index_02.jpg",
"images/index_04.jpg",
"images/index_05.jpg",
"images/index_06.jpg",
"images/index_13.jpg",
"images/index_14.jpg",
"images/overview.pdf",
"images/Rockspire_Site_Map.pdf",
"images/Rockspire_slideshow.flv",
"images/main_concept_image.jpg",
"images/main_contact_image.jpg",
"images/main_events_image.jpg",
"images/main_inspiration_image.jpg",
"images/main_manifesto_image.jpg",
"images/main_photos_image.jpg",
"images/main_resources_image.jpg"
// Do not modify anything beyond this point!
if (document.images) {
var dots = new Array()
dots[0] = new Image(1,1)
dots[0].src = "images/black.gif" // default preloadbar color (note: You can substitute it with your image, but it has to be 1x1 size)
dots[1] = new Image(1,1)
dots[1].src = "images/red.gif" // color of bar as preloading progresses (same note as above)
var preImages = new Array(),coverage = Math.floor(lengthOfPreloadBar/yourImages.length),currCount = 0
var loaded = new Array(),i,covered,timerID
var leftOverWidth = lengthOfPreloadBar%coverage
function loadImages() {
for (i = 0; i < yourImages.length; i++) {
preImages = new Image()
preImages.src = yourImages
for (i = 0; i < preImages.length; i++) {
loaded = false
checkLoad()
function checkLoad() {
if (currCount == preImages.length) {
location.replace(locationAfterPreload)
return
for (i = 0; i <= preImages.length; i++) {
if (loaded == false && preImages.complete) {
loaded = true
eval("document.img" + currCount + ".src=dots[1].src")
currCount++
timerID = setTimeout("checkLoad()",10)
// end hiding -->
</script>
<style type="text/css">
<!--
body p {
    color: #333;
-->
</style>
</head>
<body>
<div align="center">
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p>
<script type="text/javascript">
<!-- begin hiding
if (document.images) {
var preloadBar = ''
for (i = 0; i < yourImages.length-1; i++) {
preloadBar += '<img src="' + dots[0].src + '" width="' + coverage + '" height="' + heightOfPreloadBar + '" name="img' + i + '" align="absmiddle">'
preloadBar += '<img src="' + dots[0].src + '" width="' + (leftOverWidth+coverage) + '" height="' + heightOfPreloadBar + '" name="img' + (yourImages.length-1) + '" align="absmiddle">'
document.write(preloadBar)
loadImages()
// end hiding -->
</script>
</p>
<p><font size="2" face="Helvetica Neue">Welcome to Rockspire...</font></p>
</div>
</body>
</html>
Cheers!

I see an pdf and flv file in the image list, remove them.
Rewrite the code of your loading bar into one solid procedure which can be called from image loaded so you end up with three functions:
loadImage
imageLoaded
displayProgressBar
Maybe it's simpler not to display a progressbar but to display a text like XX loaded from XX images.
I can't possibly write all the code for you but to adjust the loading bar use the image object instead of html code....
preloadingImg = new Image();
preloadingImg.src = "img/dot.jpg"   //whatever your preloader img is
//To place your loading bar somewhere in the document:
parentElement.addChildNode(preloadingImg);   //where parentElement is the container of the preloader image ( a DIV tag or whatever)
//to adjust the width and height
preloadingImg.height = someHeight + 'px';
preloadingImg.width = someWidth + 'px'
Another alternative is indeed use jQuery.

Similar Messages

  • This workflow cannot be imported because it was created in SharePoint Designer for a different Site

    Hello everyone.  I am getting this error when attempting to move minor workflow changes from mirror SharePoint development / production environments and hoping someone can help me.
    "This workflow cannot be imported because it was created in SharePoint Designer for a different site, or the original workflow has been moved or deleted.  To move a workflow between sites, use Save as Template (.wsp file) instead of a Visio workflow
    drawing."
    So basically I have taken an image of our single SharePoint server, Domain Controller, and a client and restored them to an OFFLINE development environment for the testing of workflow changes prior to production.  I've put quite a bit of time into one
    particularly and would like to export/import rather than re-created from scratch.
    I've successfully created the form template and imported.  This created the necessary list items nicely and the form appears to work as expected.  However, when attempting to import the .VWI file exported from dev SharePoint, I am getting the above
    error.  If I change the .VWI to .zip and remove the "workflow.xoml.wfconfig.xml" file, then re-zip and change the file extension back to .VWI I get a dialog that allows me to import, but I have to choose a new name and much of the related content
    is lost.  I need to be able to overwrite/merge the existing workflow with the import.  Any suggestions?
    One strange thing I ran into was during a test of an export/import from and to the exact same environment. If I simply export to .VWI, then import from .VWI with no changes, SAME everything I still get this error. Very weird. Hoping someone can shed some
    light on the subject. Thank you.
    Adam Tyler

    Hi Adam,
    Here is a blog talk about the same issue would be helpful:
    http://techiescode.blogspot.com/2014/09/copymove-sharepoint-2010-designer.html
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Upload javascript files for edge animate banner to work in  Content Management System (was: how do upload...)

    how do upload the javascript files for the html edge animate banner to work in my Content Management System module. At present, the html cannot function because the reference javascript files are missing.

    I am not very sure how the CMS manage their content but basically the javascript files need to be in the same folder as the HTML file for Animate content to play.

  • Asked for an HTML site; got an ASP site instead - how to proceed?

    I am a web coordinator - I know HTML and CSS. I've used server side includes. I've cribbed some Javascript for pop-ups and rel="external." But I'm really a writer who manages a few sites - they were already designed, I simply manage and build new pages, using Dreamweaver 8.
    My department hired an outside company to design a new site for us. We made it clear what we really wanted was art - I could handle the rest, as I'm proficient in HTML and CSS. We worked closely with the designer-it looks great, but went through a couple project managers, and something fell through the cracks.
    They sent us the files - they're in ASP instead of HTML.  I didn't realize how big of a problem this was until I tried to follow the firm's "simple" save-as directions to create a new page and it all went to hell. This is very different. They had to talk with my server admin about something IIS. I can't see anything in design view.
    Reading through the forums, most questions about ASP are from 2008 and earlier, and suggestions for those who don't know ASP pretty much come down to, "Step away from the web site!" It looks like this is something beyond my current skill set.
    The new web site is for homeowners and gardeners - it's articles and links. No databases.
    I'm so lost, it's hard to even know what I should be asking, but here's a stab:
    Can I "break" these files, taking the design but rebuilding as HTML pages? (There is a style sheet.) We've alread paid for the site. They've charged us again just for a couple emails and one phone call to clear up the IIS thing. We're a tiny department in a state-funded agency - our budget is close to nothing.

    I'm pretty sure it contains asp code, but I've attached a plain text document with the first twenty lines of the home page.
    Link to the page as they've delivered it: http://gardeningsolutions.ifas.ufl.edu/solutions/default.asp
    My hacked-up HTML version: http://gardeningsolutions.ifas.ufl.edu/test/gs_index_solutions.html
    (Excuse the "search" box jammed in there; they forgot to put one in so I just pasted our old one...)
    They gave us a style sheet and the necessary graphics - I could simply work with those, right? Taking out all the .asp stuff?
    We don't sell anything. I'm the only person with access to the site. There is no database. I can't think of a good reason why we need our site in ASP. We just wanted it to look pretty. I don't do pretty.
    It does look like I could stand to learn some Javascript and move on from there - dynamic features can be added to an HTML site, right?

  • I need create a custom control for visualization HTML

    Hi guys,
      I need create a custom control for HTML files visualization on SAPGUI JAVA. I created a sample program and perfectly run on SAPGUI Windows.
    Thanks.
    Regards.
    Jose Antonio Campos.

    Hi,
    Just as a quick start
    http://gumbo.flashhub.net/sizer/  (view source enabled).
    this uses a skin to make a titlewindow resizable, its not about the skin as much as giving you a starting point for resizing code.
    if you look into the skin you will see these functions
    protected function sizer_mouseDownHandler(event:MouseEvent):void
    OldX=event.stageX;
    OldY=event.stageY;
    systemManager.addEventListener(MouseEvent.MOUSE_MOVE,startResize);
    systemManager.addEventListener(MouseEvent.MOUSE_UP,endResize);
    protected function endResize(event:MouseEvent):void
    systemManager.removeEventListener(MouseEvent.MOUSE_MOVE,startResize);
    systemManager.removeEventListener(MouseEvent.MOUSE_UP,endResize);
    private function startResize(event:MouseEvent): void
    hostComponent.width -= OldX-event.stageX;
    hostComponent.height -= OldY-event.stageY;
    OldX=event.stageX;
    OldY=event.stageY;
    The idea is to have a hit area on your custom component (a corner, or all corners). You capture the mouseposition when you mousedown then in the mouse move eventlistener you update the object size with the difference between current X and Y from initial X and Y.
    Hope this gets you started.
    David

  • How to create a Safari shortcut for a particular site?

    I would like to create a shortcut (alias) for a particular website. I know that I can go into Applications/Safari.app and create a shortcut for the browser, but this is not what I want . I want to open a website in Safari, say Apple.com, and create a shortcut for this. Then all I have to do is one click on the desktop icon and I am at Apple.com. OR I can open a discussion in many different areas (say iChat, iPod, etc.) and create a shortcut for each of these and they can stay on my desktop forever and I don't have to search the History to guess what day I last used it.
    I have tried setting Preferences to "Same Page", but it doesn't work. Clicking on the icon always takes me to the home page.
    Any suggestions?
    Thanks
    Herschel

    Excellent! I think you got it. That thing to the left of the URL is just an icon. I am used to the PC where you don't have to do that sort of thing, but it works just as well so far. I'll play with it to make sure it does what I want, but thank you very much for a job well done.
    Herschel

  • Site wont work properly?!

    Hello,
    I searched for the same or similar problem first but havent find my kind of problem, so I have decided to make a new thread.
    My site solution is very simple, its something more like a test: www.bursac.net/student
    Techically, Flash itself doesnt report any kind of problem at all. But, practically site (site is one big flash .swf movie right?) wont work as intended.
    Simply, when I roll over the main word "student", text should appear and dissapear when I roll out of the word. It works for a couple of times when I do that, but after a while (or sometimes immediately) it switches around and then text dissapears when I roll over instead of opposite.
    So, are there any idea what could possibly be the problem?
    Thank you so very much in advance.
    Savo
    My code is very basic:
    stop();
    student_mc.buttonMode = true;
    student_mc.addEventListener(MouseEvent.ROLL_OVER, introductionIn);
    student_mc.addEventListener(MouseEvent.ROLL_OUT, introductionOut);
    student_mc.addEventListener(MouseEvent.CLICK, resultIn);
    student_mc.addEventListener(MouseEvent.CLICK, timeIn);
    student_mc.addEventListener(MouseEvent.CLICK, thinkingIn);
    student_mc.addEventListener(MouseEvent.CLICK, educationIn);
    student_mc.addEventListener(MouseEvent.CLICK, cultureIn);
    student_mc.addEventListener(MouseEvent.CLICK, invisibleIn);
    function introductionIn(event:MouseEvent):void
    introduction_mc.gotoAndPlay("over");
    function introductionOut(event:MouseEvent):void
    introduction_mc.gotoAndPlay("out");
    function resultIn(event:MouseEvent):void
    result_mc.gotoAndPlay("over");
    function timeIn(event:MouseEvent):void
    time_mc.gotoAndPlay("over");
    function thinkingIn(event:MouseEvent):void
    thinking_mc.gotoAndPlay("over");
    function educationIn(event:MouseEvent):void
    education_mc.gotoAndPlay("over");
    function cultureIn(event:MouseEvent):void
    culture_mc.gotoAndPlay("over");
    function invisibleIn(event:MouseEvent):void
    invisible_mc.gotoAndPlay("over");
    result_mc.buttonMode = true;
    time_mc.buttonMode = true;
    thinking_mc.buttonMode = true;
    education_mc.buttonMode = true;
    culture_mc.buttonMode = true;
    invisible_mc.buttonMode = true;
    invisible_mc.addEventListener(MouseEvent.CLICK, generalMove);
    invisible_mc.addEventListener(MouseEvent.CLICK, Move);
    invisible_mc.addEventListener(MouseEvent.CLICK, studentOver);
    invisible_mc.addEventListener(MouseEvent.ROLL_OVER, lineIn);
    invisible_mc.addEventListener(MouseEvent.ROLL_OUT, lineOut);
    invisible_mc.addEventListener(MouseEvent.CLICK, navigationMove);
    function navigationMove(event:MouseEvent):void
    up_mc.gotoAndPlay("on");
    down_mc.gotoAndPlay("on");
    left_mc.gotoAndPlay("on");
    right_mc.gotoAndPlay("on");
    function Move(event:MouseEvent):void
    result_mc.gotoAndPlay("click");
    time_mc.gotoAndPlay("click");
    thinking_mc.gotoAndPlay("click");
    education_mc.gotoAndPlay("click");
    culture_mc.gotoAndPlay("click");
    invisible_mc.visible = false;
    function lineIn(event:MouseEvent):void
    lines_mc.gotoAndPlay("over");
    function lineOut(event:MouseEvent):void
    lines_mc.gotoAndPlay("out");
    function studentOver(event:MouseEvent):void
    student_mc.gotoAndPlay("over");
    function generalMove(event:MouseEvent):void
    general_mc.gotoAndPlay("on");
    up_mc.addEventListener(MouseEvent.CLICK, generalUp);
    down_mc.addEventListener(MouseEvent.CLICK, generalDown);
    left_mc.addEventListener(MouseEvent.CLICK, generalLeft);
    right_mc.addEventListener(MouseEvent.CLICK, generalRight);
    function generalUp(event:MouseEvent):void
    general_mc.y += 20;
    function generalDown(event:MouseEvent):void
    general_mc.y -= 20;
    function generalLeft(event:MouseEvent):void
    general_mc.x += 20;
    function generalRight(event:MouseEvent):void
    general_mc.x -= 20;

    Hello,
    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Start Firefox in Safe Mode to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    <b> To Enable SafeMode </b>
    *You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    *''Once you get the pop-up, just select "'Start in Safe Mode"''
    If it works in Safe Mode and in normal mode with all extensions (Tools > Add-ons > Extensions) disabled then try to find which extension is causing it by enabling one extension at a time until the problem reappears.
    Close and restart Firefox after each change via "Firefox > Exit" (Windows: Firefox/File > Exit; Mac: "Firefox > Quit Firefox"; Linux: "Firefox/File > Quit")
    * https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Help Me..iTunes has allowed password set for volume, but password wont work

    I just received my iPod Shuffle yesterday. iTunes 7, allowed me to set a password for my iPod Shuffle (for volume control), but the password wont work, yikes.... It's the same password I always use. The volume is so low, I can barely hear it. I uninstalled iTunes and reinstalled it, but my iPod still remembered its password, I tried the Restore under settings in iTunes... no luck.
    The error message I get when I try to restore is (same as when I try to access the iTunes Store, which I cannot access either):
    ITunes could not connect to the iTunes Store. The network connection timed out.
    Make sure your network settings are correct and your network connections active, then try again.
    I have cable access to the internet, and that's just fine. I've tried to use the command line to run ipconfig / (I forgot what it said to type after the slash), but I did this twice and it was successful.
    I checked my firewall for exceptions, and iTunes is one, so that should be alright. Maybe it's the McAfee Security Center
    I would really appreciate any help that you might have to offer.
    Thanks!
    Sky

    Here was the problem:
    I found out that I had two firewalls up! I would think that wouldn't be possible. Both Windows and Symantec firewalls. Once my friend took down the Windows one, she was able to restore the ipod shuffle to factory settings and go to the ITunes Store. I'm too chicken to apply a password on it again.
    Before my friend helped me, I called the 1-800 help line (in India, 9 hours ahead of us, and I think it was after mid-night-but I could not tell I woke her up, I felt bad) and she had me try a few things and I forgot to get her help on putting everything back. But I did sort of write down the changes and was able to retrace and return it to what the PC was.
    I just wanted to share this in case anyone else does this.

  • Added Firefox. Dumped Explorer. Kayak site wont work. How do I get everything working without reloading Explorer?

    I made Firefox my browser. I dumped Explorer. I opened AOL and tried to get KAYAK.COM to come up. It is blocked by something that wants me to reload Explorer.
    How do I get kayak and other sites to work again?

    You would make this a little easier if you posted a link to the page.
    Most of the jump seems to be some extra padding or margin between the tabs  when you rollover, but I am not able to find it.  Is there any other css that is governing this page? I did remove a couple of <p></p> set of tags you had  and it improved the jump, but it is still there.
    If the page is live, run it through the validator http://validator.w3.org/ , fix whatever errors it finds, if you still have the jump, post a link to the page and the issue might get found.
    Gary

  • Help! I can't create a javascript saveas for radiobox

    First, I want to say thanks for helping.
    I am new to javascript and coding in general, but I feel that I have been learning and picking up the coding from sites like this.  I am making a form using adobe acrobat pro 3D 8.1.0.  I have a combobox that I have a list of a bunch of locations.  The combobox is set to export a 3 or 4 letter or digit result that is unique to that site.  I have then set up a saveas on blur following the selection.  This is all working correctly.
    However, I several hundred radioboxes and textboxes in the document.  This document will be used for acceptance testing and I do not want to accidentally lose any data so I want to save after every selection or input in the textboxes.
    The following is my code for the combobox.
    // build file name
    var site = this.getField("siteName").valueAsString;
    Date.prototype.defaultView=function(){
    var dd = this.getDate();
    var mm=this.getMonth()+1;
    var yyyy=this.getFullYear();
    return String(mm+"-"+dd+"-"+yyyy)
    var today = new Date();
    var gmtHours = -today.getTimezoneOffset()/60;
    var cstHours = today.getUTCHours() + gmtHours;
    if(cstHours<10)cstHours='0'+cstHours;
    var min = today.getUTCMinutes();
    if(min<10)min='0'+min;
    var sec=today.getUTCSeconds();
    if(sec<10)sec='0'+sec;
    var timeStamp=today.defaultView() + "_" + cstHours + "-" + min + "-" + sec;
    var myFileName = site + "_" + timeStamp + ".pdf";
    // add folder name
    myFileName = "/f/file_test/" + myFileName
    myTrustedSpecialTaskFunc(this, myFileName);
    this.getField("docName").value = myFileName;
    I was struggling with the saveas and I don't want to create a new file everytime so I created a hidden textbox that has the file name.  I was hoping that I could just read this textbox and saveas using the original filename.  (The script above uses time in the filename so that would create a new file name every second)  The hidden text box is getting the values correctly and is working fine.
    I have tried several different methods of javascript on the radio buttons and text text boxes.  On the radio button I have tried all mouse options, but I was hoping to use mouse up.  The textboxes I want to use mouse, on blur.   Below is some of the scripts that I have tried.  I want it to be automatic and I want it to overwrite everytime without prompts.
    app.execMenuItem("Save");
    var oMyDoc = <… PDF being operated on …>
    app.execMenuItem("Save", oMyDoc);
    var myFileName = this.getField("docName").valueAsString;
    this.saveAs(myFileName);
    ....and I have tried others, but since they didn't work, I didn't keep track of them.
    I appreciate any suggestions!
    Thanks

    I responded to your other post in the scripting forum.

  • I can't create a javascript saveas for radiobox

    I started this discussion in acrobat windows forum and I think I should have put it here so I'm reposting it.
    First, I want to say thanks for helping.
    I  am new to javascript and coding in general, but I feel that I have been  learning and picking up the coding from sites like this.  I am making a  form using adobe acrobat pro 3D 8.1.0.  I have a combobox that I have a  list of a bunch of locations.  The combobox is set to export a 3 or 4  letter or digit result that is unique to that site.  I have then set up a  saveas on blur following the selection.  This is all working correctly.
    However,  I several hundred radioboxes and textboxes in the document.  This  document will be used for acceptance testing and I do not want to  accidentally lose any data so I want to save after every selection or  input in the textboxes.
    The following is my code for the combobox.
    // build file name
    var site = this.getField("siteName").valueAsString;
    Date.prototype.defaultView=function(){
    var dd = this.getDate();
    var mm=this.getMonth()+1;
    var yyyy=this.getFullYear();
    return String(mm+"-"+dd+"-"+yyyy)
    var today = new Date();
    var gmtHours = -today.getTimezoneOffset()/60;
    var cstHours = today.getUTCHours() + gmtHours;
    if(cstHours<10)cstHours='0'+cstHours;
    var min = today.getUTCMinutes();
    if(min<10)min='0'+min;
    var sec=today.getUTCSeconds();
    if(sec<10)sec='0'+sec;
    var timeStamp=today.defaultView() + "_" + cstHours + "-" + min + "-" + sec;
    var myFileName = site + "_" + timeStamp + ".pdf";
    // add folder name
    myFileName = "/f/file_test/" + myFileName
    myTrustedSpecialTaskFunc(this, myFileName);
    this.getField("docName").value = myFileName;
    I  was struggling with the saveas and I don't want to create a new file  everytime so I created a hidden textbox that has the file name.  I was  hoping that I could just read this textbox and saveas using the original  filename.  (The script above uses time in the filename so that would  create a new file name every second)  The hidden text box is getting the  values correctly and is working fine.
    I have tried  several different methods of javascript on the radio buttons and text  text boxes.  On the radio button I have tried all mouse options, but I  was hoping to use mouse up.  The textboxes I want to use mouse, on  blur.   Below is some of the scripts that I have tried.  I want it to be  automatic and I want it to overwrite everytime without prompts.
    app.execMenuItem("Save");
    var oMyDoc = <… PDF being operated on …>
    app.execMenuItem("Save", oMyDoc);
    var myFileName = this.getField("docName").valueAsString;
    this.saveAs(myFileName);
    ....and I have tried others, but since they didn't work, I didn't keep track of them.
    I appreciate any suggestions!
    Thanks

    George, thanks for the reply.  I am new to coding and I really don't know much about folder level scripts.  However, I did create the following trusted saveas script which I saved as a .js in adobe.  Is this what you are refering to?
    mySaveAs = app.trustPropagatorFunction(function(doc,path) {
    app.beginPriv();
    doc.saveAs(path);
    app.endPriv();
    myTrustedSpecialTaskFunc = app.trustedFunction(function(doc,path) {
    // Privileged and/or non-privileged code above
    app.beginPriv();
    mySaveAs(doc,path);
    app.endPriv();
    // Privileged and/or non-privileged code below
    I did try refering back to this script once, but I wasn't able to get it to work.

  • Creating Two Different Designs for the same site

    I already have a website (www.ernestbuckley) but would like to design an alternate site with the same name and from time to time, just switch between the two for variety. Can this be done? Will I lose any data when I switch back and forth?

    Apnewbie's suggestion is right on track! You already have your domain name ( http://www.ernestbuckley.com ) that you forward to:
    http://web.mac.com/ernestbuckley/iWeb/ernestbuckley/Welcome.html
    If you made another parallel site with the different design and called it "ernest2", all you would have to do is to switch your forwarding to:
    http://web.mac.com/ernestbuckley/iWeb/ernest2/
    You can continue to edit both sites and when you want to switch sites, just change your forwarding again to the other address.
    BTW, if you want to start another site, you might consider using a program called "iWebSites" to help you manage your sites in separate Domain files. That way you keep them completely separate from one another and maintain the ability to edit and publish them independently of one another. Here is the URL for more info...
    http://mistergregg.com/cocoadrillosoftware/
    Let me know if you any other questions...

  • Looking for FLASH developer/guru to create a Flash Intro for a Clan Site.

    I am looking for a FLASH developer to create a custom FLASH
    Intro for my gaming clan forums.
    A bit about us:
    Clan Name: =bURnT=
    Site:
    http://burnt.swisshut.com
    Games Played: Battlefield 2 & Battlefield 2142
    What we would like in the Intro:
    - That it somehow complements our forums
    - Includes the clan name
    - Looks professional and loads within reasonable time
    - Some sort of music / background soundtrack
    We are a small clan and don't have the biggest budget but
    please consider us and give us a estimate of price if you are able
    to do this for us.
    Regards,
    Dieter Balmer (OzButcher)
    [email protected]

    ..please visit my personal site
    http://bizgraphix.com
    ...thanks

  • Hp lj1102w - can't configure for Wifi (HTML Config not working in printer utility)

    I've got an HP LJ 1102w and have never been able to get the Print Utility to work.  I had to set it up for WiFi with a Windows machine, which wasn't too bad, but the network just changed and I don't have the Windows machine available any more.   I've looked at numerous discussions but can't find the right solution.    I've downloaded the driver a number of times , then went to the configuration page for the printer, clicked Utility, but when I click "Open Printer Utility", nothing happens.   Any ideas?
    Thank you!  Ron

    Thank you for the article, HerelsMartin, but that still didn't change anything.  To summarize, I did all of this:
    - Deleted old printer from the MacBook
    - Reset the printer, confirmed old network was gone
    - Set up Java 8.latest, 64-bit, made sure Chrome was updated
    - Set Safari as default browser
    - Rebooted computer just for kicks
    - Went to the new printer, clicked Options, Printer Utility , and got the same result: the "Ok" button got highlighted momentarily and then nothing happened.
    I then tried this step at the bottom of the article (see my comments in [..]):
    On the Apple menu bar, click Go [there was no "Go" in the Apple bar so I did this through Finder], computer, MAC harddrive, Library, Printers, HP [there was no HP folder, just my 4 printers], LaserJet, click on folder for your printer [there was no folder so I double-clicked the printer and it brought me back to the Printer Utility, and I got the same result as above - nothing - so the rest of this doesn't apply], click on EWS browser or HTML config, click the Networking tab, click wireless on the left and fill out your information. (make sure infrastructure is selected) Apply settings."
    I'm used to Mac doing EVERYTHING for me but this has been extremely time-consuming and frustrating; I'm ready to just go buy another printer.  There must be something that can fix this??
    Thank you, r

  • So i figured out why my sites wont work in chrome&opera!

    so i have big problems getting sites to load in certain browsers.
    ive been at it for 2weeks now.but now ive figured out why,i took out all the sound efx mp3 files.
    now my site loads perfect in everysite
    http://www.roycegdesign.com
    this site below will only work in chrome and safari.
    http://www.trebaltek.ca but still takes long to load sometimes.
    because it still has sound files ill take out later.
    my roycegdesign site,when it had sound it would only work in firefox and safari.
    they both screwed up in opera like crazy with sound.
    you can still see the example of what opera does to my trebaltek site with sound files in it.
    but i desided to take the sound out of my roycegdesign site and vwaaalaaaa ,it finally works in all browser's ive tested.
    im on a mac,so im unable to test it on IE,unless some one dosnt mind letting me know if it works on IE.
    but ya for now on,all sites i make with edge with not include sound files until browsers are able to load them much better in the future.

    Here are what IE returns loading trebaltek website.
    So, IE cannot set the volume property (null or undefined).
    So, it seems you have to check your audio code.

Maybe you are looking for

  • HDMI vs RGB for TV input?

    G'day, at present have my macbook hooked into my 42" Pioneer plasma through the s-video lead, this is fine for itunes etc but not so cool for reviewing documents (or writing my thesis) have mucked around with resolutions and zooms etc but i still wan

  • Cs4 and sony nx5u-nxcam footage

    Hello All, Have not posted in a while so I hope this is ok.Would like to know if avc hd footage from a sony nx5u-nxcam camcorder can be captured and edit on a pc. MB:intel d975Xbx2 CPU: intel core2 extreme QX6800 2.93mhz 1066 OS: Win XP Pro SP3 Ram:2

  • How do I get an acknowledgement receipt for an ema...

    I'm sure you know what I mean but I'm not sure what it's called. The Help section within the BTYahoo mail is as useful as the proverbial chocolate fireguard. Solved! Go to Solution.

  • 256GB SSD on MacBook Pro 15"?

    Will Apple introduced the 256GB SSD option for the 15" MacBook Pro

  • Dynamically UI() Creation

    HI All, I am using Jdeveloper 11.1.2.4 USE Case- I am trying to create some UI(Tab) at runtime. I am able to create it. But the which i have created, only first tab is coming selected always. and rest of the tab is not allowing to select(May be it is