Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

flash + javascript + ajaxcall 1

Status
Not open for further replies.

patrickdrd

Programmer
Nov 21, 2003
149
GR
Hi everyone!

My colleague has written a flash to be acting like a tab (4 options for the user),
and we would like to be able to know when a user presses a specific "tab", calling then a function "AjaxCall" (the function itself is included in the original aspx page) to pass the pressed tab index to an aspx page and then query a database,
can this be accomplished?

Will the function call work from flash (the function resides on the aspx page, where flash object resides too)?

Tried to simulate an example with Javascript from Flash (show an alert) but didn't work!
Does anyone know why?

Thanks in advance!
 
> Tried to simulate an example with Javascript from Flash (show an alert) but didn't work!
> Does anyone know why?

If you're testing it locally then perhaps it's a local security issue.

Kenneth Kawamoto
 
Thanks, I'll try that!

One more question:

does flash 'know' the included in the html (actually aspx) javascript file code?

Will I have any problems calling a function that's inside a .js file?
 
there should be no problem if the javascript is inside a js file, because once the browser has rendered the html code, external files are incorporated (even though you dont see the external js code when u view source).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top