JavaScript works until copied to another page ???

I'm trying to use a little JavaScript mortgage calculator
script. I have it
on a page by itself, and it works just fine:
http://carolinawebsolutions.com/carolinamornings/mortgage-calculator.htm
...but when I paste it onto an existing page with other code
on it, it
doesn't work.
The external JS file referred to on both pages is definitely
on the server.
I'm pasting the code carefully: in the <head>, a link
to the external JS
file and a <script> tag, and in the <body>, a
form.
But it doesn't work on this page:
http://carolinawebsolutions.com/carolinamornings/mortgage-calculator.cfm
Seems like something in the other code is causing it to fail.
Or else I've
done something wrong that I can't figure out.
Can anybody help? I'm truly baffled.. :\
Patty Ayers | www.WebDevBiz.com
Free Articles on the Business of Web Development
Web Design Contract, Estimate Request Form, Estimate
Worksheet

I never wore shoes like that.... 8)
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"P@tty Ayers" <[email protected]>
wrote in message
news:[email protected]...
> Or maybe this one:
http://www.murraythek.com/
:-D
>
>
> --
> Patty Ayers | www.WebDevBiz.com
> Free Articles on the Business of Web Development
> Web Design Contract, Estimate Request Form, Estimate
Worksheet
> --
>
>
>
> "Murray *ACE*" <[email protected]>
wrote in message
> news:[email protected]...
>> Definintely #1. 8)
>>
>> --
>> Murray --- ICQ 71997575
>> Adobe Community Expert
>> (If you *MUST* email me, don't LAUGH when you do
so!)
>> ==================
>>
http://www.dreamweavermx-templates.com
- Template Triage!
>>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
>>
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
>> ==================
>>
>>
>> "Bash **AdobeCommunityExpert**"
<[email protected]> wrote in message
>> news:[email protected]...
>>> Hmm.... Comparing Murray and I, not sure if I
should blush or cuss. ;^)
>>>
>>> Just for clarification, to which Murray am I
being compared? That makes
>>> a difference ya know. ;^)
>>>
>>> --
>>> Bryan Ashcraft (remove brain to reply)
>>> Web Application Developer
>>> Wright Medical Technologies, Inc.
>>>
>>> Macromedia Certified Dreamweaver Developer
>>> Adobe Community Expert (DW) ::
http://www.adobe.com/communities/experts/
>>>
>>>
>>> "P@tty Ayers"
<[email protected]> wrote in message
>>> news:[email protected]...
>>>> Hey Bryan - Great minds think alike,
apparently - your post came just
>>>> after Murray's, saying essentially the same
thing. Absolutely right,
>>>> and it's sorted now - thanks very much.
>>>>
>>>>
>>>> --
>>>> Patty Ayers | www.WebDevBiz.com
>>>> Free Articles on the Business of Web
Development
>>>> Web Design Contract, Estimate Request Form,
Estimate Worksheet
>>>> --
>>>>
>>>>
>>>>
>>>> "Bash **AdobeCommunityExpert**"
<[email protected]> wrote in
>>>> message
news:[email protected]...
>>>>> Apparently the problem is that you have
multiple onload events being
>>>>> called in different ways.
>>>>>
>>>>> You already know about the one for the
P7 menus as it is in the body
>>>>> tag, but there is one in the mortgage
calculator as well.
>>>>>
>>>>> onload=function(){
>>>>>
populateMenuFromArray(document.forms["mort"].years,range(1990,new
>>>>> Date().getFullYear()+1).reverse(),true);
>>>>>
document.forms["mort"].Calc.onclick=function(){
>>>>> if(checkInputs()){
>>>>> with(this.form){
>>>>> monthlyPayment.value=
>>>>>
toCurrency(getMonthlyPayment(prin.value,apr.value,12,yrs.value),"$");
>>>>> }
>>>>> }
>>>>> }
>>>>> }
>>>>> The P7 call is cancelling the calculator
call. Notice that the "years"
>>>>> select isn't populated in your cfm
version?
>>>>> Take alook at this page for ways to fix
the problem.
>>>>>
http://www.webreference.com/programming/javascript/external/2.html
>>>>>
>>>>> --
>>>>> Bryan Ashcraft (remove brain to reply)
>>>>> Web Application Developer
>>>>> Wright Medical Technologies, Inc.
>>>>>
>>>>> Macromedia Certified Dreamweaver
Developer
>>>>> Adobe Community Expert (DW) ::
>>>>>
http://www.adobe.com/communities/experts/
>>>>>
>>>>>
>>>>> "P@tty Ayers"
<[email protected]> wrote in message
>>>>>
news:[email protected]...
>>>>>> Aha!! It doesn't like the onload JS
in the body tag. Without that it
>>>>>> works.
>>>>>>
>>>>>> Now I have to figure out what to do
about that. Phooey. :-)
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Patty Ayers | www.WebDevBiz.com
>>>>>> Free Articles on the Business of Web
Development
>>>>>> Web Design Contract, Estimate
Request Form, Estimate Worksheet
>>>>>> --
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> "P@tty Ayers"
<[email protected]> wrote in message
>>>>>>
news:[email protected]...
>>>>>>> I'm trying to use a little
JavaScript mortgage calculator script. I
>>>>>>> have it on a page by itself, and
it works just fine:
>>>>>>>
>>>>>>>
http://carolinawebsolutions.com/carolinamornings/mortgage-calculator.htm
>>>>>>>
>>>>>>> ...but when I paste it onto an
existing page with other code on it,
>>>>>>> it doesn't work.
>>>>>>>
>>>>>>> The external JS file referred to
on both pages is definitely on the
>>>>>>> server.
>>>>>>>
>>>>>>> I'm pasting the code carefully:
in the <head>, a link to the
>>>>>>> external JS file and a
<script> tag, and in the <body>, a form.
>>>>>>>
>>>>>>> But it doesn't work on this
page:
>>>>>>>
>>>>>>>
http://carolinawebsolutions.com/carolinamornings/mortgage-calculator.cfm
>>>>>>>
>>>>>>> Seems like something in the
other code is causing it to fail. Or
>>>>>>> else I've done something wrong
that I can't figure out.
>>>>>>>
>>>>>>> Can anybody help? I'm truly
baffled.. :\
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Patty Ayers | www.WebDevBiz.com
>>>>>>> Free Articles on the Business of
Web Development
>>>>>>> Web Design Contract, Estimate
Request Form, Estimate Worksheet
>>>>>>> --
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>

Similar Messages

  • Javascript: to pass values to another page

    hi all,
    i hav an interactive report. if i clik on a particular row, that row values must be passed to an another page (via javascript)
    i found this forum https://forums.oracle.com/thread/2467579 in which they hav used it for sending mail.
    but i wanted to pass those values to another page throug javascript bz, i hav installed a plugin nd wrking from it under right clik.
    ma  javascript function  is,
    function func(action,el, pos)
       window.location ="http://apex.oracle.com/pls/apex/f?p=71510:2:&SESSION.:::2:P2_X,P2_X2:'+ $(el).children('td[headers="EMPNO"]').text() +  ',' + $(el).children('td[headers="ENAME"]').text()";
    here i hav redirected it to the 2nd page and in the 2nd page i hav used 2 items to get these values.
    $(el).children('td[headers="EMPNO"]').text() +        ------->  this is to fetch the empno of that particular row and similarly for the name.
    but if i click on the right clik button , no action is happening... 
    but its working fine, if i use the function as,
    function func(action,el, pos)
       window.location ="http://apex.oracle.com/pls/apex/f?p=71510:2:&SESSION.";
    so somewhere is going wrong in passing the values in URL i suppose....
    and i hav used al d above things in
    http://apex.oracle.com/pls/apex/f?p=71510:1 (username: test / paswrd: pex14gm)
    pls help me out.....
    thanks in advance

    Try like this.
    function func(action,el, pos){
        var empNum = $(el).children('td[headers="EMPNO"]').text();
        var eName  = $(el).children('td[headers="ENAME"]').text();
        window.location ='http://apex.oracle.com/pls/apex/f?p=71510:2:&SESSION.:::2:P2_X,P2_X2:'+empNum+','+eName;
    It looks simple and neat.
    If you still didn't get post me workspace details.

  • Javascript is not called in jsp page

    Hi,
    I have jsp page which actually redirect to another jsp page....
    I need to run some javascript code before redirecting to another page
    But it seems script got skipped & it goes to desired page
    code snippet:
    <%@ taglib uri="/ABCTaglib" prefix="AA" %><%response.setContentType("text/xml");%><AA:sitemap pagename="test" />
    <script type="text/javascript">
    alert("testing");
    </script
    String answerid = request.getParameter("answerid");
    String url = request.getParameter("url");
    response.sendRedirect(url);I am expecting an alert "testing" before redirect to another page.
    Thanks in advance

    Javascript is not java.
    Java/JSP runs on the server.
    javascript runs on the client, when the browser loads the page.
    As far as the server is concerned, all that javascript you have there is just template text to be echoed out in its response.
    A redirect will cancel the current response, and send a "redirect" response to tell the client where to go.
    Any output written to the response up until the redirect is discarded.
    If you want to pop up an alert, you actually have to return a response web page, with that javascript embedded in it, and then have that page navigate onwards to where you want to go (potentially using a meta refresh tag)

  • How do you copy, for example I work with blue prints and I want to copy a section and copy into another new page?

    How do you copy, for example I work with blue prints and I want to copy a section and copy into another new page?

    Forgot to add that it would be an adjustment layer with some kind of mask on it already. The mask is uncentered when copy and pasted which throws it off.
    I guess the same question would go towards doing the same for an object. How to copy and paste it over to a new doc, keeping its position within the document? is this possible?

  • Copy Table Format from One Pages Doc to Another Pages Doc

    I am just wondering if it is possible to copy an entire table from a Pages document and paste it to another Pages document.  Below is what I mean:
    [IMG]http://i11.photobucket.com/albums/a169/JedRaybould/D0A12B2B-F46F-4324-B343-4B9D6 05D52F5-1628-000000B89FCFF3A5_zps47983829.jpg[/IMG]

    I cannot see your link from the office here, but i just used copy/paste and it worked from one document to the other. no issues, table dropped right in.
    Jason

  • Copy single master page from one document to another?

    The answer to a previously posted question seems to involve creating a document differently (than I had). A lot of work went into the creation of the master pages in the original document which I will now need to recreate in the new document. Is there a way I can copy one master page from one document to another?
    Many thanks,
    Theresa

    There are a number of ways to do this.
    Create a copy of the document you want to copy the Master page from. Delete all pages except for the one you want (but you have to leave Right and Left alone as FM must always have these two pages available).
    Open the new document and the one that you want to import the master pages from.
    In the new document:
    Import from Document: (select the document with the Master Page that you want)
    then
    File > Import > Formats
    and select Page Layouts only.
    Note that Right/Left always come along for the ride.
    Alternative and probably best way to get a single Master Page:
    In new document, add a new Master Page and select "Empty".
    In the old document, on the desired Master Page, Select All on page (ctrl+A) and then copy (ctrl+v).
    In the new document on the new master page, paste (ctrl+v) to add the layout. Note: you may need to rotate the page first  if it isn't in the same orientation as in the old document.

  • Can I copy a Master Page from one document to another?

    Hi - this might be a basic question, but I haven't figured out the answer yet. I have one .muse site with a Master Page that I used... I want to use that same Master Page on another .muse site that I'm working on. Is there a way I can copy the Master Page from the finished site into the other one that I'm working on?? Any help is appreciated.
    Thanks,
    Blair

    Hi Blair,
    You should be able to do this by simply selecting (Ctrl+A) and copying (Ctrl+C) all content of the Master page of Site1 and Paste in Place (Ctrl+Alt+Shift+V) in the Master page of Site2.
    Thanks,
    Vinayak

  • How to Redirect to another page Using JavaScript in ADF Faces?

    Hi Guys,
    I have a UI user case that has a af:menu which contains mutiple af:goMenuItem. When user click on the menu, the menu slides down and shows up the af:goMenuItem. As we know, you could define the page destinations in af:goMenuItem to go to another page when user clicked, but af:menu itself cannot be redirected to another page. Well, the user case wants the menu itself could be redirected if user click on it.
    So I am thinking using JavaScript to do this: when the af:menu gets clicked, redirect to another page. BUT, I looked over the ADF Faces Javascript API and was not able to find that piece of code to do this. Any help???
    Another work around for the user case scenario is to use HTML marks + CSS/JavaScript instead of af:menu and af:goMenuItem but this changes the scope of technology although it's not hard to do
    Any other idea to accomplish the user case other than what I could think of ?
    Thanks Guys!
    Jay

    Hi,
    1 - you can have a hidden command item to do the navigation based on a control flow case. In this case, you access the command component from JavaScript create a new ActionEvent and queue it
    2 - JavaScript can use an af:serverListener to call into a server side managed bean method to perform the navigation
    there is no JavaScript API for navigation in ADF Faces because navigation in JavaServer Faces is an event driven framework and we don't support developers fighting the framework.
    Frank

  • How do you copy one page into another pages 5.2 doc

    Working in version 5.2 and want to add (copy) one page from one pages document into another pages document. (both documents are made w 5.2)
    Thanks!

    You could copy and paste pages from one document to another in Pages '09, but Apple removed this from Pages 5.
    Best you can do is copy the content.
    Peter

  • Apple TV worked until today. Message says unsupported signal check your output device.  I have checked hdmi cable with another device and it's fine. Put on a different tv and same message.  Went out yesterday and bought a new Apple TV and same problem.

    Apple TV worked until today. Message says unsupported signal check your output device.  I have checked hdmi cable with another device and it's fine. Put on a different tv and same message.  Went out yesterday and bought a new Apple TV and same problem.

    Which TV do you have.
    You may wish to try the following:
    Press and hold the menu and the up button simultaneously on the remote for six seconds, the Apple TV should then begin to cycle through the various resolutions available to it at 20 second intervals.. If you see a picture appear up on your screen, use the remote to scroll down to the OK option and select it.

  • Assigning video files uploaded via a customer form to the src file section of another page (without manually having to copy an paste over)

    Hi. I’ve set up a web form that uses html and javascript. This particular form lets you upload files. I also have another page that lets you play videos. I was wondering if anyone knows how to make the inner html of for example the upload file form field equal the file that is played by the video player on the other page.
    Basically on youtube when you upload a video it automatically makes another page with the video file you uploaded assigned to the video player on that page. I want to know how to go about doing that. So people can upload videos and then be able to watch them instantly without me manually having to create the page an assigning the right file to the page.
    Even just knowing how to create a different page each time the form is submitted would be helpful. Thanks.

    This is more complex than you realize and JavaScript alone can't do it. You'll need a server-side script like PHP to authenticate and sanitize file uploads to prevent malicious scripts or malware from ever getting to your server.  Then, your script will have to process the uploaded file by saving it to a folder or database, give it a unique ID and then redirect users to a new page that pulls the file into an HTML5 or similar player.  How good are you with server-side programming?
    Nancy O.

  • How to programmatically copy a OneNote page from one section to another

    How to programmatically copy a OneNote page from one section to another.
    I don't find any interface in OneNote
    2010 Developer Reference which will let me do this.
    any help?
    Regards,
    Umar
    OneNote 2010

    Hi Umarinam,
    Thank you for posting in the MSDN Forum.
    In the page OneNote 2010 Developer Reference, you can see an Application Interface which includes methods
    help retrieve, manipulate, and update OneNote information and content. 
    The below are some basic samples 
    Retrieving Section Metadata in OneNote 2010
    Programmatically Opening and Closing a Notebook in OneNote 2010
    Hope it helps. 
    Best regards,
    Quist Zhang [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Copy a publishing page from one Web Application to another

    can we copy a publishing page from one web application to another. 
    If we download a copy from pages library of one web application and upload it to another library of other Web application.
    Once uploaded it came up with an error "This page is not using a valid page layout.  To correct the problem, edit page settings and select a valid page layout.".

    It seems like the page layout is missing in target location. Check similar thread below to solve the issue
    http://social.msdn.microsoft.com/Forums/en-US/99c24657-0297-4a5c-8600-467bb6ea57d6/this-page-is-not-using-a-valid-page-layout-to-correct-the-problem-edit?forum=sharepointdevelopmentprevious
    shipoint.com/2014/03/28/fixing-this-page-is-not-using-a-valid-page-layout-to-correct-the-problem-edit-page-settings-and-select-a-valid-page-layout-error-in-sharepoint-2010/
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • Trying to copy a single page from one Adobe Muse site to another Adobe Muse site?

    Is there a way to copy a single page from one site to another within Muse (both muse sites)?  What exactly does the "Export Page" direction do?  I can't seem to determine how to "import" that page?

    Hi
    By default there's no automated way to move page from one site to another within Adobe Muse. However, you may manually copy the content of the page and paste in place on the new page you created in another  muse site.
    You may want to look to this short video how you may copy the content and paste in place :   http://screencast.com/t/lULpqvGCt
    As far as your another query is concerned, the export page option you see as shown below :
    is used when you publish the site to the hosting service and if you un-check this option the page won't be uploaded to the hosting service or won't be exported.
    I hope this information helps. Let me know if you have any further query related to this.
    Regards
    Anshul

  • Would crtl+f work or is there another way to search or quickly hyperlink to different sections on the page?

    We have a very long extended data tab full of custom sections and we would like to be able to give a user a way to search the page quickly.
    Would crtl+f work or is there another way to search or quickly hyperlink to different sections on the page?

    I don't know enough about your use case to provide specific direction but you may be able to use the 6.1.1 UI extensibility point.  For example, you could add an anchor link collection control that scrolls the page to the top of each section when selected. 

Maybe you are looking for

  • IPod Nano not recognized by Windows

    Thousands of others have posted about this problem on this and other websites. When I plug-in my iPod, Windows provides a message that it is an "unrecognized USB device". (This happens in XP and Vista.) Device Manager shows lists it as an Unrecognize

  • Can't create Adobe PDF printer on Win7 64 bit

    I'm running a newDell Optiplex 990 with Windows 7 64 bit in a large company. Our IT guy just installed CS6 and everything seems to work fine -- EXCEPT - when we go to Devices and Printers/Add printer, there's no Adobe PDF driver (are they still calle

  • SAP MM Certification Info

    Hello Everyone! I appreciate if somebody can send me through the required material or mock tests in order to practice for my certification exam in MM. Thanks in advance. BP

  • 9i Migration to 11g

    Morning all, We are contemplating a move from 9i to 11g when 11gR2 comes out. It was my understanding that there was a specific course being developed for just this topic. has anyone done a migration to 11g from 9i and if so, can you give me the high

  • Memory aloocation Error while using UPV equipment

    Hi, While i running Audio Test scenario using UPV  (Audio Test equipment @ http://www2.rohde-schwarz.com/product/upv.html) I got after 4 hours that message (attached). Need help to understand the motive of that message. TNX, Shmulik dekel Texas Instr