URLVariables / URLLoad returning entire page help...

Hi everyone,
I am trying to transistion myself from AS 2.0 to AS 3.0.  Everything is going really well except I am so confused about URLLoad & URLVariables.
I've been trying to load external data via ASP and it does send back the variable I want, but that variable also has all the HTML of the page too.
If someone can tell me what I'm doing wrong that would be great. If they can explain what's going on too, that would be a bonus .
Here's my code:
    public class TestURL
        var MyRequest:URLRequest;
        var MyLoader:URLLoader ;
        public function TestURL() {
            MyRequest = new URLRequest("http://www.mysite.com/GetSongs.aspx");
            MyRequest.method = URLRequestMethod.GET;
            MyLoader = new URLLoader(MyRequest);
            MyLoader.addEventListener(Event.COMPLETE, FinishLoad);
            MyLoader.addEventListener(IOErrorEvent.IO_ERROR, ErrorLoading);
        public function Load() {
            MyLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
            MyLoader.load(MyRequest);
        private function FinishLoad(event:Event) :void
            trace(event.target.data.song);
        private function ErrorLoading(event:IOErrorEvent)
            trace("Website Error");
- Stan

Hi Kglad,
My Asp is written like: Response.Write("song=1") and myoutput for the variable "song" I'm trying to get is:
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>
    Untitled Page
</title></head>
<body>
    <form name="form1" method="post" action="GetSongs.aspx" id="form1">
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTAwMzYwOTYxMQ9kFgICAw9kFgICAQ8PZA8QFgFmFgEWAh4OUGFyYW1ldGVyVmFsdWVkFgECBG RkZFQ1jVin3FIdsDuClaeAQ bp HCY" />
    kjjhjk
    <div>
    </div>
    </form>
</body>
</html>
Not sure why it's getting the whole page for?
Thanks for your help -- Stan

Similar Messages

  • Help! The new Pages. I can't copy an entire page or rearrange the pages. In the new formatt also when I insert a new page when using a template it doesn't give me the formatting and guides.  Can anyone help.

    I can't copy an entire page or rearrange the pages. I use this feature a lot, particularly at this time of year. Can't seen to rmove the header and footer markers either.
    Can anyone help or do I need to revert back to pages 09?
    If I do re-install 09 will I be able to open the files that where converted to the new version?
    I don't like this new one. Many of the graphics features have been removed.  Not impressed at all. Very frustrated.
    The business card templates and others behave strangly.  If I insert a page it's blank only. I don't get the guides.  I was in the middle of a design project and had to start again from scratch as it threw everything out of alignment  and I can't copy an entire page. When I use select all, group then copy when I pasted it on the new page it overlayed all the cards in the top two segments.  Frustrating !  I ended up  saving my first page under a different name that was the only way to copy the page then I had to work between three documents instead of one.
    I went in today to last years Christmas tag file and the same issues I can't copy a page. I can't rearrange the pages.
    Simple features like colour choice and transperency for shapes are gone. I want to use my colour choices not someone else.
    Sorry, I am ranting.
    For now all I need is to be able to copy and switch pages around in one document.
    Please Help! I am about to start pulling my hair out in frustration.

        Yes, I am using 09 with out issues.  Just have to remember to use "open with 09" or open pages 09 first then my document.
      I create some amazing cards and posters with 09 that when on a PC I would have to use both Word and Publisher to create.  Flipping back and forth. 
      Apple if you're  listening please, give us back our layout options and even add a few more design options like beveled and 3D text.

  • When i type a search term in the URL box, the result is returned on an AOL Search page; I want a Google search page - help....

    When i type a search term in the URL box, the result is returned on an AOL Search page; I want a Google search page - help....

    In order to better assist you with your issue please provide us with a screenshot. If you need help to create a screenshot, please see [[How do I create a screenshot of my problem?]]
    Once you've done this, attach the saved screenshot file to your forum post by clicking the '''Browse...''' button below the ''Post your reply'' box. This will help us to visualize the problem.
    Thank you!

  • Is there a way to make the spell check work on the entire web page without making the content editable? Or at least those boxes that appear when you enable spell check on the entire page, can you make them disappear?

    I found an addon that allows you to spell check on the webpage but it make the entire page editable and these boxes appear on everything i highlight. Can i get rid of the boxes?

    I had thought this situation was solved but it just got worse. In addition to being without service for several days I am now being charged  a cancellation fee for a broadband service that BT disconnected in error. BT Vision was also terminated by BT but the set up charges are still in place. Does anyone know who the relevant Ombudsman is? I called BT from America on Friday - for an hour - while someone called Aruj sorted out why there is an order 'in progress' that I didn't initiate; why I have fees relating to a problem created by BT and why there are references to a house move that didn't take place and a BT Vision service I no longer have but didn't cancel myself. He assured me it would be rectified and my bill would be reduced by 139 pounds and we would get confirmation of this later that day. I asked him what chance there was that this would not actually happen - he said no chance at all; my new bill would be 23.50.
    There was no text message. An online chat person today told me there had been a fee reduction request which had been declined and there was nothing else he could help me with as he dealt only with broadband. But he would get BT Vision to email me. They always seem so helpful.............
    I'm sure I'm listed somewhere as 'a problem', there's no other explanation for why I get the runaround

  • HP5510 All-In-One won't scan entire page image

    Is there a setting or something that I'm missing when it comes to scanning with my 5510 All-In-One? I'm scanning to my MacBook using OS X.  And yes,  I'm placing my document in the appropriate corner, but I'm only getting a small portion of the 8 1/2x11 page instead of the entire page.  I turn it every possible direction and it's still not scanning the entire page.  Suggestions?  

    Hi @bonbon2D, 
    I see by your post that you are unable to scan the full image on the Mac. I can help you with this.
    I have provided a document for how to scan and change the scan settings.
    Scan.
    Check the driver name that is installed for the printer. The Airprint driver might be installed instead of the Printer's driver. (usually defaults to Airprint)
    Click the Apple menu and then click System Preferences. Click Printers & Scanners, highlight the printer name on the left side and on the right side of the screen should show the name.
    If the printer name shows Airprint, then that is the Apple drivers. Delete it and add the printer name back in from the list. Click the - sign to delete the driver and then click the + sign to add the driver, might have to click the drop down to select the printer's name to add it in.
    What operating system are you using? Mac OS X: How Do I Find Which Mac OS X Version Is on My Computer?
    What application are you trying to scan with?
    How is the printer connected? (USB/Ethernet/Wireless)
    If you need further assistance, just let me know.
    Have a nice day!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • Creating a soft return in Pages for iPad

    I would really like to create a space between numbered items in Pages but I can't figure out how to do it.  Does anyone know how to create a soft return in Pages for iPad.

    daisybrain2663 wrote:
    Why isn't that in the help topics for Pages?  Frustrating.
    I guess that we could ask that question about a few different things Apple related.
    I'm glad that you got the hang of it.

  • Return PDF page number from the name of the link in InDesign CS4 JS

    Hi, I need to return pdf page number of the linked file in InDesign.Here what I have so far, but my FilePath comes back undefined, and I am not sure if pageNmuber line would work:
        var myArtBack = app.activeDocument.pages[1].rectangles[0].graphics[0];
        var myArtBackName = myArtBack.itemLink.name;
        var myBackFilePath = myArtBackName.filePath;
        var myPageNumber  = myBackFilePath.PDFAttribute.pageNumber;
    Your help is highly appreciated.
    Yulia

    Your first problem is:
    var myBackFilePath = myArtBackName.filePath;
    That should be:
    var myBackFilePath = myArtBack.itemLink.filePath;
    What you should have done is something like:
    var myLink = myArtBack.itemLink;
    var myPageNumber = myLink.parent.pdfAttributes.pageNumber;
    Maybe you need the file path for some other purpose, but that's not the route to information about the PDF graphic (the parent of the link) which has the pdfAttributes property -- property names always start with a lowercase letter.
    Dave

  • How to make a picture fit an entire page in a pages

    how to make a picture fit an entire page in a pages

    Hello belluchis,
    Thanks for using Apple Support Communities.
    After inserting your image into your Pages document, follow the instructions in the Pages help section below to learn how to manipulate the object:
    Resize, rotate, and flip an object - Pages Help for Mac
    http://help.apple.com/pages/mac/5.2/#/tan114930688
    Take care,
    Alex H.

  • How do I make an embedded Javascript element(embedded MS Excel chart) automatically refresh so that viewers do not have to refresh the entire page to get updated information.

    I am creating a web page that features an embedded chart made by MS Excel. I would like the chart to automatically update(refresh) to show viewers live information without having to refresh the entire page. I have found that there is a way to enable this through Excel but with my current subscription cannot access that feature. I am hoping that there is a way to achieve this using Adobe Muse CC. If it is not possible, I would like to know if there is a way to add a "refresh" button that refreshes only the embedded section(Excel Chart) of the page for viewers to use manually. Thank you for your help.

    Update! The embedded spreadsheet is actually embedded using HTML rather than javascript.

  • Image Slide In Moves Entire Page Contents

    Hello,
    I'm having an issue with a lightbulb image I want to make slide down on page load (using Spry effect "slide"). After it slides in, I want to have it swap to a "lit" lightbulb image when moused over. I currently have the image swap working correctly in IE 7, Firefox, and Chrome. BUT instead of just the bulb sliding in, the entire page is sliding in.
    I do have several different position declarations for different page elements, so perhaps I just have too much going on!
    Here's the webpage: http://www.artistnatalieblake.com/daubie/index.html
    Here's my CSS for positioning of all the page elements:
    #background {      position:fixed;      top:0;      left:0;      height:100%;      width:100%; } #btns {      float:left;      margin:10px 0;      width:650px; } #bulb { } #bulbslide {      display:none;      float:left;      position:absolute;      margin:-100px 0 0 -10px; } #content {      position:fixed;      z-index:0; } #footer {      color:#ccc;      font-family:'HandelGothicDMedium';      font-size:.8em;      letter-spacing:.1em;      padding:10px 0;      text-align:center;      width:600px; } #info {      color:white;      float:left;      font-family:'HandelGothicDMedium';      text-align:center;      width:500px; } #logo {      margin-top:15px;      vertical-align:top; } #main {      margin-left:175px; } #pagelabel {      float:left;      left:131px;      position:absolute;      top:400px; } #textpane {      background: transparent url(images/white75.png);      float:left;      padding:25px;      width:600px; } #textpane p {      position:relative;      z-index:1;      zoom:1; } 
    Here is my relevant scripting created by Dreamweaver:
    <script src="SpryAssets/SpryEffects.js" type="text/javascript"></script>
    <script type="text/javascript">
    function MM_effectSlide(targetElement, duration, from, to, toggle)
         Spry.Effect.DoSlide(targetElement, {duration: duration, from: from, to: to, toggle: toggle});
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    </script>
    And relevant HTML:
    <body onLoad="MM_preloadImages('images/bulb.png','images/bulblit.png');MM_effectSlide('bulbslid e', 4000, '0%', '100%', false)"> <div id="bulbslide" onmouseover="MM_swapImage('bulb','','images/bulblit.png',1)" onmouseout="MM_swapImgRestore()"> <img id="bulb" src="images/bulb.png" alt="lightbulb" width="193" height="489" id="bulb" /> </div>
    Thanks for any suggestions!

    This is one of those times when I have to say, "just because you CAN do something, doesn't mean you should."
    If you disable CSS in your browsers, the bulb image swap behavior works just fine.  The various other problems with your page layout stem from trying to be too cute for cute's sake. 
    Do not use positioning for primary layouts.  Stick with plain old default CSS positioning (unspecified or static) for 98% of your layouts.  When you start messing around with Fixed and Absolute positioning without a complete understanding of what they do, you will invariably create problems where none should exist.
    For the time being, revert your CSS to default (no positioning, no z-indexes).  When you get the layout to work in all browsers, then you can start introducing other advanced features one at a time.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Possible to color an entire page in Pages ?

    I would like to know if it is possible in Pages to have the entire page colored (not white) and still be  able to add text and photos on top of the colored page (much like one can in Keynote).
    I do short reports and I thought it might be nice to vary the background color of the pages.
    Many thanks for helping.
    Don in the Bay Area,  Calif.

    Dear Peter,
    Many thanks ... how do I create a colored object ?  And how do I send it as a background master object.
    One way that I just tried that seems to work is this :  I create a text box, color it with Fill, and then expand it to coer the entire page. Then I add photos on top and Text boxes which I of course fill with text. It seems to work.
    Is that the method you are suggesting ?   
    Look forward to hearing from you,  Don in California

  • Getserver cookie - returns empty page

    Hi,
    I am using MVC,
    I have firstpage - a controller for that and a model class.
    I have second page - a controller for that and the model is the same as the first one.
    I am using a single model class but multiple controllers and multiple views. I am trying to use server cookies to set and get attributes between the pages.
    First Page - I have 2 attributes - on Do_init - I instantiate Model. Do_request - loads the firstpage. Do_handle-data - once the data is entered in firstpage, gets it from form fields and loads it into cookie.
    Do_handle_event - gets the values from the cookie and processes it and makes a table to be passed to the seconf page. I loaded this table in the cookie and - call second.do
    Second page - in controller  - DOInit - i have again instantiated Model - in Dorequest - I try to read from the cookie for the table data...But I am getting an empty page. I debugged it and in the Do request - where I call the get_server_cookie - nothing happens, just returns empty page...
    Does anyone know why?? can I not access the cookie by name in more than once controllers??
    Is this a right way of navigating between pages?? I want all the objects in the pages accessible across all the pages...should be able to read and write as per events...please suggest...
    Thanks
    Thilothama

    Hi,
         Put that cookie in the navigation->set_parameter and paas it to the next page in the page attributes as an 'AUTO'.
              Hope this may help you.
    Jyoti

  • Printing with Gray background on entire page every time I print through Elements 12

    Every time I print a photo in photoshop, a gray background appears on the entire page of the printed paper (except for 1/4th of an inch margin on all sides.)  This does not happen when printing from iPhoto so I assume it is a preference in photoshop or in my driver/printer settings?  I am set up for sublimation printing and with an ICC profile from Conde Systems.  I work in RGB mode and use the specific color profile downloaded by Conde.  
    I have a feeling that when I set up my settings, I somewhere marked the "hard settings" or "default" background color to print in WHITE…which is somehow translating to gray when I print (this is just a guess.) I am thinking that a setting of mine  is off yet I have no idea where to change it.    If I open a new doc, specify that I want the background transparent, it will print without the gray box!  However, if I open an image and simply hit "print" - the entire page is gray - which is wasting tons of ink.  Creating the new doc and placing the image on that doc and then printing it is a fine temporary solution to the problem but it is not conducive to my business.  Anyone with any knowledge on this  situation would be a lifesaver.   Happy to provide any additional details needed!!!
    Please offer any insight you have - this has been driving me crazy for weeks!!
    Thanks in advance.

    The troubleshooting steps in the document here may help resolve the alignment pages printing on your Photosmart c4485 printer.  Do both cyan and black print properly on the alitnment page?

  • Entire page becomes visually degraded after inserting an image

    This is a weird one. A picture is worth a thousand words, so please see the attached PNGs.
    I'm making a portfolio book. Most page are images with text on the side. In some cases, when I drag an image (All images are JPEGs), the entire page becomes visually degraded - the images color become washed out and the font becomes thin, even if its set to bold.
    I thought it involves CMYK/RGB conversions but everything I tried failed, including changing the color space to every profile I found. The real weird thing is that some JPEGs I can drag and it doesn't change the page graphics, while others cause the weird effect. I looked inside the meta-data, there is nothing different between two JPEGs, yet one will cause the page to degrade and the other wont.
    Any help would be appreciated.

    It appears that it happens whenever there is ANY effect applied to any layer on the page. Transparency, drop shadow, the whole list. I put the objects on different layers, it didn't help.
    I put the images on imageshack:
    before drag - http://img269.imageshack.us/img269/5116/beforedrag.png
    after drag - http://img41.imageshack.us/img41/5844/afterdrag.png

  • Updating UCCX Application returns blank page

    Hi,
    We have IPCC Express 4.5, when adding new application or updating existing apps, it returns blank page. Before, it will work again when we restart the server but now, it just won't work. Is there a known bug for this one? CAn anyone of you help me? We have upcoming scripts to develop and we cannot do any thing to apply it. Thanks in advance.
    Len

    Hi
    I would check the c:\program files\wfavvid\log\MADM logs for any major EXCEPTIONS (search for them in Caps, and try to make sense of what they are telling you
    If you don't have any luck with that, it's possible to delete the appadmin website from Tomcat and it will rebuild the site when you next restart the Node Manager. Go into c:\program files\wfavvid\tomcat_appadmin\webapps, and delete the appadmin folder. There will also be an appadmin.war file there, don't delete that as it contains the compressed website files. When you restart the node, it will be rebuilt and may be fixed.
    Regards
    Aaron
    Please rate helpful posts....

Maybe you are looking for