Click here to Skip to main content
15,901,373 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: JavaScript mounth Calendar Pin
shareef2220002-Jul-09 22:39
shareef2220002-Jul-09 22:39 
GeneralRe: JavaScript mounth Calendar Pin
Marc Firth2-Jul-09 22:44
Marc Firth2-Jul-09 22:44 
GeneralRe: JavaScript mounth Calendar Pin
shareef2220002-Jul-09 22:48
shareef2220002-Jul-09 22:48 
GeneralRe: JavaScript mounth Calendar Pin
Marc Firth3-Jul-09 0:11
Marc Firth3-Jul-09 0:11 
GeneralRe: JavaScript mounth Calendar Pin
Marc Firth3-Jul-09 0:16
Marc Firth3-Jul-09 0:16 
Question[Message Deleted] Pin
Member 40066482-Jul-09 20:45
Member 40066482-Jul-09 20:45 
Questionweb developpement with java and netbeans calling python code?? Pin
SEKA AAA2-Jul-09 1:00
SEKA AAA2-Jul-09 1:00 
QuestionObject not getting properly set in Javascript Pin
juiceboxhiro1-Jul-09 18:28
juiceboxhiro1-Jul-09 18:28 
I have a Flash movie on a web page and I want to send parameters to it with JavaScript to have it go to a selected frame. The AS3 code receives its information via an ExternalInterface API. The following code parses the URL argument (?page=x) and I want to send the value (x) to Flash. Unfortunately, when creating the objMovie variable, it is always undefined, therefore getFlashMovie is undefined and Flash never receives the callback.

Thinking that it was because the flash movie is not loaded yet, I created a button to call callToActionscript, and when I click the button, I get the same error. (getFlashMovie("myFlashMovie") is undefined)

I am not seeing what I'm doing wrong (mainly because I'm a newbie...). Please enlighten me.

Also, if (params) always returns true, whether there are parameters or not. I don't understand that, either.

The code follows:

<script type="text/javascript">  
$(document).ready(function() {
	var params=getQueryParameters();
	if(params) {
		callToActionscript(params[0]);
	}	
});

function getFlashMovie(movieName) {
  var isIE = navigator.appName.indexOf("Microsoft") != -1;
  var objMovie = (isIE) ? window[movieName] : document[movieName];
  alert(objMovie); //Always return undefined
  return objMovie;
}

function callToActionscript(page) 
{
	var myMovie=getFlashMovie("myFlashMovie").sentToActionscript(page);
}

function getQueryParameters() {
  var query = window.location.href.split('?')[1];
  //query won't be set if ? isn't in the URL
  if(!query) {
    return { };
  }
  else
  {
    var param = query.split('=');
  }
  return param[1];
}
</script> 

Questionhow to sending dialog worn to user using javascrip?? Pin
re7et_3esh1-Jul-09 11:34
re7et_3esh1-Jul-09 11:34 
AnswerRe: how to sending dialog worn to user using javascrip?? Pin
Not Active1-Jul-09 18:05
mentorNot Active1-Jul-09 18:05 
GeneralRe: how to sending dialog worn to user using javascrip?? Pin
re7et_3esh1-Jul-09 23:53
re7et_3esh1-Jul-09 23:53 
GeneralRe: how to sending dialog worn to user using javascrip?? Pin
Not Active2-Jul-09 1:56
mentorNot Active2-Jul-09 1:56 
GeneralRe: how to sending dialog worn to user using javascrip?? Pin
re7et_3esh2-Jul-09 8:51
re7et_3esh2-Jul-09 8:51 
GeneralRe: how to sending dialog worn to user using javascrip?? Pin
Not Active2-Jul-09 10:16
mentorNot Active2-Jul-09 10:16 
AnswerRe: how to sending dialog worn to user using javascrip?? Pin
Marc Firth1-Jul-09 21:57
Marc Firth1-Jul-09 21:57 
GeneralRe: how to sending dialog worn to user using javascrip?? Pin
re7et_3esh1-Jul-09 23:52
re7et_3esh1-Jul-09 23:52 
GeneralRe: how to sending dialog worn to user using javascrip?? Pin
Marc Firth2-Jul-09 0:36
Marc Firth2-Jul-09 0:36 
GeneralRe: how to sending dialog worn to user using javascrip?? Pin
DoctorMick2-Jul-09 2:11
DoctorMick2-Jul-09 2:11 
GeneralRe: how to sending dialog worn to user using javascrip?? Pin
re7et_3esh2-Jul-09 8:50
re7et_3esh2-Jul-09 8:50 
QuestionFind Control returns null for edit item template control Pin
kKamel1-Jul-09 0:01
kKamel1-Jul-09 0:01 
AnswerRe: Find Control returns null for edit item template control Pin
K03061-Jul-09 2:04
K03061-Jul-09 2:04 
GeneralRe: Find Control returns null for edit item template control Pin
kKamel1-Jul-09 2:44
kKamel1-Jul-09 2:44 
QuestionDisabled Buttons in CSS Pin
c242330-Jun-09 22:45
c242330-Jun-09 22:45 
AnswerRe: Disabled Buttons in CSS Pin
Marc Firth30-Jun-09 23:31
Marc Firth30-Jun-09 23:31 
GeneralRe: Disabled Buttons in CSS Pin
c242330-Jun-09 23:41
c242330-Jun-09 23:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.