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 8639801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:06:44+00:00 2026-06-12T11:06:44+00:00

I have to create a online parking system that should work on desktop, Ipad

  • 0

I have to create a online parking system that should work on desktop, Ipad and android. i have a .svg format map for parking area.

My question is: How can i render that map into browser and perform javascript tasks on each slot click.

I am developing the project using asp.net. Currently i am trying to convert .svg to canvas.

I am new to this graphical stuff and stuck with it for a while. Please help me with the better way or provide us a sample link for this approach.

Thanks

  • 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-12T11:06:45+00:00Added an answer on June 12, 2026 at 11:06 am

    The elements in a SVG are members of the DOM as well (if inserted as such), so selecting them with something like jQuery or document.querySelector() is no problem. However, not all browsers (< IE9) can handle the SVGs in their raw format (which disables this seamless JavaScript integration).

    I did this in a recent project, and it worked like a charm.

    Some things to consider when working with SVG on the web is first of all the size of the SVG. Large files tend to slow down everything, especially when applying JavaScript manipulation and events. More over, keep your SVG files as clean as possible. Some SVG software insert “XML noise”-nodes, which isn’t necessary for the rendering and disables the raw format to be inserted into the DOM.

    What you should do to integrate the SVGs to the DOM, is to load the contents of the SVG file to a present DOM node. I did this with JavaScript, but the method shouldn’t matter for the output.

    Example;

    ...
       <div class="svg-node" data-svg-file="/images/file.svg"></div>
    ...
    

    And load them up with jQuery and attach event handlers;

    $(document).ready(function () {
    
        var svgFile = $('.svg-node').attr('data-svg-file');
    
        $.ajax({
            'url': svgFile,
            'type': 'get',
            'dataType': 'text',
            'success': function (svgContent) {
    
                $('.svg-node').html(svgContent);
                $('.svg-node #an-elements-id').on('click', handleEvent);
    
            }
        });
    
    });
    

    Unfortunately, most web browsers have some problems with this approach. SVG groups can’t be handled through the DOM and you can’t attach any node attribute you wish — only a few are supported.

    But all in all, it’s a straight forward and easy implementation and it work’s in most browsers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to create app that provides online radio streaming (icecast), preferably .ogg format.
I want to create an online map for a hiking trail, and I have
I have a AS3 flash app that needs to create a folder/path (online) for
I've created an online store within an android app in webview but have one
I have create a vcf file that contains contacts by using this code ContentResolver
I have create my own NSOpenGLView class, right now the data that i want
I have create a site embedded Google mapusing api V3 that shows our 4
I have a array of objects and wants to create an online invoice to
I have an assignment to use JavaBeans to create an online Banking application. I
First, I am using .net 3.5. I want to create an online chat system

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.