www.webdeveloper.com
Results 1 to 4 of 4

Thread: expected identifier

  1. #1
    Join Date
    Sep 2008
    Location
    Harrisonburg, VA
    Posts
    151

    expected identifier

    Hey I am getting an error I will comment in the code where IE is telling me the error is.

    Code:
    <html>
    <script type="text/Javascript">
    var isPlaying = true;
    function inFindMe(){
    	alert(document.getElementById('findMe').innerHTML);
    }
    function remove(){
    		document.getElementById("findMe").innerHTML = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0'width='550' height='400'id='movie'align='middle'>			<param name='allowScriptAccess' value='sameDomain' />			<param name='allowFullScreen' value='false' />			<param name='movie' value='movie.swf' />			<param name='quality' value='high' />			<param name='bgcolor' value='#ffffff' />				<embed src='movie.swf'				quality='high'				bgcolor='#ffffff'				width='550' height='400'				name='movie'				align='middle'				allowScriptAccess='sameDomain'				allowFullScreen='false'				type='application/x-shockwave-flash'			pluginspage='http://www.adobe.com/go/getflashplayer' />		</object>";
    	}
    
    function get_check_value()
    {
    if(document.orderform.continue.checked == true) //Expected Identifier Char 23
    
    { return "yes" }
    
    if(document.orderform.continue.checked == false)
    
    { return "no"}
    
    }
    function endVid(){
    	var val = get_check_value();
    	if (val == "yes"){ remove(); }
    	else { isPlaying = false; }
    }
    
    function checkChanged(){
    	var checkVal = get_check_value();
    	alert(checkVal);
    }
    
    </script>
    
    </script>
    	<div id="findMe">
    		<object 
    		classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
    		codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"
    		width="550" height="400"
    		id="movie"
    		align="middle">
    			<param name="allowScriptAccess" value="sameDomain" />
    			<param name="allowFullScreen" value="false" />
    			<param name="movie" value="movie.swf" />
    			<param name="quality" value="high" />
    			<param name="bgcolor" value="#ffffff" />
    				<embed src="movie.swf"
    				quality="high"
    				bgcolor="#ffffff"
    				width="550" height="400"
    				name="movie"
    				align="middle"
    				allowScriptAccess="sameDomain"
    				allowFullScreen="false"
    				type="application/x-shockwave-flash"
    				pluginspage="http://www.adobe.com/go/getflashplayer" />
    		</object>
    	</div>
    		
    <form name="orderform">
    <!--<input type="radio" name="continue" value="yes"> Continue<br>
    <input type="radio" name="continue" value="no"> non<br>
    -->
    <INPUT TYPE=CHECKBOX NAME="continue" value="continue" onClick="checkChanged()">Continuous play</input>
    </form>
    <button type="button" onClick="endVid()">Click Me!</button>
    </html>

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    You have 2 control elements with name=continue

  3. #3
    Join Date
    Sep 2008
    Location
    Harrisonburg, VA
    Posts
    151
    One of them is in a commented out section... that is left over "scar tissue" from some old code. I deleted this

    Code:
    <!--<input type="radio" name="continue" value="yes"> Continue<br>
    <input type="radio" name="continue" value="no"> non<br>
    -->
    and I am still getting the same error.

  4. #4
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    continue is a reserved word in IE

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles