User Profile
Collapse
-
If I can't do that then I'm out of here. -
(Responding to pm for clarification)
You wrote senWin instead of sendWin as highlighted in my reply. This would have generated an error message in the console, thus making the problem clear.
http://www.dreamincode.net/forums/to...error-console/...Leave a comment:
-
You were given a perfectly viable solution to this in another place:
[link to codingforums thread removed]Last edited by acoder; Mar 9 '11, 11:15 AM.Leave a comment:
-
If the pages in the iframe are on the same domain then their dimensions are readable. If they are on a different domain, setting a cookie is useless since the parent page can't access it....Leave a comment:
-
-
This will take care of it. It cannot work on cross-domain content.
...Code:<iframe src='mypage.htm' id='if1' onload='setIframeHeight( this.id )' scrolling='no'></iframe> ...... <script type='text/javascript'> function setIframeHeight( iframeId ) { var ifDoc, ifRef = document.getElementById( iframeId ); try { ifDoc = ifRef.contentWindow.document.documentElement;Leave a comment:
-
You really do need to stay away from there. Most of their code is badly written and outdated. That site obviously has an agenda, but peddling quality code isn't it....Leave a comment:
-
Here is the same code operating on a form:
...Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Test Page</title> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> </head> <body> <form name = "RequestForm"
Leave a comment:
-
In your script the date comes from the browser not the server.
All that's required is to set tomorrow's date before reading any values:
...Code:<script type='text/javascript'> var mydate = new Date(), theyear, themonth, theday, displayfirst, displaysecond, displaythird; mydate.setDate( mydate.getDate() + 1 ); theyear = mydate.getFullYear(); themonth =Leave a comment:
-
Code:<input ... onkeyup = "myFunction( this )"> ... function myFunction( elem ) { alert( elem.name.substring( elem.name.lastIndexOf( '_' ) + 1 ) + '\n\n' + elem.value ); }Leave a comment:
-
-
If the player is in the first iframe and the link in the second, try:or if the player's iframe has the ID 'thePlayer':Code:<a href="music/playlist.m3u" onclick="parent.frames[0].PlayM3u(this.href);return false">
Code:<a href="music/playlist.m3u" onclick="parent.document.getElementById( 'thePlayer' ).contentWindow.PlayM3u(this.href);return false">
Leave a comment:
-
Logic Ali replied to I have a situation where I cannot update a div with javascript in a firefox browserin JavascriptJust cut the drivel and show the code, then we can explain the difference between what is happening and what you think is happening.Leave a comment:
-
The text field isn't rendering due to broken markup, and since the script references it, there's an error.Leave a comment:
-
If checkLength() and reportErrors() are present, there should be no error. Otherwise you must show a live example....Leave a comment:
No activity results to display
Show More
Leave a comment: