Javascript codes not working as they should in version 7

I have a website that is working fine with version 3.6.9, now it is not working as it should be with version 7. My files containing javascript codes, the links in the codes are broken when am registering some controls using the <%@ Register .... /> tag.
for example:
i have the following code:
<%@ Register Src="~/Controls/TempMenu.ascx" TagName="TempMenu" TagPrefix="uc1" %>
now, whenever I click on any button in the page, instead of redirecting me to an existing page within the same folder, it will go to the "controls" folder and search for the page there...
Please help.

A good place to ask advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.<br />
The helpers at that forum are more knowledgeable about web development issues.<br />
You need to register at the mozillaZine forum site in order to post at that forum.<br />
See http://forums.mozillazine.org/viewforum.php?f=25

Similar Messages

  • Client Side Javascript Validation not Working in Struts 1.x version

    hi,
    I'm following the steps provioded in the below link for Javascript Client side validation but still it is not working.I'm struggling to get this work.
    [http://www.visualbuilder.com/jsp/struts/tutorial2/pageorder/9/|http://www.visualbuilder.com/jsp/struts/tutorial2/pageorder/9/]
    "The framework automatically generates the browser specific JavaScript and validate the data only at the client side."From the above statement i undertstand that framework itself generates the javascript function for validating the field mentioned in validations.xml file so that we dont have to explicitly write a javascript function for
    validating the fields
    (or)
    Do we need to call an explicit function
    Please need help on this.
    I have followed all the steps mentioned on the above link but Client Side Javascript Validation not Working in Struts 1.x version....
    Thanks and Regards,
    Deepak

    Hi,
    Please find my steps below....still getting an error.
    2> which version of commons-validation.jar needs to be downloaded ...Link please
        downloaded the latest commons-validation.jar and placed in lib.refreshed the project,and did a build.
        3> which DTD name to be specified in "validator-rules.xml" which is in accordance to commons-validator.jar file.
    validator-rules.xml ::
    <!DOCTYPE form-validation PUBLIC
              "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN"
              "http://jakarta.apache.org/commons/dtds/validator_1_0.dtd">validation.xml:
    <!DOCTYPE form-validation PUBLIC
    "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN"
    "http://jakarta.apache.org/commons/dtds/validator_1_0.dtd">
    i did as u said and im gettiong the below errorNov 5, 2009 4:33:08 PM org.apache.struts.validator.ValidatorPlugIn initResources
    SEVERE: Invalid byte 2 of 2-byte UTF-8 sequence.
    org.apache.commons.digester.xmlrules.XmlLoadException: Invalid byte 2 of 2-byte UTF-8 sequence.
         at org.apache.commons.digester.xmlrules.FromXmlRuleSet.addRuleInstances(FromXmlRuleSet.java:139)
         at org.apache.commons.digester.Digester.addRuleSet(Digester.java:1610)
         at org.apache.commons.digester.xmlrules.DigesterLoader.createDigester(DigesterLoader.java:89)
         at org.apache.commons.validator.ValidatorResourcesInitializer.initialize(ValidatorResourcesInitializer.java:122)
         at org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugIn.java:238)
         at org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:181)
         at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1036)
         at org.apache.struts.action.ActionServlet.init(ActionServlet.java:455)
         at javax.servlet.GenericServlet.init(GenericServlet.java:212)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
         at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:927)
         at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:890)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
         at org.apache.catalina.core.StandardService.start(StandardService.java:448)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
    Need help forum members.....
    Please reply to my question 1  which has been asked before as belowDo i need to write explicit javascript function for validation in Struts (or) struts generates the javascript function by itself.??? Please explain with an example....
    Edited by: Deepak_A_L on Nov 5, 2009 4:37 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Function keys does not work as they should.

    The function keys has worked as they should since I bought the computer.
    When I turned on the computer yesterday, the function keys didn't work as they should.
    Example: 
    Before: When I hit the F5, the light in my keyboard was turned on/off. When I hit Fn + F5, I refreshed the browser page.
    Now: When I hit the F5, I refresh the browser page. If I hit Fn + F5, I still refresh the browser page.
    I used to control the volume on the computer with F6-8, but now I have to click the speaker icon in the lower right corner and manually "drag" the volume up or down.
    Does anyone know how this can be fixed?

    Hi @Andy19955 ,
    Please try disabling Action Keys Mode in the BIOS, using the steps in this document:
    Disable the Fn + Function Key Combination on Certain Models
    Please click the thumbs up button to say "Thanks!"
    Clicking "Accept as Solution" on a reply that solves your problem makes it easier for other people to find solutions.
    I am an HP employee.

  • Custom Javascript code not working in Safari

    Hello.
    I'm trying to get some javascript to work properly in Safari. The script works fine in Windows IE for and Firefox on both platforms, but Safari it just doesn't work.
    If you look here:
    http://robsimonsen.com/film.html
    and click on the Tides mp3, you will see that the track loads in an iframe right next to it. No javascript is used in the live version. Unfortunately, for some reason, it doesn't work in any other browser- just Safari. So in trying to figure out how to make it work the same in all browsers, some custom javascript code was created to accomplish the same thing:
    http://robsimonsen.com/film4.html
    but it doesn't work in Safari- just every other browser.
    Can anyone help me figure out what's going on?
    Dual 1Ghz G4 MDD   Mac OS X (10.3.9)  

    document.all is audi 5000. use document.getElementById() instead. this seemed to work:
    document.getElementById('plotz').src ="mp3s/Tides.mp3"
    and changing iframe...name=plotz to ...id=plotz
    ibook g4     OSX.4.x

  • Firefox devs are total ditzes.. firefox wont intstall, hassel to register from site, things not working as they should.

    1) Firefox will not upgrade or install. During the install process a window pops up asking me to choose between ADMINISTRATOR or CURRENT USER. Does not matter which radio button I select, the popup goes away, the install process just quits. Have unininstalled, used Ccleaner, done every possible thing.
    2) Firefox does not seem to recognize basic html code. Cannot use firefox when creating a site, because it will not even recognize the basic command for a non scrolling background, I have to check my site pages with Microsoft IE... oh my gosh. Microsoft? Really? Back to that?
    3) Had a horrible time registering on the support site. No register button. Finally figured out how to do this using sync
    ( datamining up there on the highly accessible cloud for the govt and anyone who wants to see our files? Not me, no thank you!) I digress. After finally registering & confirming email, I go to sign in and it tells me it cannot sign me in because of invalid user name or password... really? Looks like my favorite old standby browser will no longer be used.

    Additional information - according to the wiki you pointed me to, it was correct to uninstall flash using Windows control panel. I am very sure that I already had the latest version installed from the beginning, because Flash player pointed me to an update on Windows start (as usual) several days ago.
    The error clearly lies with FF, since despite an up to date Flash player it decided it wants it new - something to do with the blacklist? How can it tell, that its outdated, if it does not find it and not show it in the list of plugins?
    There is something fishy here...

  • My ipods internet doesnt look how it should , and my app store will not work at all , should i bring it to the apple store to see what they say ?

    my ipods internet doesnt look how it should , and my app store will not work at all , should i bring it to the apple store to see what they say ?

    What do you mean by "my ipods internet doesnt look how it should"?
    What happens when you try to use the App store? Error message?

  • Javascript is not working in JSP

    Hi everybody,
    My javascript is not working in JSP.I m not able to fix this problem.Please tell where the problem in code.
    thx in advance.
    <%@page import="javax.servlet.http.*" %>
    <%@page import="java.sql.*" %>
    <html>
    <head>
    <script type="text/javascript" >
    funtion checkentries()
    if(document.LForm.uname.value==null || document.LForm.upassword.value==null)
    alert("Please fill all entries")
    else
    document.LForm.submit()
    </script>
    </head>
    <body>
    <table width=100% height=100% valign="center" align="center" border=0>
    <tr height=10% ><td>
    <%@ include file="Header.jsp" %>
    <hr>
    </td></tr>
    <tr height=1% width=100%>
    <td align=right>Register
    <hr>
    </td>
    </tr>
    <tr height=77% width=100% ><td>
    <table>
    <tr><td width=65%>
    </td>
    <td bgcolor="black" width="1" ></td>
    <td align="right" valign="top" >
    <form method="POST" action="/EIS/Home.do" name="LForm">
    User Name: <input type="text" align=right name="uname"><br>
    Password: &nbsp&nbsp&nbsp<input type="password" name="upassword"><br>
    <input type="submit" name="submit" value="Submit" onclick="checkentries()">
    </td>
    </tr>
    </table>
    </td></tr>
    <tr height=10% ><td>
    <hr>
    <%@ include file="Footer.jsp" %>
    </td></tr>
    </table>
    </body>
    </html>

    in this part:
    if(document.LForm.uname.value==null || document.LForm.upassword.value==null)should be:
    if(document.LForm.uname.value=="" || document.LForm.upassword.value=="")or
    if(document.LForm.uname.value.length==0 || document.LForm.upassword.value.length==0)

  • Need help with adjusting Javascript code to work in Adobe Edge (Countdown)

    Hello
    Im a newbie when it comes to working with Javascript and Adobe Edge and need a bit of help with adjusting some javascript code to work with Adobe Edge. A friend of mine helped me with making this javascript code: Edit fiddle - JSFiddle
    Its a simple countdown which counts down to a certain time at a certain date. What I aim to do is to add this code as a trigger on a text-element called "countdown" (within a symbol called "count").
    I have tried to do this as the code is, but it does not work. Anyone have any suggestions?
    Thanks!
    Mvh,
    Øyvind Hermans

    Hello again
    I have stumbled upon a problem with these animations; They crash the browser after viewing them a little while, usually less than 30 seconds in.
    Is this problem also occuring when you watch the animations?
    Is the countdown-code to much for the browsers to handle?
    Thanks in advance for your answers.
    Sincerely,
    Øyvind Hermans

  • TS4057 I did this and now my videos are not working. They show the pictures aren't there on some and on others it shows they are there, but doesn't show them in the player. When I try to Share anything it just says Waiting for Processing for hours. What d

    I did this and now my videos are not working. They show the pictures aren't there on some and on others it shows they are there, but doesn't show them in the player. When I try to Share anything it just says Waiting for Processing for hours. What do I do?
    I also got Motion and can't figure out how to use it with Final Cut Pro X. Any help woud be great. Thanks

    I have no idea what may have caused your MacBook to stop working, but from your description it kind of sounds like it may have started before you ran Software Update and installed the new Apps. Just the general slow feeling and bugginess is what tips me off. You said that you weren't sure if you had closed all open windows, that doesn't matter if the computer restarts itself. It automatically closes all other open applications when restarting.
    As to your data being retrievable, if when you take it in they do a fresh install of the OS, then no, it will not be unless you want to pay several thousand dollars to a software retrieval company.
    I am glad to hear that you have taken into the Apple Store to get it fixed, and that you have all of your purchased music backed up to your iPod. You should be able to just transfer it all back to iTunes once you get your computer back should it be necessary.
    As a side note, the proper place for this topic would probably in the MacBook forums, not iTunes since there is no evidence that iTunes started the issue.

  • Updated Acrobat and now Javascript calculations not working in new forms.

    I had created forms for my work that allowed me to calculate back dates from a given date to instruct the form users when components of a project were due. Below is the script I used- I am NOT a programmer and this was taken from another forum. It has worked successfully for 2 years in both Acrobat 9 & 10 and in various forms I have made.
    var strStart = this.getField("0VendorArtApproved-2wk").value;
    if(strStart.length)
      var dateStart = util.scand("mmm d, yyyy",strStart);
      var oneDay = 24 * 60 * 60 * 1000;
      var dueMillis = dateStart.getTime() - 21 * oneDay;
      var dueDate = new Date(dueMillis);
      event.value = util.printd("mmm d, yyyy",dueDate);
    else
      event.value = "NA";
    "0VendorArtApproved-2wk" is the field the previous date was taken from- this and the amount of days "- 21" changes from field to field. This form has 3 levels that it calulates dates from- which starts with a single initial date entered into a text box by the user. This allowed the user to see when different elements of a project were due. Sorry if this seems basic to all the Javascript masters but I am really very clueless on prgramming speak and only know what I have read from forums.
    The last version of the form that worked successfully was in Oct 13', I went to create a new form and copied these formula boxes to a new form and now half of them do no work.
    I have rechecked my formulas and formatting and cannot find and issue. They are exactly the same. One works and one does not. The only thing I can see different from the 2 forms is that I am certain there were 1 or 2 updates to the Acrobat software itself that could possibly have caused an issue.
    So I have 2 documents- 1 created in October 13' that works and one created today Jan 14' that does not work. They have the same formulas.
    Anyone aware of changes to Acrobat or errors in my formula that could have caused this? I am in version 10.1.9

    Applied this fix. There was an error in the NEW document. I redid the formulas in the NEW document and that did not work. Still had the same problem. 
    SO I went back and redid the formulas in the fields in the OLD document to the revision I needed and that worked. All I was trying to do was tweak the number of days between one element and the next in this area and there were a bunch of other revisions to the form so I figured it was easier to start fresh.  I will just make all the revisions to the OLD document- which will be a lot of work, but at least my formulas are working. Not an ideal fix but something must have been glitchy in the new document and I now have a workable form.
    I believe some kind of odd interaction happened when I copy and pasted the fields from document to another.
    Thank you so much for your help! I am days away from maternity leave so I had to get this figured out fast!

  • HT4061 I dropped my phone in the toilet and now is not working.   What should I do?

    I dropped my phone in the toilet and now is not working.   What should I do?

    Put in in a bag of dry rice for a few days and see if that drys it out. Don't be surprised if it doesn't. You may need to take it to an Apple Store. They will offer you a replacement at a reduced price
    Hope that helps

  • The "alt, ctrl and shift" on the left side of my keyboard keys integrated notebook did not work. What should I do?

    The "alt, ctrl and shift" on the left side of my keyboard keys integrated notebook did not work. What should I do?

    Hi Luis Fernando Garcia,
    Thanks for using Apple Support Communities.  This article has troubleshooting for keys not working on your keyboard:
    One or more keys on the keyboard do not respond
    http://support.apple.com/kb/ts1381
    Some keys don't work as expected
    From the Apple menu, choose System Preferences.
    From the View menu, choose Speech.
    Click the Text to Speech tab.
    If "Speak selected text when the key is pressed" is enabled, the key or key combination set to speak text cannot be used for other purposes or used to type text--click Set Key and change it to a less-commonly used key combination (try to use modifier keys such as Shift, Command, Option, and Control). Or, disable the "Speak selected text when the key is pressed" option.
    Click the Universal Access pane in System Preferences, click the Keyboard tab.
    Make sure that Slow Keys is turned off. With Slow Keys on, you need to press a key for a longer period of time for it to be recognized.
    In the Universal Access pane, click the Mouse tab, and make sureMouse Keys is turned off. With Mouse Keys enabled, you cannot use the Numeric Keypad to enter numbers--instead the keypad moves the pointer (cursor). (There is an option to enable Mouse Keys with five presses of the Option key; you may want to turn that option off to avoid accidentally enabling it.) If Mouse Keys is enabled and you are using a keyboard with no numeric keypad or Num Lock function, seeUnable to type while Mouse Keys is enabled in Mac OS X.
    If the function keys on the top row of the keyboard are not working as expected, see Mac OS X: How to change the behavior of function keys.
    If the issue persists, use Keyboard Viewer to help isolate the issue:
    Click the Language & Text pane (Mac OS X v10.6) or International pane (Mac OS X v10.5.8 or earlier) in System Preferences.
    Click the Input Sources tab (or Input Menu tab in Mac OS X 10.5.8 or earlier).
    Click the Keyboard & Character Viewer "On" checkbox to select it (click the Keyboard Viewer "On" checkbox in Mac OS X 10.5.8 or earlier).
    From the Input (flag) menu, choose Show Keyboard Viewer.
    If the keyboard is connected and detected by Mac OS X, the keys you type will highlight in the Keyboard Viewer window. Open TextEdit (or any text application), and try to type something using the keys that were previously not responding to see if they highlight in Keyboard Viewer.
    Cheers,
    - Ari

  • My iphone 5 lock button is not working. What should I do??, My iphone 5 lock button is not working. What should I do??

    My iphone 5 lock button is not working. What should I do now? I bought it in feb 2012

    Hi Atique ur rehman,
    Thanks for your query.
    If the sleep wake button on your iPhone is unresponsive, first try and reset all setting by going to Settings>General>Reset>Reset All Settings.
    If this does not resolve the problem, I would sound more like a hardware based issue.
    I would recommend that you contact AppleCare so they can run further tests and diagnostics to help you solve your solution better.
    If you can also access an Apple Store Genius Bar or Apple Authorized Service Center, that would be much better.
    Go to https://locate.apple.com/country for further support with your device!
    Thanks,
    KL

  • HT5654 Just tried 3 times to update iTunes on my PC running Vista.  There was an error.  It stopped the installation.  Now iTunes will not start at all.  The error message tells me to reinstall which I tried but did not work.  What should I do?

    Just tried 3 times to update iTunes on my PC running Vista.  There was an error.  It stopped the installation.  Now iTunes will not start at all.  The error message tells me to reinstall which I tried but did not work.  What should I do?

    Hello, Jdragone. 
    Thanks for the question.  Start with completely uninstalling iTunes and all of it's components in the order specified in the article below.  Once this is done, download and install iTunes.
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    http://support.apple.com/kb/HT1923
    If you receive any errors when uninstalling any components of iTunes, try the steps in the article below for each component that gives you an error.
    "The feature you are trying to use is on a network resource that is unavailable" alert appears when removing Apple software in Windows
    http://support.apple.com/kb/TS3704
    Cheers,
    Jason H.

  • Creative cloud photoshop blur tool not work as it should be

    creative cloud photoshop blur tool not work as it should be !
    I go to blur a painting i am doing and it does not blur enough and I am using wacom Intuos 5 med pen tablet.
    and I even set the tablets sensitivty for pressure lower then default and still not getting the blur tool to do its job.
    I even adjusted the brush settings too to be able to blur even more on hard settings, still nothing.
    at least it not bluring enough to see any major changes.
    the only way i can blur anything is by using the fliters blur or the brushes ( mixer brush ) settings to mix colors and do it that way.
    (note) I will not post my systems specs sorry I don't do that and even the tech from adobe said I do not have to. and so I wont !
    just need advise not to share system specs.
    and thats what this forums board is for getting advice and read what others say about the issue at hand.
    it's not to post or share system specs  !!!
    so with that out of the way I need advice only please ?

    Hi,
    It might be your image is too big in terms of pixel dimensions for the blur tool to work well.
    If you zoom to 100% do you see any change when using the blur tool?
    What are the pixel dimensions of the image?
    (Image>Image Size)
    If you try a small image, does the blur tool work?
    What about when you use the mouse instead of your tablet?
    Can you at least tell us what operating system and version of photoshop your using?

