The javascript code which is working on safari is not working on firefox. When I debugged it from HTTPFOX it gave NS_ERROR_DOCUMENT_NOT_CACHED error

I have a javascript code which is working fine with safari but not working at all in firefox. The code is
<pre><nowiki><html><head></head>
<body>
<button type="button" onClick="handleButtonClick();">undo</button>
<button type="button">redo</button>
<select><option value="V1">V1</option>
<option value="V2">V2</option>
<option value="V3">V3</option>
<option value="V4">V4</option>
<option value="V5">V5</option></select>
<script type="text/javascript">
function handleButtonClick(){var xmlHttp, handleRequestStateChange;
handleRequestStateChange = function() {if (xmlHttp.readyState==4 && xmlHttp.status==200) { var substring=xmlHttp.responseText; alert(substring); } }
xmlHttp = new XMLHttpRequest();
xmlHttp.open("GET", "http://csce.unl.edu:8080/test/index.jsp?id=c6c684d9cc99476a7e7e853d77540ceb", true);
xmlHttp.onreadystatechange = handleRequestStateChange; xmlHttp.send(null);}
</script>
</body>
another I am getting this also in url text/html (NS_ERROR_DOM_BAD_URI)
</html>
</nowiki></pre>
Whats going wrong I can't figure out. Kindly suggest... I am struggling with this for last few days..

Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. <br />
http://forums.mozillazine.org/viewforum.php?f=25 <br />
You'll need to register and login to be able to post in that forum.

