Get url with ajax

Hello, sorry for my stupid quesiton, I'm flash newbie.
I use the smoothbox and I need to add the smoothbox url into
flash menu.
the html url is:
<a href="mypage.asp?id=1&height=300&width=300"
title="MY TITLE"
class="smoothbox">LINK</a>
In flash I must write a code like this ?
on (release) {
getURL("mypage.asp?id=1&height=300&width=300
title='MY TITLE'
class='smoothbox'","");

Obviously I'm biased, but I believe the hybrid web container provides a number of benefits over a generic hybrid applications, including, but not limited to:
    - Automatic provisioning of applications
    - Encryption of data in the client-side database, something HTML5 doesn't provide
    - Encryption of the contents of the web application itself (JS, HTML, CSS)
    - Push notification support
    - Support for the occasionally disconnected use case, e.g. pushing messages onto a device-side queue while offline which silenty sends said messages as soon as the device comes online again
    - Support for generating applications that work on all major platforms without having to go through the painful process yourself of figuring out what works on which platform and how

Similar Messages

  • Getting started with Ajax - how do I query the db without 'submitting' the page?

    Hi guys,
    I'm building a simple 'power point presentation' - basically a cf page which will display a large jpg [a slide]) every n seconds I want the page to query the db to ask if it needs to change the jpg and if so which jpg should it now show. In this way we can control the presentation by updating the database on the fly.
    So I think I will acheive this as follows:
    1. a 'display' page that contains javascript that fires every n seconds
    2. that js to somehow pass 2 variables (GET?) to an action page (ie user id and an authentication var)
    3. the action page will the query the db (using the vars passed in step 2)
    4. the action page returns a result (path to jpg to display) which somehow(?!) is passed back to the display page
    5. the display page then swaps the jpg it is showing for the one passed back to it in step 4
    6. ideally the display page then also passes another 2 variables to the action page letting us know it has received the update and changed the image accordingly
    I'm fine with all the html and cfm stuff - where I am stuck is the js bits, I've had a good look through google and don't seem to be making any progress so if anyone could please point me in the right direction I'd be ever so grateful.
    Any snippets / advice very gratefully received
    TIA
    Nick

    Hi Nick -
    Let me also recommend jQuery.
    Fantastic stuff once you get the hang of it, and even the simple stuff is cool.
    Ok... here's what I did...
    There are probably better ways to do it, but I cheated, in that I did it my way, and got some good results.
    Using divs to define my display areas here's what I did:
    I have 2 select statements -
    1) Selecting from 1 populates the other select.
    2) The JS function is triggered when a selection is made.
    3) The Ajax statement goes out to a web page, that new page does a query and creates a new div with the same name as "txtResult", for my example.
    4) The Ajax then pulls back the new page and displays it.
    It's pretty easy after a few tries.
    Hope this helps.
    Doug
    function dynamic_Select(poolID){
    $.ajax({
    type: "GET",
    url: '/forms/selectSchedules.cfm',
    data: "id=" + poolID,
    dataType: "text/html",
    success: function(html){
        $("#txtResult").html(html);    
        <div style=" padding-left:100px;">   
            Select Pool:
            <select name="pool" onchange="dynamic_Select(this.value)" />
            <option value="#" selected="selected">-Select-</option>
            <cfoutput query="pools">
            <option value="#poolID#">#poolName#</option>
            </cfoutput>
            </select>
            <span id="txtResult" style=" padding-left:100px;">
                Select Schedule:
                <select name="schedules" id="schedules" onchange="getInfo()">
                <option></option>
                </select>
            </span>
        </div>

  • AS3 get url with XML

    Hello,
    I have a gallery set up and would like to use a thumbnail as a rollover hyperlink.
    If anyone can help it would be much appreciated.
    Kind Regards, Damien
    My AS code is :
    // make the thumbnail clickable
    private function eableThumb():void{
    var len : int = thumbArr.length;
    for(var i:int = 0;i<len;i++){
    thumbArr[i].buttonMode = true;
    thumbArr[i].addEventListener(MouseEvent.CLICK, clickThumb); 
    thumbArr[i].addEventListener(MouseEvent.MOUSE_OVER,overImage);
    thumbArr[i].addEventListener(MouseEvent.MOUSE_OUT,outImage);
    My XML code is :
    <gallery title="Home"> 
    <info>
    <![CDATA[<body>Hey Kids, you can view the <font color="#333333" size="13px">Video Gallery</font> here. These are the featured highlights from the weekend. If you'd
    like entire colections please go to the <font color="#333333" size="13px">Download Section</font> tI semper eros ante eget leo. Maecenas lacus. Vivamus et risus. Sed at lectus at ante elementum bibendum.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed sit amet lacus vel mi dignissim pretium.</body>
    ]]>
    </info>     
    <image img="images/test/47.jpg" icon="icons/test/47.jpg" Url="http://www.blah.com" /> ></image>
    <image img="images/test/48.jpg" icon="icons/test/48.jpg"></image>
    <image img="images/test/50.jpg" icon="icons/test/50.jpg"></image>
    <image img="images/test/51.jpg" icon="icons/test/51.jpg"></image>
    <image img="images/test/52.jpg" icon="icons/test/52.jpg"></image>
    <image img="images/test/53.jpg" icon="icons/test/53.jpg"></image>
    <image img="images/test/54.jpg" icon="icons/test/54.jpg"></image>
    <image img="images/test/55.jpg" icon="icons/test/55.jpg"></image>
    <image img="images/test/56.jpg" icon="icons/test/56.jpg"></image>    
    <image img="images/test/57.jpg" icon="icons/test/57.jpg"></image>
    <image img="images/test/58.jpg" icon="icons/test/58.jpg"></image>
    <image img="images/test/60.jpg" icon="icons/test/60.jpg"></image>
    </gallery>

    http://www.flashmagazine.com/tutorials/detail/as3_photo_gallery/
    Check out this tutorial it very near to what ur trying to build

  • Trying to register with ePrint and getting error code.Ajax submit failed: error = 403, Forbidden.

    Trying to register with ePrint and getting error code.Ajax submit failed: error = 403, Forbidden. I need help??

    To bypass this error attempt either a restart of your computer, or use an alernate broser such as firefox or chrome. If you already have another browser the latter may be the easier fix.
    Jon-W
    I work on behalf of HP
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    Click the KUDOS STAR on the left to say “Thanks” for helping!

  • Since installing Lion I keep getting the error message 'there was a problem connecting to the server. URLs with the type 'file:" are not supported"' How can I fix this?

    since installing Lion I keep getting the error message 'there was a problem connecting to the server. URLs with the type 'file:" are not supported"' How can I fix this?

    A Davey1 wrote:
    Not a nice answer!
    Posting "Check the 'More like this'" area and not simply providing the answer is a great way to make these groups worthless.
    You're ignoring context.  On the old Apple Discussion Groups I never posted replies like that, instead giving people relatively detailed answers.  The new Apple Support Communities made things worse by introducing certain inefficiencies.  Then came Lion.  The flood of messages that came with Lion required a painful choice for any of the people who had been helping here: (1) Give quality responses to a few questions and ignore the rest.  (2) When applicable, give a brief answer such as the one that you found objectionable.  (3) Give up all the other normal activities of life and spend full time trying to answer questions here.
    People who needed help with Lion problems seemed to have trouble discovering existing message threads that described how to solve their problems.  I never posted the suggestion of "Check the 'More like this' area" without verifying that the help that the poster needed could be found there.  Even doing that, what I posted saved me time that I could use to help someone else.
    The people helping here are all volunteers.  None of them is being paid for the time they spend here.  They all have a life outside of Apple Support Communities.  It's arrogant of you to demand that people helping here spend more time than they already do.

  • Help with calling a Get URL

    I am having a problem with calling a series of web pages
    within my movie. I have an index.fla that I publish to html. Within
    the index.html, I am calling multiple swf files to load content.
    Home.swf loads when the index page displays. Then the user clicks
    on any button and each button loads another swf replacing the main
    content with perhaps loading it's own swf files of content also.
    Everything is working fine. However, on one called swf file, called
    students.swf, I also have a menu swf file that is called when
    students loads. This menu swf file has text listed with
    actionscripting calling a data file that causes the text to expand
    and rollout and display a label of the url. When the user clicks on
    the list name I have a get url to the url of the label. Everything
    works fine in the swf files when I test the movies for the swf for
    the menu file and for the student file swf. However, when I publish
    and run the index page and start testing out the student swf that
    is called, the menu will not open up a new browser window with the
    link designated in the get url. I can't figure it out! It works
    fine in the swf files, but not when I test it out through the index
    controlling file. Please Help!!!

    if you're using as2, try adding
    this._lockroot=true;
    to the movieclip that contains getURL, the student file
    swf.

  • Something wrong with my 'get url' code...

    I've got a button that's in a flash movie embedded in an html
    document. When pressed, I want it to open a new window displaying
    this URL: E:\Folder Name\Movie Name.html
    I've attached the following code to the button:
    on (release) {
    getURL ("javascript:spawnWindow('E:\Folder Name\Movie
    Name.html','Newwin','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable= no,width=400,height=400')");
    Nothing happens when I press the button with the existing
    code, but when I replace the URL with an http address, such as
    http://www.google.ca/, it works,
    and the new window launches.

    Maybe its a real problem if u want to get a direction such us
    E:\something, this link will never work if u upload it on internet,
    may be u should put instead of that direction, "Movie Name.html"
    and place the swf next to ur .hml file.
    Maybe its also because "movie name.html" it has an space in
    the name, i got such big problems doing that, u may use this
    movie_name.html

  • I keep getting an error message saying "There was a problem connecting to the server.  URLs with the type "file:" are not supported."  Can someone help me get rid of it.

    I keep getting an error message saying "There was a problem connecting to the server.  URLs with the type "file:" are not supported"  Can someone help me locate and get rid of this error.

    Open the Time Machine pane in System Preferences. If it shows that Time Machine is ON, click the padlock icon in the lower left corner, if necessary, to unlock it. Scroll to the bottom of the list of backup drives and click Add or Remove Backup Disk. Remove all the disks, then add them back. Quit System Preferences. Test.

  • My Mac suddenly started getting a pop up message saying "There was a problem conecting to the server. URLs with the type "file" are not supported." My internet is working fine,no problem connecting. I just keep getting this message which I click off .

    My Mac suddenly started getting a pop up message saying "There was a problem conecting to the server. URLs with the type "file" are not supported." My internet is working fine,no problem connecting. I just keep getting this message which I click off and continue working.

    Open the Time Machine pane in System Preferences. If it shows that Time Machine is ON, click the padlock icon in the lower left corner, if necessary, to unlock it. Scroll to the bottom of the list of backup drives and click Add or Remove Backup Disk. Remove all the disks, then add them back. Quit System Preferences. Test.

  • I keep getting an error message there was a problem connecting to server.  URLs with the type "file" are not supported

    I keep getting an error messahe that says
    There was a problem connecting to the server.  URLs with type "file" are not supported
    Any ideas?

    Actually, in my case, turning off Time Machine didn't work. I had the same problem. We definitely traced it to Time Machine. The "Fix" was this: plugged in and designated different external HD as Backup volume. Then unplugged it and plugged in the original disc (after testing in in a different machine) and now the computer recognized it and error message stopped popping up. The Apple tech was as puzzled as I as to why this worked, but perhaps, forcing the machine to re-recognize it (or maybe even, gettting it recognized by a different machine first) somehow worked some magic.

  • I upgraded to Lion yesterday. Now I keep getting and error message: there was a problem connecting to the server. URLs with type "file:" are not supported. What server?

    I upgraded to Lion yesterday. Now I keep getting and error message: there was a problem connecting to the server. URLs with type "file:" are not supported. What server? How do I get rid of this.

    Take a look at this link, https://discussions.apple.com/message/16156214#16156214

  • URL getting appended with the code

    Hi All,
    When I am trying to open a window as a pop-up in my BSP application it is appending the URL with the code I have written .
    It looks as below :
    http://sample.htmwindow.open('test.htm','width=100,height=200').
    The above URL is opening the Test.htm page but not as pop-up.Its overridding the new page and in the URL of this page I am able to see the above URL
    Can anyone tell me where I have done a mistake to open this window.
    Thanks ,
    Ghousia Naaz

    Hi,
    Could you please provide the code you've written?
    Did you try putting "javascript:" in front of your window.open code?
    Best regards,
    Guillaume

  • Why do I have to append URL with /index.htm on one KB?

    I have 7 different KBs I maintain on my webserver. I am using RoboHelp 7. For one of them, I have to append the URL with /index.htm, or it does not show the correct information. Examples of two of the KBs, and what happens with & without the index.htm appendeden
    I will happily provide any other information. I've been wondering about this for a long time, and it's finally driven me batty enough to ask. Thanks so much for any assistance. Greatly appreciate your input, this is a wonderful resource.
    http://wpa10suppliertest.am.mot-mobility.com/ opens a training KB for supplier information. See screenshot of the WebHelp Primary Layout:
    However, for http://wpa10user.am.mot-mobility.com/ if I do not append with http://wpa10user.am.mot-mobility.com/index.htm, I get no content, and the first skin I tried out. The settings are the same:
    http://wpa10user.am.mot-mobility.com/:
    http://wpa10user.am.mot-mobility.com/index.htm:

    Hi William,
    That makes sense - but I had looked at my IIS setups and they appear the same for all KBs, again here are settings for WPA Supplier & User. I created both the same day, the same way, and have compared all tabs which are identical. I can double check on how the DNS aliases that were set up, but they should have been identical as well

  • How to read the param in an URL with an applet???

    I will like to read the in an URL with an applet param (after the ?)
    I need the equivalent of: String parm1 = request.getParameter("param"); but for applet
    I think the HttpServletResponse doesn't work in an applet ???
    Tell me if I'am right
    Thanks for your help
    Benoit

    Hi
    What you can do is, just get that URL in the web page. Like as we can get in the ASP. Store the required information in the variables and pass this information as parameters to the applet.
    Hope this helps!

  • Hi! I need to load a GET url that si very long. On other browsers, I can load the url. In firefox 3.6, no. There is an addons or a plugin so I can extend this limit? If yes, is possible to load automatically this addons when loading a certain page? thanks

    Hi!
    I need to load a GET url that si very long. On other browsers, I can load the url. In firefox 3.6, no.
    There is an addons or a plugin so I can extend this limit? If yes, is possible to load automatically this addons when loading a certain page? thanks
    The url is sometingh like this (this is correctly loaded, but it could be longer)

    Firefox should have problems with long GET data appended to an URL (long would be over 64k).<br />
    If there are problems then it is possible that an extension is the cause of that.
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

Maybe you are looking for

  • Edit stage size without effecting elements position.

    Question.  Can you change the size of your stage, say smaller than what you started with, so that when you move your elements to the new position of the stage the motion paths do get messed up because you moved everything? I have a "full" page layout

  • What's wrong with the Aperture 2.1.3 Update?

    Hi, I downloaded the Aperture 2.1.3 Update but am unable to update my existing Aperture 2.0.1 version. Whe I try to run the installer, I get the following message: "Aperture 2.0 or later is required to install this update." Any suggestion or help is

  • Subsequent debit with excise

    Hi We are reciving the subsequent invoices for the last one month PO's with excise components How we can take the credit of Cenvat and control the valuation of the material.(as, some stock must be consumed) With Regards Niti Narayan

  • Windows 64-bit + OBIEE 11g + Internet Explorer 10

    Not a question this time, just an observation about the interaction between OBIEE 11.1.1.6.0 and IE 10 on 64-bit Windows. After installing OBIEE 11.1.1.6.0 on 64-bit Windows, the Analytics environment worked fine in IE 10. When starting BI Services f

  • What will happen if I reset all setting

    What will happen if I reset all settings