Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8296555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T15:04:11+00:00 2026-06-08T15:04:11+00:00

Html code of an svg element : <image xlink:href=start.gif style=pointer-events:none x=165 y=175 width=100 height=100

  • 0

Html code of an svg element :

<image xlink:href="start.gif" style="pointer-events:none" x="165" y="175" width="100" height="100" stroke-width="1" transform=" scale(1 1) translate(0 0)"/>

Just as a POC,

$('image').attr('xlink:href');

does return the attribute value as start.gif.

Now I need the attribute values of all the image elements, so I wrote a function

function script()
{
    var result = new Array();
    var elements = selenium.browserbot.getCurrentWindow().jQuery('image');
    for(var i = 0 ; i < elements.length ; i++)
    {
        result[i] = $(this).attr('xlink:href');
    }
    return result;
}
script();

but this returns undefined

Why is that happening?

And yeah, I did try using jQuery’s $.each(function(key, value)), but selenium throws “Error: Threw an exception : c.call is not a function”. Didn’t understand what c and call refers to, so thought to use js for loop.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T15:04:14+00:00Added an answer on June 8, 2026 at 3:04 pm

    Try:

    result[i] = $(elements[i]).attr('xlink:href');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an inline SVG code inside a HTML page, <body> <div style=width:1000px;height:1000px> <svg
HTML code: <div class=clearfix style=color: #555 style=display:block; > <input type=text id=id_site placeholder=nom-du-site style=width: 245px;
Like my title says, I'm trying to programmatically creating an SVG image element in
I have an SVG element inside HTML document that I'd like to export as
According to these sources: http://www.w3.org/TR/SVG/filters.html#FilterElement https://developer.mozilla.org/en/SVG/Attribute/xlink:href (~75% down) the SVG filter element can inherit
HTML CODE: <li id=list_id>List_text<img src='image.jpg' id=img_id></li> jQuery Function: $(#list_id).live('click' , function(){ alert('List is clicked');
The following code: <!DOCTYPE html> <html> <head> <title>Test.</title> </head> <body> <div style=border: solid 1px
I have a bit of code something like the following showing an svg image
I need to include a SVG image(a map) in my html doc, and hopefully
HTML code: <div class=goleft> AD 300x250 size </div> <div class=itemImageBlock goleft> <span class=itemImage> <img

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.