/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] ie problem????

Hi,
i was wondering if anyone can help me with a rly strange problem….. i have a video player (javascript) with four buttons (php) which when pressed swap the video to another video…. The way it works, is that it posts a variable (the video name to itself) using a type hidden field in the form….. this works rly well on every browser, except internet explorer…. WHY?!?! im going crazy here…. can anyone enlighten me?

here is the code:

[code=php]
<? $videoNamePhp = “test.flv”;
if (isset($_POST[‘submit1’])) {
$videoNamePhp = $_POST[“recipient1”];
}
if (isset($_POST[‘submit2’])) {
$videoNamePhp = $_POST[“recipient2”];
}
if (isset($_POST[‘submit3’])) {
$videoNamePhp = $_POST[“recipient3”];
}
if (isset($_POST[‘submit4’])) {
$videoNamePhp = $_POST[“recipient4”];
}

?>
[/code]

[code=html]
<form method=”post” action=”<?php echo $PHP_SELF;?>”>

<INPUT TYPE=hidden NAME=recipient1 VALUE=”test2.flv”>
<INPUT TYPE=hidden NAME=recipient2 VALUE=”test.flv”>
<INPUT TYPE=hidden NAME=recipient3 VALUE=”test2.flv”>
<INPUT TYPE=hidden NAME=recipient4 VALUE=”tes.flv”>

<div id=”videoscreen”>

<div class=”button”>

<input type=”image” src=”videobuttons/vidbuttons1.jpg” width=”110″ height=”53″ alt=”submit!”
value=”submit” name=”submit1″ onmouseover=”this.src=’videobuttons/vidbuttonsover1.jpg'” onmouseout=”this.src=’videobuttons/vidbuttons1.jpg'” />

<input type=”image” src=”videobuttons/vidbuttons2.jpg” width=”110″ height=”52″ alt=”submit2″
value=”submit2″ name=”submit2″ onmouseover=”this.src=’videobuttons/vidbuttonsover2.jpg'” onmouseout=”this.src=’videobuttons/vidbuttons2.jpg'”/>

<input type=”image” src=”videobuttons/vidbuttons3.jpg” width=”110″ height=”53″ alt=”submit3″
value=”submit3″ name=”submit3″ onmouseover=”this.src=’videobuttons/vidbuttonsover3.jpg'” onmouseout=”this.src=’videobuttons/vidbuttons3.jpg'”/>

<input type=”image” src=”videobuttons/vidbuttons4.jpg” width=”110″ height=”52″ alt=”submit4″
value=”submit4″ name=”submit4″ onmouseover=”this.src=’videobuttons/vidbuttonsover4.jpg'” onmouseout=”this.src=’videobuttons/vidbuttons4.jpg'”/>

</div>

<div class=”vid”>

<script type=”text/javascript” src=”swfobject.js”></script>
<div id=”flashcontent” align=”center”><p style=”font-weight:bold;font-size:14pt;”>You need to upgrade your Flash Player to at<br>least version 8 to view this video content.</p><p><a href=”http://www.adobe.com/flashplayer/”>Click here to download the latest version of Flash Player</a>.</p></div>
<script type=”text/javascript”>
// <![CDATA[
var videoName = “<? echo $videoNamePhp ; ?>”;

var so = new SWFObject(“flvplayer.swf?theFile=videos/” + videoName + “&defaultImage=graphic.jpg&theVolume=100&startPlayingOnload=no&popUpHelp=no&bufferSeconds=2&videoSmoothing=yes”,”flvplayer”,”240″,”208″,”8″,”#000000″);
so.addParam(“movie”,”flvplayer.swf?theFile=videos/” + videoName + “&defaultImage=graphic.jpg&theVolume=100&startPlayingOnload=no&popUpHelp=no&bufferSeconds=2&videoSmoothing=yes”);
so.addParam(“bgcolor”,”#000000″);
so.write(“flashcontent”);
// ]]>
</script>

</div>

</div>
</form>[/code]

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@Phill_PaffordAug 26.2008 — I would guess this is a JavaScript issue and not PHP, and a quick Google confirmed this.

http://aralbalkan.com/912

its the SWFObject parm and IE
Copy linkTweet thisAlerts:
@pamboauthorAug 26.2008 — no it was actually php :S thanks anyways though! the problem was the image submit button..... instead of submiting the value it submits the coordinate of where it is pressed!!
×

Success!

Help @pambo spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...