Blog Post: Working on Local JavaScript Files

Working on Local JavaScript Files. The example in this post is including a JavaScript file that I'm editing on my local desktop in an app on apex.oracle.com.
Thanks,
Tyler

Your three javascript files are not found at the location you have in the code -
<script src="js/clearbox/config/default/cb_config.js" type="text/javascript">
<script src="js/clearbox/language/en/cb_language.js" type="text/javascript">
<script src="js/clearbox/core/cb_core.js" type="text/javascript">
In addition, the clear box CSS is not found, either.
<link href="js/clearbox/config/default/cb_style.css" type="text/css" rel="stylesheet">
Did you upload them?
In addition, I'm still seeing validation errors on the page -
[Invalid] Markup Validation of http://www.underhillandsharp.com/test/gallery.php - W3C Markup Validator

Similar Messages

  • Working with local xml file

    Hi, I would like to work with a local xml file, but I don't want to point to a strict location as I would like my application to run on a few different machines.
    Is there a special place within Netbeans project structure that I can place such files?
    Say if I try and load a file "somefile.xml" - where is it going to look first?
    I have a <default package> with my settings.xml in there. How can I reference this within my app?
    Edited by: 993541 on Mar 16, 2013 9:25 AM

    993541 wrote:
    Is there a special place within Netbeans project structure that I can place such files?dunno Netbeans project structure at all but I'd sugest maven project structure wich is widely used: http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html
    There you would place such a file in the <tt>main/resources</tt> folder
    Say if I try and load a file "somefile.xml" - where is it going to look first?I'ts going to look for it where you tell your program to.
    When created as <tt>new File("somefile.xml")</tt> it will bee searched in the <i>currend working directory</i>. The problem with that is that it is unreliable what this will be at runtime (once your Program left your IDE...).
    You should better get it via <tt>getClass().getResource("somefile.xml")</tt> But in this case the file must be present in the classpath in the same package as the Class aquireing it. Adding a <tt>'/'</tt> in front of the file name expects it in the root directory of a classpath entry.
    I have a <default package> with my settings.xml in there. How can I reference this within my app?<tt>getClass().getResource("/settings.xml")</tt>
    But in case you include it into the delivery jar file it will not be writable. Also you cannot expect the installation folder of your App to be writable. On startup of your program you should copy your (default) settings to a writable place like <tt>new File(System.getProperty("user.home2),".myApp/settings.xml");</tt> and modify it there.
    bye
    TPD

  • Allowing popup exception for local javascript files ("file://")

    I use Firefox to write local applications on my laptop. When doing so the URL always begins with file:///. When a local document is opened the output of document.domain is "domain." If I disable popup blocker my local html based application creates a new browser window and then two additional windows are opened in new tabs. This is what I want but I do not want to disable popup blocker, I want to add an exception. If popup blocker is enabled then only the new browser window is displayed.

    AFAIK then you can't make an exception for links opened via the file:// protocol <br />
    You need to open such links via http://localhost

  • Edge Animate file working on main blog page but not on the individual blog post in BC

    I recently uploaded an edge animate file to my blog which is host on Business Catalyst (BC). The edge file works on the main blog page but not on the individual blog post. How can I solve this problem?
    I did the following steps:
    I added the required Adobe Edge scripts on my main blog template.
    Create folder on the server called "edge_includes" and uploaded the 'edge.5.0.0.min' file.
    Create folder on the server called "js" and uploaded the 'jquery-1.7.1.min' file.
    Copy and pasted the div to the part of the blog post I wanted the file to appear (<div id="Stage" class="EDGE-13973370"></div>).
    Uploaded the name of the js file to the root called 'World of Code_edge.'
    Uploaded the images to the existing folder called 'images.'

    I'm still unable to figure out the problem.
    Here is the link to the blog: http://goo.gl/sPW62j (the post titled "Basic Computer Science is a Fundamental Skill in the 21st Century Society").
    Here is the link to the individual post: http://goo.gl/jTSgZH
    Also, I get mixed results on the main blog page. Sometimes the image (Edge Animate file) on the main page shows and other times it does not. However, the image never shows on the individual blog post.

  • Including external Javascript file in JSP- not working on Mozilla Firefox

    I have a JSP page which includes javascript file as below:
    <script type="text/javascript" src="https://siteAddress/scripts/myJsFile.js"></script>
    myJsFile.js has a method testFireFox()
    There is a link on JSP which that calls this method.
    <a href="#" onClick="testFireFox()">Some Text...</a>
    As soon as i click on the link, nothing happens and this error appears on console:
    Refrence Error: testFirefox() is not definedI tried giving the path for JS file in various ways but it did not help.
    Note: This works absolutely fine in Internet Explorer.
    I have not added Javascript to document.ready or onLoad event. It is simply been referred in <Head>
    tag any pointers pls..

    This forum is intended for user support, not for web development issues.
    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The contributors over there are more knowledgeable about web page development issues with Firefox.
    http://forums.mozillazine.org/viewforum.php?f=25
    You'll need to register and login to be able to post in that forum.

  • JavaScript working on local server but not remotely

    Hi,
    I'm using JavaScript for a gallery widget on our site.
    This works perfectly when testing locally, but when I upload it to our server the images are all there but the animation no longer works, When you click on a thumbnail, the slide image is just opened in a new window as a static image - the images should expand and then you should be able to navigate through each one.
    I've checked all the links to the JS folder and everything seems to be okay.
    Can anyone offer any advice or suggestions on what to look for?
    Thanks!

    Your three javascript files are not found at the location you have in the code -
    <script src="js/clearbox/config/default/cb_config.js" type="text/javascript">
    <script src="js/clearbox/language/en/cb_language.js" type="text/javascript">
    <script src="js/clearbox/core/cb_core.js" type="text/javascript">
    In addition, the clear box CSS is not found, either.
    <link href="js/clearbox/config/default/cb_style.css" type="text/css" rel="stylesheet">
    Did you upload them?
    In addition, I'm still seeing validation errors on the page -
    [Invalid] Markup Validation of http://www.underhillandsharp.com/test/gallery.php - W3C Markup Validator

  • Blog Post Links Won't Work

    Greetings!
    My blog post links at http://HealthyDayFitness.com/ won't work and I can't figure out how to remedy the problem.
    Any help would be greatly appreciated!
    Cheers!

    Thanks for the reply!
    I'm publishing to a folder and using FileZilla to upload the site. I simply click and drag all the files within my site folder onto the site. I did not click and drag the folder, because then it gives me the address http://HealthyDayFitness.com/HealthyDayFitness/Welcome.html. Looks messy in my opinion.
    I'm a little confused on what you mean by blank spaces on the page name... This is the blog page that works: http://healthydayfitness.com/Blog/Blog.html
    If you click on "First Post," that's when things go haywire, but I don't see any blank spaces in that broken URL.
    Any other thoughts? If not, I'll give the folder upload a try.

  • Blog post comments not working

    Hi there,
    I have a couple of sites, both set up with a blog:
    http://cyberworkshop.co.nz/blog/video-blog
    http://www.sjorakei.school.nz/blog/lorem_ipsum_dolor_3
    For some reason when you add a comment to either blog post this message appears:
    ERROR: An error occurred. Image verification failed. If you believe this is incorrect, please contact your system administrator or go back and re-submit the form.
    I definitely had comments working on the School site at one point and I cant figure out how to correct this.
    Any pointers on how to fix this would be most appreciated.
    Thanks, Ben

    Hi Ben,
    For the first site, it looks like captcha is commented out on the Blog Post Detail layout: http://screencasteu.worldsecuresystems.com/Florin/2013-10-20_1259.png
    On the second site, you also had a problem in the javascript on the blog post detail layout.
    I've corrected the Javascript now, and you get an error message pop-up when trying to submit a comment without filling in the captcha.
    Thanks,
    Florin

  • How do I link to a .pdf file in a blog post?

    I have a created a new blog post and want to link to a .pdf file.  I have the file loaded to the file manager but when I click on the link icon in the editor the only files that show up are web pages.
    Is there a way to link to a file other than setting up the link other than writing the HTML by hand?

    I totally agree with you on the confusion of that form for the literature module. Even after I have used it a lot I still find myself trying to upload the file at the same time. As you say - it only makes sense. But you'll get used to it. ;-)
    As far as the module way of doing it instead of coding it in, there is so much more flexibility this way. In your example you have one document which isn't bad ... but what if you had to list 100 documents in your page that are located in several different locations on the server? Now it's a simple task of adding one tag and your done.
    Other advantages:
    1: Your documents can be found in the site search
    2: Recods and displays file type and size to the viewer so they can choose to download it or not.
    There is more but after years of the individual code way, I so love this Literature Module and the flexibility it gives.

  • Post Migration from SP2010 -Attach File Button not working in any list new/edit forms

    Hi,
    We have migrated the SharePoint 2010 farm to Sharepoint 2013 on last saturday and we are noticing an interesting issue after the migration .
    On any custom list on any web application ,When we create a new item,if we click on attach file button in the ribbon,nothing shows up on the screen.
    In the browser Dev Tools its showing an error message as "Cannot read Property style of null".
    This is happening on a javascript (form.debug.js) on line No : 5276
    (document.getElementById("partAttachment")).style.display = "block";
    There is no element rendered in html with id "partAttachment",which is causing this error to happen.
    Solutions tried are
    1) Modified the List Advanced Settings to disable and enable the attachments ,which did not work
    2) Ran the Sharepoint Configuration wizard which did not fix 
    3)Tried reset the site definition for all pages in the site from site settings
    4) Deactivated and activated all the activated features in the site collection
    Its an OOB List New Form,no customizations has been done.
    Similar error occurring with List Edit form as well
     when you click on the List Item in the List default view when you navigate to the list and when you click on attach file,a popup dialog to upload attachments appearing,However its not working when you
    navigate into the list item and tried to upload attachment.
    Please help if any Solutions / thoughts 

    Hi Christopher,
    Thanks for your reply,
    Farm Information
    OS: Windows Server 2008 R2 SP1 Enterprise
    SQL: SQL 2008 R2 SP2 
    SP -SharePoint 2013 with no CU applied
    Method,we used is restored the content DB from SP2010 and attaching to SP2013 SQL Server
    Site Collection is in 15 mode
    It happens on new site collection even though its not migrated site.
    Server is 16GB RAM 8Core Processor
    If we create a new form from designer,attach file link is working
    OOB New form.aspx is having List Form webpart
    Custom New Form.aspx creaed with designer has data form webpart
    if we create a new sharpoint site collection in 2010 mode,its working fine without any issues
    Interestingly,all the javascript files loading were debug.js,Not sure how its loading all debug.js files

  • Links in linked local .htlm files work i IE, but not in Firefox.

    I collect genealogy data in tables in local .html files.
    Links in every .html page to parents, families and verifications.
    The first link works OK, but if I click on a link in the already linked .html page, Firefox hangs.
    Using links in this manner works OK when I use IE.
    If this problem is policy related, please advice a method to bypass the policy.

    mrs fed up wrote:
    > I've built most of my website and have put in all the
    links only to find that
    > none of my links, except to external websites work in
    Firefox. When viewed in
    > IE, they work just fine. I don't get it. Can someone
    help me. I'm about ready
    > to throw the computer out the window.
    >
    Let us see an url in order that we may see the problem and
    troubleshoot.
    chin chin
    Sinclair

  • Javascript is not working in the published file

    Hi ,
    I using the javascript in the captivate 5.5 to generate the text from variable in the textbox. It is working when I press the F12 button, But it is not working in the Published file.
    I called the function in the button and I written the script in the slide.
    Please let us know how to proceed..
    Thanks
    Sathish BC

    This is the Script I used in the captivate 5.5 and I called the text using variable in the text box.
    var objCP = document.Captivate;
    function valText()
    var a  = objCP.cpEIGetValue('A');
    var b  = objCP.cpEIGetValue('B');
    if (b>=5)
    objCP.cpEISetValue('B',0);
    GetAryVal(b);
    objCP.cpEISetValue('rdcmndGotoFrameAndResume', objCP.cpEIGetValue('currSlide'));
    function GetAryVal(e)
    var a1  = objCP.cpEIGetValue('Txt');
    var b1 = a1.split("#");
    var c1 = b1[e-1].split("$");
    objCP.cpEISetValue('C', c1[0]);
    objCP.cpEISetValue('D', c1[1]);
    valText();

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

  • Blog Post List - same date posts under one date listing (javascript?)

    Hello,
    I have six blogs set up for a website. I have the blogs summaries appearing on the home page and in the individual blog index sections. 
    I would like all blog summaries (with the same date) to appear under one date entry and not repeat the same date for each item. Tech Support says this is possible with javascript (as is most things it seems), but I do not know javascript.
    Please see example of Oct 15 on link below
    Can anyone help me out with some code or other recommendation for this?
    home page here - http://mortgageregscom.businesscatalyst.com/index.htm
    Individual blog example here - http://mortgageregscom.businesscatalyst.com/CFPB
    Thanks for your help!
    Lisa

    Just checking again to see if anyone has any ideas for my issue with blog post dates.
    Thanks in advance for your help!

  • Working with local files at c:\temp ...

    Hi!
    My report is working with local files (this is a must). I know that i can't use such a report in a planned job in the background. Are there nevertheless any options for me starting this report regularly in an automatic way? ...Perhaps on a pc which is always logged/switched on?
    Thanks in advance!
    Best regards,
    Ingo

    Hi,
    why didn't you check the sy-batch (test if it's a background job) ? 
    use the DIR_TEMP of the SAP server when it's a background job.
    to get the physical directory you could use this kernel function :
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_TEMP'
                         ID 'VALUE' FIELD searchpoints-dirname.
    (dirname is a CHAR 75)
    Rgd
    Frédéric

Maybe you are looking for

  • How to set default file extension in the FileChooser?

    We are trying to use the FileChooser but for some reason, it doesn't have any file extensions in the drop down menu (like in windows). Does anyone know how to put this in? Also, how do we set the file name for the saving file, rather than typing the

  • Applet with class path Problem

    Hi all, I am facing a strange problem: I wrote an applet and sign it tomake it able to access some client resources, my applet is intended to play audio mp3 files, so I need some libs like jmf.jar, if my libs do not exist I recieve them from my web a

  • IE Automatic Component Activation Now Available

    So apparently Microsoft has settled their issues with Eolas and Active X. What does that mean for AC_Quicktime javascript files? Ed

  • File explorer for 5530

    can somebody tell me where can i find or where can i download a file explorer app. for my 5530.. thanks in advance

  • How do you say it? Like "multi language only in the black level/plate"

    hello, I'm trying to find the best words to describe a feature of our new database publishing solution. The features is called: CMY+nK You need it when you are really committed to savings in a large print job. With http://pagination.com you can easil