Why Isn't OpenX Working On My Flex Website When Using a PC?

Hi,
I'm using OpenX to serve ads. It serves ads when I use my Mac with Safari or Firefox. But, it doesn't work when I checked my site on two PCs both running Windows XP with IE and Firefox. I'm getting error #1090, which is "XML parser Failure: element is malformed" only on the PCs, not on the Mac. In order to use OpenX, the ads have to be properly formatted. Thank you Daryl Bowden for creating the class below:
package com.darylbowden.ads
import flash.external.ExternalInterface;
import mx.controls.Alert;
public class OpenAds {
private static var externalCallback:String = "callOpenAds";
private static var retries:uint = 10;
public function OpenAds(){
public function getAdReturn():Ad {
var xmlReturn:XML;
if(ExternalInterface.available) {
var adReturn:String = ExternalInterface.call(externalCallback);
try
adReturn = adReturn.replace("//]]>->","//]]>->\n");
var infoTagsIndex:int = adReturn.indexOf('<script type="text/javascript" src=""', 0);
adReturn = adReturn.substring(infoTagsIndex, adReturn.length);
var wasFlash:Boolean = false;
if(adReturn.search("<embed") == -1) {
adReturn = adReturn.replace('></a>', '></img></a>');
adReturn = adReturn.replace('></div>', '></img></div>');
else {
adReturn = adReturn.replace('></div>\n<script','></embed></div>\n<script');
adReturn = adReturn.replace('></div>\n<noscript','></img></div>\n<noscript');
wasFlash = true;
adReturn = '<adXMLReturn>' + adReturn + '</adXMLReturn>';
xmlReturn = new XML(adReturn);
var ad:Ad;
if(wasFlash){
ad = new Ad(xmlReturn, true);
else {
ad = new Ad(xmlReturn);
catch(error:Error){
Alert.show(error.message + 'stacktrace:' + error.getStackTrace(), "Error");
else {
Alert.show("Javascript must be enabled to view this page properly.", "Javascript Not Detected");
xmlReturn = new XML('<root>xml</root>');
return ad;     
I've got a catch statement sending the error. Does anyone know why it doesn't work on PCs? Any suggestions on how to solve this problem? I'm pretty desperate. I've also posted this question on OpenX's forum, but not too many people use Flex over there.
Thank you.
-Laxmidi

iOS: Troubleshooting Messages
And as necessary:
- Reset the iOS device. Nothing will be lost      
Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Reset all settings                            
Go to Settings > General > Reset and tap Reset All Settings.
All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
- Restore from backup. See:                                               
iOS: Back up and restore your iOS device with iCloud or iTunes
- Restore to factory settings/new iOS device.                       
If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
  Apple Retail Store - Genius Bar                                              

Similar Messages

  • Why isn't iCloud working on OS x version 10.7.2 (lion) but it works on windows 7

    why isn't iCloud working on OS x version 10.7.2 (lion) but it works on windows 7

    Hello, & a warm welcome to the Forums & Macdom!
    Might try one of these...
    Instead of joining it from the list, click the WiFi icon at the top, and click join other network. Fill in everything as needed. Before I went through network diagnostics and all of that stuff in system preferences, and then I tried the "Join Other Network" method, and now it works like a dream.
    Make a New Location, Using network locations in Mac OS X ...
    http://support.apple.com/kb/HT2712
    The Interface that connects to the Internet, needs to be drug to the top of System Preferences>Network>Show:>Network Port Configurations and checked ON.
    10.5.x/10.6.x/10.7.x instructions...
    System Preferences>Network, click on the little gear at the bottom next to the + & - icons, (unlock lock first if locked), choose Set Service Order.
    The interface that connects to the Internet should be dragged to the top of the list.

  • Suddenly, I cannot sync my Boselink with iPhone. Iphone 4s says Bose sound...not connected. I JUST updated software to iOS 6.1.3. Why isn't this working? I can not play pandora on my Bose.

    Suddenly, I cannot sync my Boselink with iPhone. Iphone 4s says Bose sound...not connected. I JUST updated software to iOS 6.1.3. Why isn't this working? I can not play pandora on my Bose.

    They are absolutely now paired after doing all you said, as I reset both the Bose Link and the Iphone.  Now we have a pair, but no sound on the speaker or the iphone when they are connected. I know they are connected b/c the iphone says they are in the blue tooth setting AND the Bose has a solid blue tooth light on. 
    Now what?  This is beyond frustrating and only happened when I UPDATED ios!
    Thank you!

  • I am trying to verify my Apple ID and it says it has sent me a verification email and I haven't received it. I have checked the email and it is correct, why isn't it working ?

    I am trying to verify my Apple ID and it says it has sent me a verification email and I haven't received it. I have checked the email and it is correct, why isn't it working ?

    The verification email is not sent immediately so be patient and wait a while.

  • HT5071 Why isn't my newly published book coming up when I search for it by title and by author on iTunes and iBooks?

    Why isn't my newly published book coming up when I search for it by title and by author on iTunes and iBooks?

    Thanks, but it turns out iTunes just needed another 24 hours. Now when I search in iTunes by my name or book title, it comes up!
    Do you happen to know why it doesn't list my name on itunes? It shows the title and then By (blank). Grr.
    bit.ly/1aveWcg

  • Why is the search and logins fields are black when using AOL

    Why is the search and logins fields are black when using AOL??

    M3nth,
    Seems like we're all asking the same question
    As tst says... try not to use the one at the bottom.. it's ... hummm..
    It's behavior is unpredictable...
    As for the multiple listing I'll have to read Molly's response on this (I asked the same question is the "Xtreme thread")
    JLV
    === EDIT ===
    Hi Molly,
    I read your answer on the bottom search engine..
    That's what I thought it did... but it didn't work for me.. I tried to use it to find some of my own posts within LV.. and it didn't find anything.
    The search was : serial
    I did this while reading a LV question of the subject.
    I shall experiment with the search engine again and report my findings.
    R.Message Edited by JoeLabView on 03-17-2005 02:24 PM

  • HT204053 apple id is working fine on computer but when using it to sign in for aps on iphone, it says 'incorrect id or password'

    apple id is working fine on computer but when using it to sign in for aps on iphone, it says 'incorrect id or password'

    Nevermind... Tech had me sign into store and itunes.  Signing in there fixed the problem.

  • Why do I have to constantly relog my password when using this site?

    Why do I have to constantly relog my password when using this site?

    That's correct, regardless of browser used I could close my browser and not have to log in, but typically that only lasted for a few hours.  Something in the re-design seems to have made it such that you have to sign in each and every time to re-open your browser and come here.

  • Does Mackie Control work with Final Cut 7 when using USB MIDI?

    I have a Mackie Control Universal Pro connected via USB to my mac and it works GREAT with Logic and all the complimentary Logic Studio software.
    The problem I am having is, when I try to use it with Final Cut, it wont work at all. I have read the post concerning this that was answered by Andy Mees but, I dont use a true MIDI connection, only USB.
    Any thoughts?

    Does Mackie Control work with Final Cut 7 when using USB MIDI?
    No one will know until FCP 7 is released.
    -DH

  • My mic does not work On my iPhone 5S when using FaceTime

    The mic does not work when using the speaker either

    Is Mute set?
    On the left side of iPhone above the volume buttons. Red is mute.

  • Have been using firefox for months; now has quit working properly with the websites I use everyday. What happened?

    It has quit working with "liverez" which is my web based reservation program. The place I login is https://reservations.liverez.com/login.asp?LogOff=True&Return=Res but once I login, the site does not work as it did before. The website that corresponds with this doesn't look right now either. I can't even use my msn email account with firefox now. I have had to go back to using internet explorer. I have not even tried other sites with foxfire at this time. The other sites I use for work. Things that aren't working are that I can't click on things I need to click on, drop downs aren't showing up, pictures are absent, etc. It is all working fine on internet explorer and used to work on firefox until last night.

    Thanks to some hints in several strings, I went back to the Control Panel in XP, clicked on Sounds and Devices, clicked on Audio, then changed the default device to the Realtek HD Audio output I have on my computer. Now I can hear You Tube video sound and other Internet audio fine, at least for now. I will come back if it stops again. Thanks to all who posted.

  • TS2570 doesn't work, still the same problem when using Rapidweaver software. NOT with other software.

    i tried everything in this article, but still have the same problem when using Rapidweaver software. NOT with other software. I am converting my iWeb site  to Rapidweaver, whenever there is a calmer period in my office. I have 16 Gb RAM on my NEW iMac and have Parallels desktop, mail, safari, iWeb and Rapidweaver running simultanious.
    I never have the problem if i don't use Rapidweaver, but after i have added several pages to Rapidweaver, the problem begins. my iMac won't start up. the only thing that works is re-installing Macos OS X 10.8. i tried even whiping the completeharddrive, and reinstalling with a complete new user, the same problem.
    I had it on my previous iMac also, and bought a new one because i thought the problem was in the iMac first. i hadn't noticed it only happens with using rapidweaver.
    i sent my complete rapidweaver project to the programmers from rapidweaver at Realmacsoftware, but they couldnt reproduce my problem, there macs started up without any problem.
    i deleted all the rapidweaver addons and extra stacks, and started a complete new project.
    saterday i had the problem again, after adding about 5 new pages to my rapidweaver site.
    i think i have reinstalled Macos OS X 10.8.2 20 or 30 times by now
    does anyone have a sollution?

    Type '''about:support''' in the URL bar and hit Enter.
    Scroll down almost to the bottom of that listing and see if you have '''user.js Preferences''' just above the '''''Graphics''''' category.
    If you do have that, click on '''user.js file''' in this sentence. <br />
    ''Your profile folder contains a user.js file, which includes preferences that were not created by Firefox.''
    Does that "different homepage" appear in that user.js file?

  • Why do I have to overide internal Lyncpool FQDN when using hardware load balancing

    Hi!
    As the title says, why do I need to override the FQDN when using HLB? Why can't I just change the DNS entry of lyncpool01.domain.com to point to the HLB?
    Thanks!

    You'd want to override it because there are non-HTTP/HTTPS ports involved that are better load balanced using DNS. 
    http://social.technet.microsoft.com/wiki/contents/articles/22988.demystify-hlb-and-dns-load-balancing-lync-2013-topology-with-high-availability-pools-dns-lb-vs-hlb.aspx 
    http://technet.microsoft.com/en-us/library/gg615011.aspx
    If you want to use HLB for all internal ports, then you wouldn't necessarily need to override this. 
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question please click "Mark As Answer".
    SWC Unified Communications

  • Why isn't java working for me in Lion 10.7

    No matter how many times I install the latest update... I need it to deposit checks at home, & am mystified.

    Dear Matt & X423424X,
    I have been using my bank's deposit-at -home for years, it requires a scanner & JRE, so that is why I am puzzled that Java seems to not be working- since installing that awful Lion. I have the note below from the console; (unfortunately I have no idea what it means !).
    X423424X wrote:
    Also check that Java is enable outside of the browsers.  Open Java Preferences (in Utilities) and make sure both checkboxes are checked in the General tab or just click Restore Defaults.
    I have done what you both suggested, thank you, but that didn't help.I have been reading the other posts about Lion VS Java, & have done all that I could understand to do, from the wonderful mac expert advice: went into safari preferences & made sure Java was enabled; went into Java preferences & enabled the recommended settings; made sure I had the latest version & looked at it in Utilities; changed over to Firefox to see if it would work there: no.  So, I think my next step is to call in the computer tune-up person. I have been reading about Java vs Lion all night, & just feel sad that such a useful application is now a nightmare ( for the ordinary computer user, not the mac genius). Thank you.
    Java Plug-in 1.6.0_33
    Using JRE version 1.6.0_33-b03-424-11M3720 Java HotSpot(TM) 64-Bit Server VM
    User home directory = /Users/sharon
    c:   clear console window
    f:   finalize objects on finalization queue
    g:   garbage collect
    h:   display this help message
    l:   dump classloader list
    m:   print memory usage
    o:   trigger logging
    q:   hide console
    r:   reload policy configuration
    s:   dump system and deployment properties
    t:   dump thread list
    v:   dump thread stack
    x:   clear classloader cache
    0-5: set trace level to <n>
    Java Plug-in 1.6.0_33
    Using JRE version 1.6.0_33-b03-424-11M3720 Java HotSpot(TM) 64-Bit Server VM
    User home directory = /Users/sharonCurrent Java version: 1.6.0_33

  • Why isn't UUID working with the mount command/fstab in OS X Lion?

    Trying to set up an external drive to mount automatically at boot. 
    # cat /etc/fstab
    UUID=55E542B9-60B5-3F47-B845-D9DF3EC30D92 /tmp/foo hfs rw,noauto 0 0
    # diskutil info /dev/disk2s2 | grep UUID
       Volume UUID:              55E542B9-60B5-3F47-B845-D9DF3EC30D92
    # mount /tmp/foo
    GetMasterBlock: Error 2 opening UUID=55E542B9-60B5-3F47-B845-D9DF3EC30D92
    GetMasterBlock: Error 2 opening UUID=55E542B9-60B5-3F47-B845-D9DF3EC30D92
    mount_hfs: No such file or directory
    Tutorials I've found seem to indicate this should work but I'm not having any luck.  The diskutil mount command works fine, but I'm trying to get this automated without writing my own LaunchAgent to run some shell script.  My options are rw,noauto because right now I'm just experimenting and I'm not really worried about mounting at boot, this isn't even the real disk i'll end up using.

    I read that thread but, maybe I'm missing something, I didn't see an actual solution in the thread.  That being said, technically the man pages don't really claim mount actually supports UUID, only fstab.  I suppose diskutil probably reads it for a reference as well since mounting via diskutil does indeed work.  Unless someone comes up with a way to do with with mount I plan on just using diskutil in a LaunchAgent and making sure the correct settings are on to make sure the filesystem stays mounted without users logging in.

Maybe you are looking for