Maybe you are looking for

  • Just wanted to say thanks for CS6 enhancements.

    Been using CS6 PPro since I downloaded trial earlier. Vast improvement on CS5 for me on my Mac Pro Mid 2010 12GB Ram 2.8Ghz OSX 10.7.3. Love the fact the work area can be disabled and I can select and render in to out for more complicated fx laden se

  • Issues Installing/Uninstalling QuickTime

    I've tried everything I could think of to uninstall QuickTime (because I need to install the new version). I tried going QuickTime > Uninstall Quicktime. Didn't work. I tried going to Add/Remove Programs. I downloaded a force uninstaller from the int

  • How to get the start time and date

    Hi everyone! I have a question ,who will be glad to help me! Thanks in advance! As we know ,when we finish the UUT test ,it generate report . The report format maybe like"SeqFileName_Report[Time][Date]_00001.xml" My question is"how can I get the [Tim

  • What team-based development tool can you recommend?

    Our team works on a Windows 2000 platform and an Oracle 8i database. Can anyone recommend a good team-based development tool that we can use with our JDeveloper? What about tools like webDAV, Rational ClearCase? Are they easy to use and easy to deplo

  • Macbook Pro Freezes After Activating Mission Control

    I am updated currently to 10.7.4, and I am having a problem that could not be duplicated after a 4 day stay at my local Apple store. Basically the computer freezes up and becomes unresponsive. The last two times it has happened, I noticed (Possibly a