Gulp, Parse error at '- \",\"//'  How do I Fix this?

Hi,
I'm trying to get Flex and OpenX to work together. Unfortunately, I get an XML parser error when viewing the site.
So, in order to recreate the problem on my local machine, I changed my function and hard-coded the ad as adReturn. I get parse error at '->\",\"//' on the line:
          adReturn = adReturn.replace("//]]>->","//]]>->\n");
Any ideas as to what the problem is?
Please see the function below:
     public function adTest():Ad {
var xmlReturn:XML;
var adReturn:String = "var OX_28140bee = '';
OX_28140bee += "<"+"a href=\'http://www.joeblow.com/openx/www/delivery/ck.php?oaparams=2__bannerid=1__zoneid=4__cb=4249 2045be__oadest=http%3A%2F%2Fwww.joeblow.com\' target=\'_blank\'><"+"img src=\'http://www.joeblow.com/openx/www/delivery/ai.php?filename=mybanner.png&contenttype=png\' width=\'468\' height=\'60\' alt=\'\' title=\'\' border=\'0\' /><"+"/a><"+"div id=\'beacon_42492045be\' style=\'position: absolute; left: 0px; top: 0px; visibility: hidden;\'><"+"img src=\'http://www.joeblow.com/openx/www/delivery/lg.php?bannerid=1&campaignid=1&zoneid=4&loc=http %3A%2F%2Fwww.joeblow.com%2F&cb=42492045be\' width=\'0\' height=\'0\' alt=\'\' style=\'width: 0px; height: 0px;\' /><"+"/div>\n";
document.write(OX_28140bee);";
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>');
trace(ad);
return ad;
Any help would be really appreciated. I'm stumped.
Thanks!
-Laxmidi

I'm getting the same error as I try to upgrade from LR 4.3 to LR 5.3. Have you gotten any answers from anyone?

Similar Messages

  • On my iPad 2 I can nolonger view maps.  It says there are JavaScript errors.  How can I fix this problem?

    On my iPad 2 I can nolonger view maps.  It says there are JavaScript errors.  How can I fix this problem?

    First, try a system reset.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until the screen blacks out or you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.
    If the Reset doesn't work, try a Restore.  Note that it's nowhere near as quick as a Reset.  Connect via cable to the computer that you use for sync.  From iTunes, select the iPad/iPod and then select the Summary tab.  Follow directions for Restore and be sure to say "yes" to the backup.  You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod.  Again, say "yes."

  • I am unable to update any add-ons at all. Every time I try and install an add-on or even the new "show hidden add-ons" add-on, I get a server error. How do I fix this?

    I am unable to update any add-ons at all. Every time I try and install an add-on or even the new "show hidden add-ons" add-on, I get a server error. How do I fix this?

    You may have triggered some intermittent database issues but it should be running smooth by now. Let us know if you still see server errors.
    Also, if your addons appear to go missing after updating there is a workaround http://blog.mozilla.com/addons/2011/09/28/issue-discovered-with-firefox-add-on-upgrades/ And there is a 7.0.1 fix on its way.

  • I can't log in to game centre but I can log into iTunes. I recently changed my password. I checked the troubleshooter and am getting the message regarding server error but how do I fix this? It doesn't specify this in that article. I don't have firewalls

    I can't log in to game centre but I can log into iTunes. I recently changed my password. I checked the troubleshooter and am getting the message regarding server error but how do I fix this? It doesn't specify this in that article. I don't have firewalls

    Hello sadiepix,
    The following article details several things that can be done to quell iTunes' constant need for authorization.
    iTunes repeatedly prompts to authorize computer to play iTunes Store purchases
    http://support.apple.com/kb/TS1389
    Cheers,
    Allen

  • The itunes stores said we could not complete your request an unknown error occured how do i fix this?

    The itunes stores said we could not complete your request an unknown error occured how do i fix this?

    Hi The99reddragon,
    Thanks for visiting Apple Support Communities.
    You may have been affected by this system issue that occured:
    Multiple Services - 10:23 AM - 12:54 PM - Some users were affected
    Users may have been unable to make purchases from the App Store, iTunes Store, Mac App Store, or iBookstore. Users may also have been unable to access iTunes in the Cloud, iTunes Match, or restore purchases from an iCloud backup.
    From Apple Services, Stores, and iCloud.
    If you're still not able to complete your iTunes store purchase or download, see this article for some troubleshooting steps that can help:
    Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    Best,
    Jeremy

  • When I try to transfer my Itunes library to a WD My Book Live NAS I get a 1303 error? How do I fix this? Thanks.

    When I try to copy my iTunes music library (100gb) to a WD My Book Live NAS I receive (after many hours copying) a 1303 error.
    How do I fix this?
    I want to put my music library on the NAS to stream SONOS.
    Many thanks in advance.
    A

    Here is an old post which might help you.
    https://discussions.apple.com/message/9644723#9644723

  • I go to start the "Apple Mobile Device" and it says the side-by-side configuration is incorrect. (Error 14001)  How do I fix this?

    I go to start the "Apple Mobile Device" and it says the side-by-side configuration is incorrect. (Error 14001)  How do I fix this?

    Delete them and then download them from the desired Apple ID. This may require repurchasing paid applications.
    (95675)

  • Video download error =-.50 - how do I fix this

    I tried to download breaking bad and it stopped prematurely - download error =-.50. How do I fix this?

    I'd try the video download instructions from the following document:
    iTunes Store: "Error (-50)" when downloading purchased content

  • When I download itunes 11 i get error 6034 how do i fix this

    I have tried to download Itunes 11 but it gives me an  Error 6034. How can I fix this?

    Solving the iTunes Installation Problems in Windows
    1. Apple has posted their solution here: iTunes 11.1.4 for Windows- Unable to install or open - MSVCR80 issue.
    2. If the Apple article does not fully resolve the problem for you, then try Troubleshooting issues with iTunes for Windows updates - MSVCR80.

  • TS1372 My 3rd generation ipod is frozen and i dont know why. iTunes says it has been corrupted and has has assigned it with a 1418 error. How can i fix this?

    My 3rd generation ipod nano is frozen and i don't know why. iTunes says it has been corrupted and has has assigned a 1418 error code to my problem. how can i fix this?

    You can only sync to one computer/iTunes library. To make this your syncing computer:
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities

  • My iOs 5 update gets all the way to the end then says there is a network error? How do I fix this?

    I plug my iPod touch (4th generation) in to iTunes and then say yes to update to iOs 5. The download begins, takes about half an hour, then a message pops up saying there is a network error and for me to check my network. My internet is working just fine, iTunes just fine, and iPod just fine. I don't know how to fix this. I have tried dowloading iOs 5 about 5 or 6 times and this happens every single time.

    Try a manual install, as outlined in the link below.
    Basic troubleshooting steps  
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101
     In Memory of Steve Jobs 

  • Burns stopping at multiplex with an error. How can I fix this?

    Hi. I'm using iDVD 7.1.1 (the latest update) in Mac OS 10.6.7 on a four-year-old MacBook Pro. Lately when I burn a video, either directly or a disc image, the burn process stops at multiplexing, and an error sign appears. What could be causing this, and how can I fix it? Thanks.

    Hi
    This is a very complex question.
    • Turn on TV-Safe area - Any buttons outside or just touching this - if so move them inside.
    • use of strange video and audio file /codec format eg .avi, .wmv, .mp3 etc.
    I use
    Video - StreamingDV (as from miniDV tape Cameras)
    Audio - .aiff 16-bit 48kHz or .aiff from CD-records - Nothing directly from iTunes (Burn to Audio-CD first)
    If nothing of this I send a "mile" long list of possibly origins to this.
    Yours Bengt W

  • I am trying to sync my iphone 5 and i get this error "Cannot sync Error (-50)" How do I fix this?

    I connect my iPhone 5S to my iMac and try to sync with my iTunes and iPhoto but I get this in response "Cannot Sync Error -50" Any suggestions on how to fix this?

    Did you try another USB cable to rule out a hardware problem?
    Reorganizing the library and clearing the photo cache can also help:
    iTunes: Understanding iTunes Media Organization
    iTunes: Understanding the iPod Photo Cache folder

  • My ipod marks an error -50 how can i fix this is an emergency!

    Hi, mac i need to know please how to fix this error my itunes puts em an error -50 what is that? how can i fix it? because i cant sync or restore the ipod because of this error and i want to sync and use my ipod! os please reply me soon!
    Message was edited by: giloibarra

    Click here and follow the instructions if you haven't already done so.
    (24330)

  • If I export my video in iMovie I keep getting -50 or -108 errors. How do I fix this?

    Whenever I want to export my video, just in iMovie or exporting to Quicktime, it keeps giving me errors like (-50) or (-108) or it's telling me to restart iMovie. It's really ******* me of cause I need iMovie for YouTube, could somebody please explain to me how to fix this?

    Please use the offline installer:
    http://fpdownload.macromedia.com/pub/flashplayer/latest/help/install_flash_player_osx.dmg

Maybe you are looking for

  • Graphics cards to Creative Suite 5

    Which of these graphics cards will be the best to Adobe Creative Suite 5 Production Premium

  • Downloading software

    im new to Mac's.  How do I download and unzip a program to install on my mac? 

  • D20 with Win7(Finnish) + Marvell Raid Utility: Cannot log in as administrator

    This is not really just "Lenovo problem", but more like Marvell-issue. But hoping that someone here would have encountered this similar problem. using: 2x 500GT (Ide-)HD as RAID1, Win7 professional (Finnish version). Marvell Raid Utility (MRU) uses w

  • Event date confusion

    Uploading images from Sony NEX-3N to iPhoto 9.5.1 running on Mavericks, with automatic event creation based on date. This has been working fine with this camera since installation, until now. It seemed to have lost the last four events, but I found t

  • Ipod 4, screen isn't clear

    My son just got an ipod 4th generatoin for Christmas.  The screen is already acting up though.  At times, the text on is hard to read.  You can see the apps and pictures are just fine, it's only text.  Anyone have any ideas what we can do to fix this