Kind of developed a work around that suits my needs. IE was in fact not refreshing the width and height of the images when a new src was defined. However, the html which contained these values was intact. So, I simply created a function that searched for the string within the html (ie ‘width=”’ or ‘height=”’) and then parsed through the following characters to see when they were no longer a number.
For example: width=” would be followed by 40”
My function steps through the characters: 4 40 40”
As soon as it hits 40” it knows it has gone too far and returns the number from the previous step.
It isn’t the prettiest fix, but here is my solution:
The str is the whole string i am searching through
the attr is the attribute i am looking for (ie ‘width=”’)
NOTE : This really only works for numbers, but could be altered to return strings as well.
function(str,attr){
var startIndex = str.indexOf(attr) + attr.length;
var n = 0;
for (var i=1; i
var _sub = str.substring(startIndex,startIndex+i);
if (isNaN(_sub)) {
return Number(n);
}
n = _sub;
}
}
thanks, but no dice. i think this is at the heart of the issue, but i don’t really know how to implement.
https://github.com/mootools/mootools-core/issues/2129Hey. I’m pretty new to JS and cross browser issues. Of course I don’t have this issue in any other browser… I may not explain this well, but here goes:
i am using RaphaelJS to create an HTML5 canvas plugin. It is cycling through images with a setTimeout and retrieving its source from the HTML .
The code in question is this.
var image = data.find('#point_image').attr('src');
var imageW = data.find('#point_image').attr('width');
var imageH = data.find('#point_image').attr('height');
Basically, IE9 does not recognize the width and height. I’ve read a few things online about the issue, but I am at a loss. Does anyone have insight? Is more information needed?
Thanks.
I was just thinking about using it on the preview files. I would definitely sell the unaltered version. There really is only one file, so stealing it would be pretty easy, but putting a video would destroy the user experience. I’ll have to run some tests. Thanks for the input everyone.
I ran across this today http://javascriptobfuscator.com/default.aspx
Any thoughts?
I’m coming from flash (over 12 years invested) and just have to give a shout out to all the php, asp, js, etc developers out there. I am currently working on a WP theme for the market (no immediate launch date – so please don’t interpret this as a plug) and I am overwhelmed by the amount of time and energy it takes to make it dynamically delicious.
Maybe it is just a learning curve, but packing in the features (the way I would in my Flash files) has taken me quite a few man hours. However, the process has renewed my passion for development and discovery. That alone is worth the hours tallied so far.
I forgot that learning is what keeps things interesting.
Hope to see you around the market places. Happy and healthy new year to all.
I’m planning on uploading a new code canyon file in the coming weeks and wanted to know, from the community, what is the best way to protect your work. I know that with a swf the source code was (relatively) safe, but when uploading php and js files, people could easily get a hold of the source and never need to buy the item.
I saw a few items with video previews, but I feel that takes away from the user experience and interactivity.
Any insight would be appreciated.
I’m curious who uploaded the first file on the envato (eden) marketplaces. When you upload an item, a number is assigned to it. It can be found at the end of the url of the item.
According to the footer there are 482,678 items.
Add your number if you can beat the lowest one in the thread.
Mine lowest number is 9275.
Hmm. I signed up for this meet up but never anything about it. Too bad. It would have been fun to hangout. Next time I guess.

