Is it possible to read the DOM of an iframe if the iframe's src is from another domain?
I realise I can't manipulate the DOM from another domain for security reasons, but can I access the DOM and just read object's values?
User Profile
Collapse
-
Correct type for script tag?
What's the correct "type" attribute to use with the script tag? I've seen examples that use this:
<script type="text/javascript">
....
</script>
and examples that use this:
<script type="applicati on/x-javascript">
...
</script>
So which one is correct? Or does it not really matter? -
It's strange that it doesn't work on Safari, as Apple are apparently the ones that invented canvas.
The reason I chose canvas was that it seemed like it had the most support (FF2, Opera 9, Safari? & IE with extra javascript).
I might look into the Dojo javascript library as that is supposed to be able to draw vector images (I was hoping to avoid having to load a big library every time the page is accessed).... -
Oh wait, you're talking about the sibling div right? The only way you could make it's height relative to the content of a sibling element is to use Javascript.Leave a comment:
-
-
Problems with canvas and Safari
Hi, I'm having some problems getting canvas vector images to render properly in Safari. I've googled a bit and Safari 1.3+ does support the canvas tag, so I'm not sure why it's not working (it works fine in FF2 & Opera 9).
Here's the test page: http://lazydragon.dreamhosters.com/canvas-test3.html
I've basically just copied & pasted the example from the mozilla documentation page: http://developer.mozilla.o... -
Hmm, seems I got a bit mixed up as I didn't need to convert it to an integer anyway.
Mods can close/delete this thread if you want. :)Leave a comment:
-
Convert String To Integer in Javascript
Hi, I'm trying to find a more succinct way to transform a string variable into an integer. This is my code I have at the moment:
...Code:var str = "rgb(51, 45, 32)" var first = str.slice(4,6); var second = str.slice(8,10); var third = str.slice(12,14); var integOne = parseInt(first); var integTwo = parseInt(second); var integThree = parseInt(third); ctx.fillStyle
-
These are some links that I've found useful:
http://www.sitepoint.com/article/take-command-ajax
http://www.sitepoint.com/article/remote-scripting-ajax
http://binnyva.blogspot.com/2005/11/...http-ajax.html
http://www.gizax.it/ahahsection/...Leave a comment:
No activity results to display
Show More
Leave a comment: