Svg - xml - why am i not able to call javscript function?

I just created a sample svg file for displaying a menu. I wanted to change the background onClick/onMouseOver. The problem is it is not able to call the javascript function embedded in that???
tnx in advance.
Kalyan
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000303 Stylable//EN" "http://www.w3.org/TR/2000/03/WD-SVG-20000303/DTD/svg-20000303-stylable.dtd">
<svg width="500" height="25" onload="change(evt);"><!--viewBox="0 0 100 100"-->
<!--<script language="JavaScript1.2"><![CDATA[
     function change(evt) {
          alert("fdsf");
          svgdoc = evt.getCurrentNode().getOwnerDocument();
          svgdoc.getElementById("menu1rect").style.visibility="visible";
          svgdoc.getElementById("menu1text").style.visibility="visible";
]]></Script>
-->
     <rect style="fill:#336699" x="0" y="0" width="500" height="25" rx="12" ry="12"/>
     <g id="text1" width="100px" style="width:100px; height:20px;cursor:hand">
          <a xlink:href="JavaScript:alert('Clicked Upload XML !');change(evt);">
          <text x="45" y="15" style="font-size:8pt; fill:white; text-anchor:middle" onMouseOver="change(evt);">Upload XML</text>
          </a>
     <rect id="menu1rect" style="fill:#FFFFFF;stroke:#336699; visibility:hidden" x="0" y="0" X="350" Y="15" width="100" height="25" rx="12" ry="12"/>
     <a xlink:href="JavaScript:alert('Clicked Upload XML !')">
          <text id="menu1text" x="45" y="15" style="font-size:8pt; visibility:hidden;fill:#336699; text-anchor:middle">Upload XML</text>
     </a>
     </g>
     <a xlink:href="JavaScript:alert('Clicked Upgrade Version !')" style="width:100px; height:20px">
          <text x="150" y="15" style="font-size:8pt; fill:white; text-anchor:middle">Upgrade Version</text>
     </a>
     <a xlink:href="JavaScript:alert('Clicked Item Search !')">
          <text x="250" y="15" style="font-size:8pt; fill:white; text-anchor:middle">Item Search</text>
     </a>
</svg>

The script language type should be text/javascript when it is used in a svg!!
Kalyan

Similar Messages

  • Why javascript is not able to call signed appet method ?

    I am trying to call signed applet method from JavaScript. The html page run but when try to call applet method by clicking the button it's not performing the required action. I am really stacked there. It's also don't give any error, please anybody could give me few suggestion that why is it so. It will be great help for me.
    Thanking you

    Please put a System.out.println("Here I am") right at the begining of your java method that is supposed to be called from javascript.
    Redo your scenario and post here the contents of the Java console.

  • Not Able To Call JavaScript Function in my JSP file

    Here is my code of jsp, its a form , now when i click on the submit button having value "check all", it doesnot call the function
    "CheckAll( )" which will just popup the alert box, when i click on the "check all" button but it gives following error
    object expected,line no 66
    can somebody help me
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@ page import="java.util.*"%>
    <%@ page import="dao.dbconnect" %>
    <% response.setHeader("Pragma","no-cache");%>
    <% response.setHeader("Cache-Control","no-store");%>
    <% response.setDateHeader("Expires",-1);%>
    <html>
    <head>
    <script type="text/javascript" src="calendarDateInput.js">
    function CheckAll()
         alert("hi");
    </script>
    </head>
    <body >
    <form name="inserttransaction" action="InsertTransaction" method="get">
    <TABLE border="0" cellpadding="2" cellspacing="2" align="center">
    <thead>
    <tr bgcolor='999999'>
                             <FONT SIZE="10" COLOR="white">
    <th width="20%">    </th>
    <th width="20%">    </th>
    <th width="25%">    </th>
    <th width="35%">    </th>
    </tr>
    </thead></FONT>
    <tbody>
    <TR bgcolor='CCCCCC'>
         <TD>Amount: </TD>
         <TD><input type="text" name="amount" value="" size="5" maxlength="5" ONKEYPRESS="if ((event.keyCode < 48) ||
    (event.keyCode > 57)) event.returnValue = false;"/></TD>
         <TD>Date Of Expenditure</TD>
         <TD><script >DateInput('orderdate', true, 'DD-MON-YYYY')</script></TD>
    </TR>
    <TR bgcolor='ffff'></TR>
    <TR bgcolor='CCCCCC'>
         <TD>Type Of Expenditure:</TD>
         <TD><select name="expendituretype" onBlur=ONKEYPRESS="if ((event.keyCode < 48) ||
    (event.keyCode > 57)) event.returnValue = false;">
    <option value="" selected>Select</option>
    <option>Grossary</option>
    <option>Entertainment</option>
    <option>Travelling</option>
    <option>Electric Bill</option>
    <option>RoomRent</option>
    <option>Hotel</option>
    <option>Picknik</option>
    <option>Other</option>
    </select></TD>
         <TD>Expenditure Detail:</TD>
         <TD><input type="text" name="expendituredetail" value="" size="36" /></TD>
    </TR>
    <TR bgcolor='ffff'></TR>
    <TR bgcolor='CCCCCC'>
         <TD>Paid By:</TD>
         <TD><select name="paidby">
                                  <option value="" selected>Select</option>
                                  <%
                                       session = request.getSession(true);
         this is line 66 ==========>                              Vector units=(Vector)session.getAttribute("vectobj");_
                                       out.print(units);
                                       for(int i = 0, size = units.size(); i < size; i++)
                                            out.print ("<option value=" + (String)units.get(i) + ">");
                                            out.print(units.get(i));
                                            out.print("</option>");
                                  //     out.print ("</select>");
                                  %>
                                  </select></TD>
         <TD>Add Beneficiary:</TD>
              <TD>
              <input name="btn" type="button" onclick="CheckAll()" value="Check All"> 
         <%
                                                 session = request.getSession(false);
                                                 Vector v=(Vector)session.getAttribute("vectobj");
                                                 int k=v.size();
                                                 for (int i=0; i<k; i++)
                                                                out.print("<INPUT TYPE=\"checkbox\" NAME=\"abc\" VALUE="+v.get(i).toString()+">" + v.get(i).toString() + " ");
                                            %>     
                                            </TD>
    </TR>
    </tbody>
    </TABLE><BR><BR><BR>
    <CENTER><INPUT TYPE="submit" value="Submit Transaction Data"></CENTER>
    </form>
    </body>
    </html>

    If I were you, I would post only the problematic code.. in the code tags !!
    Your obvious problem is you arent using your script tags properly. Understand this for yourself.This is your working code :
    <html>
    <head>
    <script>
    function CheckAll(){
    alert("hi");
    </script>
    </head>
    <body >
    <input name="btn" type="button" onclick="CheckAll()" value="Check All">
    </body>
    </html> HTH

  • Why am i not able to install creative cloud?

    Why am i not able to install creative cloud? i paid for the package,  downloaded the installer now its been trying to connect to the server since a day..

    You can check these :
    Creative Cloud Connection Update
    Sign in, activation, or connection errors | CS5.5 and later
    CreativeCloud Manager can't connect to Internet
    Regards
    Rajshree

  • Why spotlight is not able to perform searches on iCal events older than 365 days?

    why spotlight is not able to perform searches on iCal events older than 365 days? I really do not understand why if iCal can sync all events, even the very old, the spotlight will not be able to search on events older than 365 days; why? is absurd; let's say I want to search for a person contained in an old appointment: iCal in your Mac with a few key words, I find it right away, but this important feature on the iPhone is locked; we have in our pockets phones are very sophisticated, but it does not manage to make things really trivial.

    Submit your feedback directly to Apple using the appropriate link on the Feedback page:
    http://www.apple.com/feedback

  • Certain songs wont transfer from Itunes to Iphone, telling me to authorize computer and when I do so, it's telling me that computer is already authorized. So why am I not able to tranfer certain songs from itunes to my iphone?

    Certain songs wont transfer from my itunes to my iphone, it's telling me that the computer is not authorized but once I go up to Store and authorize computer and enter in my info, it tells me that the computer is already authorized. So why am I not able to transfer certain songs from my itunes to my iphone?

    Hello Jfalconi19,
    Thank you for providing the details of the issue you are experiencing with transferring the apps purchased from the iTunes Store.  I recommend following the steps in this article:
    iTunes repeatedly prompts to authorize computer to play iTunes Store purchases
    http://support.apple.com/kb/ts1389
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Please , help me for apple id.......  i made new id but there is a credite card option and that's why i am not able to download any free application for iphone,.....so,.....what i do about this problem..???

    please , help me for apple id.......  i made new id but there is a credite card option and that's why i am not able to download any free application for iphone,.....so,.....what i do about this problem..???

    You can create an Apple ID without a credit card by following this guide exactly: http://support.apple.com/kb/ht2534.  Note that you have to start by downloading a free app, then create the ID.

  • Why am I not able to install snow leopard on a new hard drive for my macbook pro, which at one point was upgraded to Lion?

    I've just had my hard drive go caput and after purchasing a new one was inclined to install snow leopard but received an error message when attempting to do so.
    I did not create a back up or restore file before I decided to upgrade from snow leopard.
    I'm wondering why am I not able to simply install snow leopard on a brand new hard drive.  What would clue it into me having had ran lion before and why can't I simply delete that kernel or said file.    It makes completely no sense to me.  I come from a pc world where if I choose to format a hard drive, I can do a clean install of whatever OS I choose.  After all I only paid for my laptop as should be able to do with it what I wish. 
    Any suggestions or insight would be greatly appreciated

    1.  Was Lion on the machine and trying to downgrade?
    2.  If so this might be an issue.  Newer machines are done for current OSX.
    3.  If you have Lion on your machine try to install Snow Leopard on another partition or portable HD
    4.  After you format and install SL on the other partition or drive Try to boot from this machine retarting and holding the Option key at boot up.
    5.  See if that work. 
    This is a trial and error way but Mountain Lion is right around the corner and Snow Leopard is 2+ yrs old.
    Brian

  • I'm having trouble connecting to apps, itunes store, internet on my iPhone 5 running iOS 7.0.4.  I am currently connected to a perfectly running WiFI connection.  Why am I not able to connect anything?  I've tried ALL the fixes suggested.  HELP!!!!!!!!!

    I'm having trouble connecting to apps, itunes store, internet on my iPhone 5 running iOS 7.0.4.  I am currently connected to a perfectly running WiFI connection.  This just started happening today (2/19/14)!  Why am I not able to connect anything?  I've tried ALL the fixes suggested.  HELP!!!!!!!!!  BTW, I know my Wi-Fi connection is good because I'm using it on my desktop and other people in my office are also connected on their iPhones and desktops.  Again, HELP!!!!

    You may not really be connected to your WiFi network.
    Your router may not have given your iPhone a valid IP address. Go to Settings > Wifi > your network name and touch the "i" to the right to see the network details. If the IP address starts with 169 or is blank then your router didn't provide an IP address and you won't be able to access the Internet.
    Sometimes the fix can be as simple as restarting your router (remove power for 30 seconds and restart). Next, reset network settings on your iPhone (Settings > General > Reset > Reset network settings) and then attempt to connect. In other cases it might be necessary to update the router's firmware with the latest from the manufacturer's support web pages.
    If you need more help please give more details on your network, i.e., your router make, model and version, the wifi security being used (WEP, WPA, WPA2), etc.

  • Why am I not able to export NEF files to Photoshop from Lightroom to edit. This is new. When I right click on an image, the export to PS option is not selectable.

    Why am I not able to export NEF files to Photoshop from Lightroom to edit. This is new. When I right click on an image, the export to PS option is not selectable. I've never had this happen before. I haven't used it for a few weeks, so maybe there's an update (Mac or otherwise) that's screwing things up? HELP!

    I have an Edit In - Photoshop option, but not an Export - Photoshop option.
    Obviously to have right-click Edit In to work, the photo you're right-clicking on needs to be selected.  I assume this is not the problem, and that the photo is selected.
    Mavericks 10.9.3 has a problem where the Users folder is hidden, and you need to update iTunes to fix it, but it's been a few weeks since this happened so hopefully you're up-to-date and the Users folder isn't hidden anymore.
    If you can't get things to work, I'd uninstall LR and uninstall Photoshop, then install Photoshop, and update it, then install LR and update it, as a way to get any wayward security or other OS-level things reset.

  • HT1918 why i am not able to see the none option in the payment link?

    why i am not able to see the none option in the payment link?

    Did you create a new account using an email address not used with Apple before?
    Maybe your county does not allow a None.
    I am in the US and created a None account using those instructions.

  • HT201364 why am I not able to download the mavericks system... I just bought my computer right now.

    Why am I not able to download the mavericks system? I just bought my computer right now.

    A new Mac comes with 90 days of free tech support from AppleCare.
    AppleCare: 1-800-275-2273
    Call AppleCare.
    Best.

  • Why am i not able to see images on some web sites, using safari 5.1.7. I have enabled the tab to display images.

    Does anyone know why I am not able to see images on some web sites using safari 5.1.7?
    I have enabled the apperance tab to display images.

    Safari 5.0.1 or later: Slow or partial webpage loading, or webpage cannot be found

  • HT1338 why i'm not able to open pdf files? says i need adobe reader, but not sure where to get it.

    why i'm not able to open pdf files? says i need adobe reader, but not sure where to get it.

    Welcome to the Apple Support Communities
    You can use Preview to open PDFs. Right-click a PDF file and go to Open with > Preview

  • Why i am not able to connect my apple mobile 4s to apple mobile 5 via bluetooth ?

    Dear sir
    Pls advise why i am not able to connect my apple mobile 4S to apple mobile 5 via bluetooth.
    Or pls advise how i can tranfer music & movies from one apple phone to other.
    Regards
    Pradeep

    Hello shreejith786
    The iPhone does not transfer music and videos via Bluetooth. To move content from one iPhone to another, you will need iTunes or iCloud handle that. If you have purchased content from the iTunes Store, you can download them directly. The articles below will assist with getting your media to your other iPhone.
    iOS: How to back up and restore your content
    http://support.apple.com/kb/HT1766
    Downloading past purchases from the iTunes Store, App Store, and iBooks Store
    http://support.apple.com/kb/HT2519
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

Maybe you are looking for

  • Can Anyone help save my Nokia Lumia 1520?

    Hello I am in need of help to save my Lumia 1520. I made the mistake of flashing my lumia 1520 (RM-937) with a lumia 1520 (RM-938) rom. Ever-since, my phone started acting out. The phone is stuck in aiplane mode and does not connect to GSM network an

  • Layout Server Installation

    Hi All, As per my knowledge, layout server installation can be done in two ways: 1. layout server as a central server with Multiple Publisher clients accessing common server. 2. layout server on individual clients system I want to know Pros and cons

  • Error with Credit Card security code

    I've been using iTunes for years. A few day ago iTunes (and iPhone) keep asking me to verify my billing info. Even though the card I'm using has been on file and is a working card (I checked with the bank), iTunes keeps telling me that I'm entering t

  • Oracle Modeler: How to link DFD Information Stores to Logical Model Entitie

    I have created a hierarchy of DFDs for my system :) Some of the DFDs have Information stores. I want to specify the Entities in each InformationStore by linking them to Entities I have defined in the Logical model/ERD. However... in the Information S

  • Cisco commonservices upgrade query

    Hi All , I am running with cisco common services 3.1 version . I want to upgrade the same to 3.2 . Please guide me  from where can i download the Software in cisco site Thanks in Advance Regards Angus