Loading...
Copy code
Close
Permalink
Close
Please tell us why you want to mark the subject as inappropriate.
(Maximum 200 characters)
Report Inappropriate
Cancel
Private Message
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Cancel
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Update
Cancel
Feedback
Email ID
Subject :
Comments :
Send
Cancel
Private Message
Type the characters you see in the picture below.
Type the characters you see in the picture below.
Attach files
Desktop
Google Docs
Each Attachment size should not exceed 1.0 MB.
Max no of attachments : 3
Loading User Profile...
guest
Response title
This is preview!
Attachments
Publish
Back to edit
Cancel
(
)
Sign In
New to this Portal? Click here to
Sign up
You can also use the below options to login
Login with Facebook
Login with Google
Login with Yahoo
jQuery
Plugins
UI
Meetups
Forum
Blog
About
Donate
All Forums
Recent Posts
Log In
Search
jQuery
Search
jQuery Forum
Screen name:
maz.jquery1
maz.jquery1's Profile
3
Posts
6
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Ideas
Problems
Expanded view
List view
Private Message
jQuery SVG: id="path_for_x:5_y:5" couldn't be found
[4Replies]
10-Aug-2012 12:37 PM
Forum:
Using jQuery Plugins
Hi there, i'm using jQuery SVG for a while to create a game map with some tiles, i need to change opacity of some tiles (to draw a astar path finding result) but i'm stuck on a little issue:
$("#path_for_x:5_y:5", mapSVG.root()).attr("opacity", "0.5");
the error is:
Uncaught Error: Syntax error, unrecognized expression: 5_y
Does anyone know why? i tried to escape some characters like ":" or "_" but didn't fix the issue.
addEventListener works when bind don't. Why?
[9Replies]
22-Oct-2011 07:51 PM
Forum:
Using jQuery
Hi, i'm loading a simple svg file with the embed html tag:
<embed
height
='
280
'
id
='
map
'
name
='
map
'
src
='
/panel/map/svg
'
width
='
500
' /
>
When i'm scripting in pure javascript:
$(document).ready(function() {
function init() {
alert("bip");
}
document.getElementById("map").addEventListener("load", init);
});
It perfectly works. But when i'm trying:
$(document).ready(function() {
function init() {
alert("bip");
}
$("#map").bind("load", init);
});
It doesn't work. The load event is well triggered because if i'm trying:
$(document).ready(function() {
$("#map").bind("load", alert("bip"));
});
It's also working properly... so, in the second way, why the init function isn't called?
EDIT: and this works:
$(document).ready(function() {
function init() {
alert("bip");
}
$("#map").bind("load", init()); // Note the brackets
});
What the hell is happening?
$(document).ready in a standalone SVG don't work
[2Replies]
16-Oct-2011 12:45 PM
Forum:
Using jQuery Plugins
Hi, I've got some difficulties with my standalone SVG.
here is my code:
<svg onload="init(evt)" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<script type="text/javascript" xlink:href="jquery.js"></script>
<script type="text/javascript" xlink:href="jquery.svg.js"></script>
<script type="text/javascript"><![CDATA[
alert("ping");
$(document).ready(function (){
alert("pong");
});
]]></script>
<g>
<rect width="300" height="100" fill="blue" />
</g>
</svg>
When I load the SVG, I've got the "ping" but not the "pong"?!
I'm using jquery 1.6.2 with jquery SVG plugin 1.4.4
Someone know why?
«Prev
Next »
Moderate user : maz.jquery1
Forum