473,387 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

VB(JS):WEB : - CrossDomian Issue

I am having trouble getting javascript controls to work on the flvplayer.swf. I think this is related to the flvplayer.swf being located on a external server.

All the javascript methods like Play,Pause works fine if I give physical location of an swf src, like: -
Expand|Select|Wrap|Line Numbers
  1. <object>
  2. <embed width="640" height="380" type="application/x-shockwave-flash" src="player/flvplayer.swf" >
  3. </object>

But when I give the src location as an virtual path,... like an swf file present in different server, then i am not able to access the play/pause methods thru javascript .... Example....
Expand|Select|Wrap|Line Numbers
  1. <object>
  2. <embed width="640" height="380" type="application/x-shockwave-flash" src="http://505.12.125.87/playflash/flvplayer.swf" >
  3. </object>
I have tried using crossdomain.xml file and had put the file in the root directory whr swf files r present like .....
Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0"?>
  2.  
  3. <cross-domain-policy>
  4.   <allow-access-from domain="http://159.138.4.56/playflash" secure="false" />
  5. </cross-domain-policy>
But still no luck..... is thr nething else i need to do or did i do nething wrong till now.....

The javascript code and the whole program is present in 159.138.4.56
The swf files r present in 505.12.125.87.

please help me .... the flash file is playing fine, but i am not able to play/pause it if the path is virtual(http://.....)


Thanking you,

Kiran Ragiru
Mar 17 '08 #1
0 807

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Behzad | last post by:
Hi All. I have a function with javascript is used in my ASP web Page.Now i want to write an application with VB6 same as my asp page and i need to use that javascript function.Can i insert this...
1
by: John MacIntyre | last post by:
Hi, I posted something a couple weeks ago looking for a JS magazine recommendation. I received no replies. I asked all my friends and have combed my local magazine stores .. and for the life...
9
by: Charley Kyd | last post by:
I'm a newbie who needs advice about how to use external files of JavaScript code. I spent an hour this afternoon browsing through JavaScript books at the local book store. In about 15 different...
3
by: Ben Hallert | last post by:
Hi there, I have a friend who is proficient in Visual Basic and writing ASP, and he has been instructed to learn JS in short order to take advantage of a possible career opportunity. Can...
1
by: JS | last post by:
Hello, I am using ASP .Net to create my own web controls and I have noticed that there is one too many requirements that forces the developer to be aware of and get involved with. In the past...
4
by: vunet.us | last post by:
I would like to create web charts. My site is using AJAX, so I thought of VML and SVG for chart graphics. But there is a browser compatibility issue. Flash would be a good solution but I do not...
2
by: | last post by:
Hi I have a vb iis application and some asp pages. The logic is in the vb dll. Now I need to extent one asp page to do extra step, but the similarly code is in the vb dll. I donĄŻt want to...
4
by: Ty | last post by:
Hello all, I am creating a web site with Visual Stuido 2008. I am trying to use a java script file to create a busybox for login from this page http://blogs.crsw.com/mark/articles/642.aspx. I...
4
by: =?Utf-8?B?UmljaGFyZA==?= | last post by:
Hi, I have an ASP .NET page with codebehind in a vb file. The page has a dropdown control, and a JS function which used HTTP XML Request to get the data from the database, and populate the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.