Similar Messages

  • Input type="image" only works in Safari, but not IE or Firefox?

    Having accidentally discovered a form on a site I am working on was only working in Safari, I've just spent about five hours retracing my steps, before eventually discovering that the code that was making the form fail was my submit code.
    The page I was looking at had quite a bit of validation, CAPTCHA code and some jQuery to style some drop downs, so I figured something there was the issue.
    But it turned out just to be the submit button.
    I've just tried it on my contact page, and its failing in Firefox (Mac) too (and so I assume IE as well.)
    Should this work, or is using input type="image" on a form submit button a big no no?
    This code works:
    <input type="submit" name="KT_Insert1" id="KT_Insert1" value="Post your query" />
    But this code does not work (except, it seems, in Safari):
    <input name="KT_Insert1" type="image" id="KT_Insert1" onmouseover="MM_swapImage('KT_Insert1','','../images/buttons/post_enquiry2.jpg',1)" onmouseout="MM_swapImgRestore()" value="Post your query" src="../images/buttons/post_enquiry1.jpg" border="0" />
    Or am I missing something here?

    Thanks for that - might have realised this a lot earlier if it didn't work in Safari!
    I assume I just need some CSS like:
    .formbutton
      background-image: image1.jpg;
    .formbutton :hover
      background-image: image2.jpg;
    And:
    <input type="submit" name="KT_Insert1" id="Send" value="Send message" class="formbutton" />

  • Forwarded to godaddy domain. works on safari but not explorer or firefox

    I finally figured how to use my website so that when you type in the domain it redirects to the mobile me website. However, it is working just great on safari but not on explorer or firefox.

    I have always used GoDaddy's forward and masking utilities and its worked great. When Apple updated iWeb to 08 with the ability to auto forward, I had lots of issues and thus went back to setting up my GoDaddy preferences to auto-forward and mask my site. GoDaddy has the very best phone support on the planet which makes up for one of the worst websites on the internet. Call them up and have them walk you through auto-forwarding and masking. Check out my site at: www dot jennifersheehan dot com. Hope that helps

  • A Problem with the JavaScript Code can anybody help me

    Hi every body,
    I prepared a html page using the following code, which i grab it from some web site, and used it in my web project,
    but the code that is not working and it is showing some javascript error, can anybody correct it for me please, the code is as follows
    <html>
    <head>
    <title>Contact Form</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <style type="text/css">
    // CSS goes here
    </style>
    <script language="JavaScript">
    function checkForm()
       var cname, cemail, csubject, cmessage;
       with(window.document.msgform)
          cname    = sname;
          cemail   = email;
          csubject = subject;
          cmessage = message;
       if(trim(cname.value) == '')
          alert('Please enter your name');
          cname.focus();
          return false;
       else if(trim(cemail.value) == '')
          alert('Please enter your email');
          cemail.focus();
          return false;
       else if(!isEmail(trim(cemail.value)))
          alert('Email address is not valid');
          cemail.focus();
          return false;
       else if(trim(csubject.value) == '')
          alert('Please enter message subject');
          csubject.focus();
          return false;
       else if(trim(cmessage.value) == '')
          alert('Please enter your message');
          cmessage.focus();
          return false;
       else
          cname.value    = trim(cname.value);
          cemail.value   = trim(cemail.value);
          csubject.value = trim(csubject.value);
          cmessage.value = trim(cmessage.value);
          return true;
    function trim(str)
       return str.replace(/^\s+|\s+$/g,'');
    function isEmail(str)
       var regex = /^[-_.a-z0-9]+@(([-_a-z0-9]+\.)+(ad|ae|aero|af|ag|
    ai|al|am|an|ao|aq|ar|arpa|as|at|au|aw|az|ba|bb|bd|be|bf|bg|
    bh|bi|biz|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|
    ch|ci|ck|cl|cm|cn|co|com|coop|cr|cs|cu|cv|cx|cy|cz|de|dj|dk|
    dm|do|dz|ec|edu|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|
    gd|ge|gf|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|
    hr|ht|hu|id|ie|il|in|info|int|io|iq|ir|is|it|jm|jo|jp|ke|kg|
    kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|
    ma|mc|md|mg|mh|mil|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|museum|
    mv|mw|mx|my|mz|na|name|nc|ne|net|nf|ng|ni|nl|no|np|nr|nt|nu|
    nz|om|org|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|pro|ps|pt|pw|py|qa|
    re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|
    su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|tn|to|tp|tr|tt|tv|tw|tz|
    ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|
    zm|zw)|(([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5])\.){3}([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5]))$/i;
    return regex.test(str);
    </script>
    </head>
    <body>
    <form method="post" name="msgform">
    <table width="500" border="0" align="center" cellpadding="2" cellspacing="1" class="maincell">
    <tr>
    <td width="106">Your Name</td>
    <td width="381"><input name="sname" type="text" class="box" id="sname" size="30"></td>
    </tr>
    <tr>
    <td>Your Email</td>
    <td>
    <input name="email" type="text" class="box" id="email" size="30">
    </td></tr>
    <tr>
    <td>Subject</td>
    <td><input name="subject" type="text" class="box" id="subject" size="30"></td>
    </tr>
    <tr>
    <td>Message</td>
    <td><textarea name="message" cols="55" rows="10" wrap="OFF" class="box" id="message"></textarea></td>
    </tr>
    <tr align="center">
    <td colspan="2"><input name="send" type="submit" class="bluebox" id="send" value="Send Message" onClick="return checkForm();"></td>
    </tr>
    <tr align="center">
    <td colspan="2"> </td>
    </tr>
    </table>
    </form>
    </body>
    </html>

    function isEmail(str)
       var regex = /^[-_.a-z0-9]+@(([-_a-z0-9]+\.)+(ad|ae|aero|af|ag|
    ai|al|am|an|ao|aq|ar|arpa|as|at|au|aw|az|ba|bb|bd|be|bf|bg|
    bh|bi|biz|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|
    ch|ci|ck|cl|cm|cn|co|com|coop|cr|cs|cu|cv|cx|cy|cz|de|dj|dk|
    dm|do|dz|ec|edu|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|
    gd|ge|gf|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|
    hr|ht|hu|id|ie|il|in|info|int|io|iq|ir|is|it|jm|jo|jp|ke|kg|
    kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|
    ma|mc|md|mg|mh|mil|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|museum|
    mv|mw|mx|my|mz|na|name|nc|ne|net|nf|ng|ni|nl|no|np|nr|nt|nu|
    nz|om|org|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|pro|ps|pt|pw|py|qa|
    re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|
    su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|tn|to|tp|tr|tt|tv|tw|tz|
    ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|
    zm|zw)|(([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5])\.){3}([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5]))$/i;
    return regex.test(str);
    Remove all enter sequences inbetween lines in the above function. It vl work.
    All d Best :-)

  • Javascript doesn't work on safari desktop but works properly on Safari  ipad. I already cleaned a cache without success

    javascript doesn't work on safari desktop but works properly on Safari  ipad. I already cleaned a cache without success. IE, FF and Opera are working well

    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
     Cheers, Tom

  • Cannot log in to Nationwide internet banking in Firefox. I get the front page but Login says internet banking is not working. Next screen says it's ok and sends you back to the first screen, which says it isn't. Works throughInternet explorer

    Question
    Cannot log in to Nationwide internet banking. I get the front page but Login says internet banking is not working. Next screen says it's ok and sends you back to the first screen, which says it isn't. Works throughInternet explorer

    That issue can be caused by corrupted cookies.
    *https://support.mozilla.org/kb/Cannot+log+in+to+websites
    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"

  • Safari is not working on the Mac. Internet is fine, mail, App Store etc all working and connecting to Internet fine. Done the latest software update, still not working. When selecting a web address from bookmarks or typing in search bar, partial blue bar.

    Safari is not working on the Mac. Internet is fine. mail, App Store etc all working and connecting to Internet fine. Done the latest software update, still not working. When selecting a web address from bookmarks or typing in search bar, partial blue bar only and coloured wheel appears.

    From the Safari menu bar, select
    Safari ▹ Preferences ▹ Extensions
    Turn all extensions OFF and test. If the problem is resolved, turn extensions back ON and then disable them one or a few at a time until you find the culprit.
    If you wish, you may be able to salvage the malfunctioning extension by uninstalling and reinstalling it. That will revert its settings to the defaults.
    If extensions aren't causing the problem, see below.
    Safari 5.0.1 or later: Slow or partial webpage loading, or webpage cannot be found

  • Safari is not working in lion.  I get the message not responding.  Please help.

    Safari is not working in Lion.  I get the spinning ball.  Please help.

    We do not provide support for bugzilla here. Please visit http://www.bugzilla.org/ to find out how to get help.

  • On my macbook pro I have a message on my homepage telling me that certain items want to use my keychain. I've pressed cancel the message will not go. The mac is now running very slow and iphoto and safari are not working. Can anyone help?

    On my macbook pro I have a message on my homepage telling me that certain items want to use my keychain. I've pressed cancel the message will not go. The mac is now running very slow and iphoto and safari are not working. Can anyone help?

    What version of Mac OS X?
    What home page?
    What browser?

  • How to locate the source code which populate the SO number?

    Hi,
    For example:
    In T-code: VA01
    Put your cusor on the screen field : Standard Order
    Then press F1, get the technical info of this field as below shows:
    Screen field     VBAK-VBELN
    Program name     SAPMV45A
    Screen no.       4001
    So my question is, how to locate the source code which exactly to populate the SO number into VBAK-VBELN by the system automaticallly.
    As assumed that the system is generate this kind of SO autuomatically, and its number range is defined in SPRO.
    I just want to find out the coding part which gengerate the SO number.
    Want to see the source code of that...
    How to find it???
    Thanks.

    Hi Deepak,
    Thanks for the info..
    But i think i am also know that.
    Questions is dont know how to find the KEY statements that exactlly to generate the number...
    Anyway, 2 points to you.

  • I downloaded Lion OSX and at the end I received a notice that Safari can not connect to Server. All internet connections work including Safari on other user on same computer. I downloaded 13items and installed only 12. What do I do now ?

    I dowloaded Lion OSX and installed. I downloaded 13 iitems and installed only 12. At the end of the insta;;ation I received a notice thst Safart can not connect to Server. Safari does not work on user where installation was made. It work on other user. All internet connections work including google. If I go into Safari the blue line goes up to end of "http" on adress and freezes. Where do I go from here.:::???

    Hi There Linc Davis,
    Wow, you are the best.
    Yip this is what the website looks like. Great job Linc Davis.
    Not surprised that the "Shop" tab is missing. Darn.
    Well can you try to access it's "sister" website: astralmusic.com and astralmusicshop.com?
    Since you are awesome with the "Flash" can you investigate if this website has a issue withis this "Flash" too?
    Please Linc Davis

  • Has Mozilla changed the way Firefox displays @font-face enbeded fonts? The site I'm codeing works in Safari, Chrome, and IE, but Firefox 8.0.1 doesn't display the embeded font.

    Has Mozilla changed the way Firefox displays @font-face enbeded fonts? The site I'm codeing works in Safari, Chrome, and IE, but Firefox 8.0.1 doesn't display the embeded font.

    No problems here with the H1 headers.
    Reload web page(s) and bypass the cache.
    * Press and hold Shift and left-click the Reload button.
    * Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    * Press "Cmd + Shift + R" (MAC)

  • Itunes, App store, Facebook App and Facebook on Safari are not working...can not connect to app store is the message I get.

    Since Sunday I can not access Itunes or App store with my Ipad 2. I can not use the facebook app, it will log in, but will not load up the newsfeed, I can not use it in Safari either. Also can not use apps like Draw Something.  The same thing has happened to my husbands Ipad. On occasion it will allow the app store or itunes to work. Any ideas?

    I have the itunes and app store working now, but my FB app and FB on Safari will not work and other websites are not working very well on Safari...any ideas?

  • I want to eliminate an autofill choice that pops up when I sign into yahoo using the Firefox browser. I tried yahoo help which said hover over the unwanted line and press delete, but that did not work. I am using a Mac if that makes a difference.

    Question
    I want to eliminate an autofill choice that pops up when I sign into yahoo using the Firefox browser. I tried yahoo help which said hover over the unwanted line and press delete, but that did not work. Do you know how I can get rid of this autofill? I am using a Mac if that makes a difference. Thanks.

    Use Shift+Delete on Mac.
    *http://kb.mozillazine.org/Deleting_autocomplete_entries
    *Click the (empty) input field on the web page to open the drop down list
    *Highlight an entry in the drop down list
    *Press the Delete key (on Mac: Shift+Delete) to remove it.

  • I have to make inaccessible the Javascript code embedded in a form pdf. How can I do?

    I have to make inaccessible the Javascript code embedded in a form pdf. How can I do?

    You can secure the file and prevent access to the code, but it's very easy
    to overcome that. Alternatively you can use a code obfuscator to make the
    code less legible.
    On Feb 11, 2015 3:51 PM, "marcogolinelli88" <[email protected]>

Maybe you are looking for

  • URGENT - Posting a XML file to a listener URL

    Hi all, I have a situation like this: A servlet Client should post a XML file to a listener URL, and the listener responds back with a XML file after the processing the posted XML file. 1. Before posting, the servlet client should establish a session

  • Performance issue of simple mapping

    Hi All, We cretated one simple mapping the details are as follows: 01. We had created on public dblink in Oracle 11g pointing to sqlserver 02. By using the publicdblink we create one view at Oracle 11g. This view acts as a source in my mapping. 03. W

  • Mirroring Vizio with RocketFish HDMI adapter down again

    I've been happily mirroring my Vizio 50" monitor for a while with RocketFish's MDP to HDMI. Three Mavericks updates ago it stopped working. Two updates ago it was working again, in fact so well when we turned on the TV it made the iMac flicker. Last

  • Why do we need to plan promotions at the lowest level of aggregation

    Hi,      The documentation says that we need to plan the promotions at the lowest level of aggregation i.e., the material level. Why? Is there a specific reason for this? Can we plan at other levels of aggregation as well? What happens if we plan at

  • HP Photosmart C2780 All-in-one won't work with Image Capture

    I want to use Image Capture as the scanning software but it won't connect to my scanner (HP Photosmart C2780 All-in-one). When I go to browse devices it shows the scanner but when i click on "Use Twain UI", nothing happens, and it is supposed to ask