Make dynamic mc draggable

Hi All,
I have some code to drag and drop a movieclip. The code works
ok if it
is inside the movieclip and in my old flash photo gallery the
clips were
put in manually and the photos added by xml.
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.setDepthTo(kTop)
this.startDrag();
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.stopDrag();
In my new slideshow I am adding the photos using xml and
dynamically
creating the movieclip and loading the photos. Therefore,
there is no
physical movieclip to add code to manually. How can I add
this code to
the movieclip as it is created and loaded so that it becomes
draggable?
Or, how do I make a dynamically loaded movieclip loaded with
a jpeg
draggable?
Thanks for any advice,
Jeff C

Thanks Blemmo,
I put the code in the 'onLoadInit' function and it works a
treat. Thanks
for the tip.
targetMC.onMouseDown = function(){
if (this.hitTest(_root._xmouse, _root._ymouse)) {
var nextDepth:Number = this.getNextHighestDepth();
this.setDepthTo(nextDepth)
this.startDrag();
targetMC.onMouseUp = function(){
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.stopDrag();
Thanks,
Jeff C.
blemmo wrote:
>Those clip events have a similar expression in dot
syntax. For the mouse events
>it's
> mc_instance.onMouseDown
> and
> mc_instance.onMouseUp
>
> So you could use your old code with those:
> --
> mc_instance.onMouseDown = function(){
> if (this.hitTest(_root._xmouse, _root._ymouse)) {
> this.setDepthTo(kTop)
> this.startDrag();
> }
> }
> --
>
> Just make sure the jpg is already loaded, because a call
to loadMovie can
>remove the events assigned to the MC. So it's safer to
use some preloading code
>or the MovieClipLoader, and assign the mouse events when
the loading is
>finished.
>
> hth,
> blemmo
>
>
>

Similar Messages

  • How to make dynamic search items in a report?

    Hi all,
    I have two questions.
    1. How to make dynamic search (i.e without GO button) field above report to provide dynamic search by words in one field of report query?
    2. How to make similar multiply dynamic search fields on report to provide individual search by selected fields of report with refine capability (i.e any search conditions in different fields must work together as complex WHERE clause)
    Thanks in advance

    hey yuri--
    if i'm understanding your questions correctly, the easiest way to achieve the functionality you're after is to have your query criteria fields submit the page when values are entered/selected. the page should then branch back to itself using the submitted criteria in the query. because you're asking about dynamically adding in your where clause predicates, you should consider using a report region of type "SQL Query (Pl/sql Function Body Returning SQL Query)". that way you can use pl/sql to piece together your query based on the provided criteria.
    so the part of your question i'm not sure of is when your page should submit itself ("without a GO button" as you said). for your first question, it seems to be a simple matter of javascript. you want users to be able to enter search criteria into a field and have that criteria be using in the report. to facilitate that we have a few self-submitting item types such as "SelectList with Submit" and "Text Field (always submits page when Enter pressed)". for your second question, it seems that you should have a Go button for the user to indicate he's done entering in his query criteria. anyhow, that's up to you, i suppose. hopefully this response will give you the concepts you need to implement this as you'd like.
    regards,
    raj
    ps-after re-reading your post, i now realize there's a chance that you wanted users to not have to submit the page at all when filtering their result sets. if that's the case, you'd have to use javascript for that cumbersome feat. google would be a good place to go for that code.

  • Can java make dynamic game sigs?

    Im just wondering if java can make dynamic game sigs.
    I would have no idea how to go about it, so if somone could point me in the right direction that would be swell.
    Cheers

    What is 'dynamic game sigs'?

  • How make dynamic site with MUSE

    Howdy, i want ask how make dynamic site with muse, can it intergated with CMS like wordpress, joomla, drupal etc?
    Thanks,
    best regard,
    harles

    Hello Harles,
    The CMS functionality till now is only supported with Muse while using Business Catalyst as host.
    Please refer to forum posts : http://forums.adobe.com/message/4418294?tstart=0 and http://forums.adobe.com/message/4776241#4776241 .
    Hope this helps.
    Regards,
    Sachin

  • Make Dynamic text non-clickable

    Hi Guys,
    I need to learn how to make dynamic text non-clickable, like
    those in loaders. Any Ideas...?
    Thanks in Advance

    you mean non-selectable. :)
    you'll find this option in the properties panel. with the
    text tool selected (or with a text-box selected on the stage)
    search the properties panel for a button showing 'Ab' where 'b'
    looks like it was selected. that's the button controlling if the
    text is selectable or not.
    got it? (i can post you a screenshot if you can't find it) ;)
    adam

  • How to make Dynamically Shortened Text With "Show More"

    Hi there! i want to know how to make dynamically shortened text with show more or read more in my website using HTML 5 pages  or ASP.NET ?
    example like these paragraphs 
    Lorem Ipsum är en utfyllnadstext från tryck- och förlagsindustrin. Lorem ipsum har varit standard ända sedan 1500-talet, när en okänd boksättare tog att antal bokstäver och blandade dem för att göra ett provexemplar av en bok. Lorem ipsum har inte bara överlevt fem århundraden, utan även övergången till elektronisk typografi utan större förändringar. Det blev allmänt känt på 1960-talet i samband med lanseringen av Letraset-ark med avsnitt av Lorem Ipsum, och senare med mjukvaror som Aldus PageMaker.
    Det är ett välkänt faktum att läsare distraheras av läsbar text på en sida när man skall studera layouten. Poängen med Lorem Ipsum är att det ger ett normalt ordflöde, till skillnad från "Text här, Text här", och ger intryck av att vara läsbar text. Många publiseringprogram och webbutvecklare använder Lorem Ipsum som test-text, och en sökning efter "Lorem Ipsum" avslöjar många webbsidor under uteckling. Olika versioner har dykt upp under åren, ibland av olyckshändelse, ibland med flit (mer eller mindre humoristiska).
    I motsättning till vad många tror, är inte Lorem Ipsum slumvisa ord. Det har sina rötter i ett stycke klassiskt litteratur på latin från 45 år före år 0, och är alltså över 2000 år gammalt. Richard McClintock, en professor i latin på Hampden-Sydney College i Virginia, översatte ett av de mer ovanliga orden, consectetur, från ett stycke Lorem Ipsum och fann dess ursprung genom att studera användningen av dessa ord i klassisk litteratur. Lorem Ipsum kommer från styckena 1.10.32 och 1.10.33 av "de Finibus Bonorum et Malorum" (Ytterligheterna av ont och gott) av Cicero, skriven 45 före år 0. Boken är en avhandling i teorier om etik, och var väldigt populär under renäsanssen. Den inledande meningen i Lorem Ipsum, "Lorem Ipsum dolor sit amet...", kommer från stycke 1.10.32.
    Den ursprungliga Lorem Ipsum-texten från 1500-talet är återgiven nedan för de intresserade. Styckena 1.10.32 och 1.10.33 från "de Finibus Bonorum et Malorum" av Cicero hittar du också i deras originala form, åtföljda av de engelska översättningarna av H. Rackham från 1914.

    Moved to the main Dreamweaver support forum.
    There are several ways you could approach this. Here's one you might try:
    Give the first paragraph an ID, such as "first", and wrap the paragraphs you want to hide in a <div> with another ID, such as "more". Then add the following block of JavaScript just before the closing </body> tag of the page:
    <script>
    var first = document.getElementById('first'),
         more = document.getElementById('more'),
         trigger = document.createElement('span');
    trigger.id = 'trigger';
    trigger.innerHTML = 'Show less';
    first.appendChild(trigger);
    function toggleDiv() {
      var state = more.className,
           text = trigger.innerHTML;
      more.className = (state == 'open') ? 'closed' : 'open';
      trigger.innerHTML = (text == 'Show more') ? 'Show less' : 'Show more';
    toggleDiv();
    if (trigger.addEventListener) {
        trigger.addEventListener('click', toggleDiv, false);
    } else if (trigger.attachEvent) {
      trigger.attachEvent('onclick', toggleDiv);
    } else {
      trigger.onclick = toggleDiv;
    </script>
    This gets references to the "first" paragraph and the "more" <div>. It also creates a <span> with the ID "trigger" that's appended to the "first" paragraph. The rest of the script defines a function called toggleDiv(), which toggles the "more" <div> open and closed, and changes the text in the "trigger" <span>.
    You also need to create the following style rules for the various elements:
    <style>
    #trigger {
        text-decoration: underline;
        color: blue;
        cursor: pointer;
    #more {
        transition: ease-out .7s;
        overflow: hidden;
    #more p:first-child {
        margin-top: 0;
    #more.closed {
        height: 0;
        -webkit-transform: translateY(-600px);
        transform: translateY(-600px);
    #more.open {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        max-height: 600px;
    #more + p {
        margin-top: 0;
    </style>
    This solution hides the text and creates the "trigger" <span> only if JavaScript is enabled in the browser. It should work in all browsers, including Internet Explorer 8 and earlier.

  • How do I make dynamic text look static while the HMTL tagging is enabled?

    Hi all,
    I am using flash 8 with AS 2.0.
    I have a dynamic text field where I am setting it's text value through a variable. Now, I need this dynamic text field content to look like static font on runtime. I tried embedding the text field but that makes my file so heavy and most importantly, it disables the HTML tagging on the text field.
    Please suggest me on how to make a dynamic text field content look static on runtime while the HTML tagging is enabled and working fine.
    Thanks.

    I am sorry. But the attachment was not intended for what you
    thought my friend.
    It was there so that there are no confusions for what I mean by look of dynamic and static text fields.

  • How to make dynamic PDF form flowable across 2 pages in LiveCycle?

    I have a dynamic PDF form that is flowable on each page but not both. By that I mean that the fields on the 2nd page won't move to the 1st page if there is available space. How can I make the entire document flowable? I am using Adobe LiveCycle ES2 Designer to create the form. Thank you in advance.

    Hi,
    you need just one page which is flowable and allows page breaks.

  • How to make dynamic provider-url for MDB.

    Hi,
              My application has an MDB that need to bind to a remote queue. The .bindigs file is created and put in a specified location. Is there any way I can specify a dynamic value for this location in the <provider-url> tag in my weblogic-ejb.xml file. This is because, in our UNIX test and prod servers, the location of the .bindings file different from what I have on my local box. I have tried like this, but it did not work.
              <provider-url>file:/%DOMAIN_DIR%/config/<provider-url>
              We always have a 'config' directory under the domain and if the domain name changes in different environments, i don't have to make any changes to my descriptor file.
              Thanks,
              Rajeev

    I met a similar problem when I used the foreign JMS server. I configured the foreign server via console. I tried to subscribe a remote topic which was maintained by another WebLogic JMS server. When I built my MDB, I got the following exception. The remote JMS server name could not be resolved. Any suggection is appreciated.
              <Sep 19, 2005 6:11:56 PM EDT> <Warning> <EJB> <BEA-010061> <The Message-Driven E
              JB: SIGNIT is unable to connect to the JMS destination: jms/DCGSCatalogTopic. Th
              e Error was:
              [EJB:010196]'weblogic.jms.common.JMSException: Error creating session' Linked ex
              ception = 'weblogic.jms.dispatcher.DispatcherException: could not find JMS Serve
              r riicServer'
              weblogic.jms.common.JMSException: Error creating session
              at weblogic.jms.frontend.FESession.setUpBackEndSession(FESession.java:79
              8)
              at weblogic.jms.frontend.FESession.consumerCreate(FESession.java:1038)
              at weblogic.jms.frontend.FESession.invoke(FESession.java:2552)
              at weblogic.jms.dispatcher.Request.wrappedFiniteStateMachine(Request.jav
              a:643)
              at weblogic.jms.dispatcher.DispatcherImpl.dispatchSync(DispatcherImpl.ja
              va:179)
              at weblogic.jms.client.JMSSession.consumerCreate(JMSSession.java:1860)
              at weblogic.jms.client.JMSSession.createConsumer(JMSSession.java:1691)
              at weblogic.jms.client.JMSSession.createSubscriber(JMSSession.java:1422)
              at weblogic.ejb20.internal.JMSConnectionPoller.setUpTopicSessions(JMSCon
              nectionPoller.java:1582)
              at weblogic.ejb20.internal.JMSConnectionPoller.createJMSConnection(JMSCo
              nnectionPoller.java:2009)
              at weblogic.ejb20.internal.JMSConnectionPoller.connectToJMS(JMSConnectio
              nPoller.java:1180)
              at weblogic.ejb20.internal.JMSConnectionPoller.startJMSConnectionPolling
              (JMSConnectionPoller.java:846)
              at weblogic.ejb20.deployer.MessageDrivenBeanPoolInfoImpl.start(MessageDr
              ivenBeanPoolInfoImpl.java:234)
              at weblogic.ejb20.deployer.EJBDeployer.deployMessageDrivenBeans(EJBDeplo
              yer.java:1660)
              at weblogic.ejb20.deployer.EJBDeployer.start(EJBDeployer.java:1488)
              at weblogic.ejb20.deployer.EJBModule.start(EJBModule.java:689)
              at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer
              .java:2127)
              at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContai
              ner.java:2168)
              at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.
              activateContainer(SlaveDeployer.java:2503)
              at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(
              SlaveDeployer.java:2421)
              at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeplo
              yer.java:2138)
              at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(S
              laveDeployer.java:2237)
              at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDepl
              oyer.java:2132)
              at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(S
              laveDeployer.java:2384)
              at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Sla
              veDeployer.java:866)
              at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDepl
              oyer.java:594)
              at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDep
              loyer.java:508)
              at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan
              dler.java:25)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
              Caused by: weblogic.jms.dispatcher.DispatcherException: could not find JMS Serve
              r riicServer
              at weblogic.jms.dispatcher.DispatcherManager.dispatcherCreate(Dispatcher
              Manager.java:330)
              at weblogic.jms.dispatcher.DispatcherManager.dispatcherFindOrCreate(Disp
              atcherManager.java:380)
              at weblogic.jms.frontend.FESession.setUpBackEndSession(FESession.java:79
              6)
              ... 29 more
              Caused by: javax.naming.NameNotFoundException: Unable to resolve 'weblogic.jms.S
              :riicServer' Resolved weblogic.jms; remaining name 'S:riicServer'
              at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(Basic
              NamingNode.java:897)
              at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.jav
              a:230)
              at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.j
              ava:154)
              at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:18
              8)
              at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:19
              6)
              at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:19
              6)
              at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.j
              ava:256)
              at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:359)
              at javax.naming.InitialContext.lookup(InitialContext.java:347)
              at weblogic.jms.dispatcher.DispatcherManager.dispatcherCreate(Dispatcher
              Manager.java:314)
              ... 31 more
              >
              <Sep 19, 2005 6:12:06 PM EDT> <Warning> <EJB> <BEA-010096> <The Message-Driven E
              JB: SIGNIT is unable to connect to the JMS destination: jms/DCGSCatalogTopic. Co
              nnection failed after 2 attempts. The MDB will attempt to reconnect every 10 sec
              onds. This log message will repeat every 600 seconds until the condition clears.
              >
              <Sep 19, 2005 6:12:06 PM EDT> <Warning> <EJB> <BEA-010061> <The Message-Driven E
              JB: SIGNIT is unable to connect to the JMS destination: jms/DCGSCatalogTopic. Th
              e Error was:
              [EJB:010196]'weblogic.jms.common.JMSException: Error creating session' Linked ex
              ception = 'weblogic.jms.dispatcher.DispatcherException: could not find JMS Serve
              r riicServer'
              weblogic.jms.common.JMSException: Error creating session
              at weblogic.jms.frontend.FESession.setUpBackEndSession(FESession.java:79
              8)
              at weblogic.jms.frontend.FESession.consumerCreate(FESession.java:1038)
              at weblogic.jms.frontend.FESession.invoke(FESession.java:2552)
              at weblogic.jms.dispatcher.Request.wrappedFiniteStateMachine(Request.jav
              a:643)
              at weblogic.jms.dispatcher.DispatcherImpl.dispatchSync(DispatcherImpl.ja
              va:179)
              at weblogic.jms.client.JMSSession.consumerCreate(JMSSession.java:1860)
              at weblogic.jms.client.JMSSession.createConsumer(JMSSession.java:1691)
              at weblogic.jms.client.JMSSession.createSubscriber(JMSSession.java:1422)
              at weblogic.ejb20.internal.JMSConnectionPoller.setUpTopicSessions(JMSCon
              nectionPoller.java:1582)
              at weblogic.ejb20.internal.JMSConnectionPoller.createJMSConnection(JMSCo
              nnectionPoller.java:2009)
              at weblogic.ejb20.internal.JMSConnectionPoller.connectToJMS(JMSConnectio
              nPoller.java:1180)
              at weblogic.ejb20.internal.JMSConnectionPoller.trigger(JMSConnectionPoll
              er.java:978)
              at weblogic.time.common.internal.ScheduledTrigger.run(ScheduledTrigger.j
              ava:243)
              at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
              dSubject.java:321)
              at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
              121)
              at weblogic.time.common.internal.ScheduledTrigger.executeLocally(Schedul
              edTrigger.java:229)
              at weblogic.time.common.internal.ScheduledTrigger.execute(ScheduledTrigg
              er.java:223)
              at weblogic.time.server.ScheduledTrigger.execute(ScheduledTrigger.java:5
              0)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
              Caused by: weblogic.jms.dispatcher.DispatcherException: could not find JMS Serve
              r riicServer
              at weblogic.jms.dispatcher.DispatcherManager.dispatcherCreate(Dispatcher
              Manager.java:330)
              at weblogic.jms.dispatcher.DispatcherManager.dispatcherFindOrCreate(Disp
              atcherManager.java:380)
              at weblogic.jms.frontend.FESession.setUpBackEndSession(FESession.java:79
              6)
              ... 19 more
              Caused by: javax.naming.NameNotFoundException: Unable to resolve 'weblogic.jms.S
              :riicServer' Resolved weblogic.jms; remaining name 'S:riicServer'
              at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(Basic
              NamingNode.java:897)
              at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.jav
              a:230)
              at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.j
              ava:154)
              at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:18
              8)
              at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:19
              6)
              at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:19
              6)
              at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.j
              ava:256)
              at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:359)
              at javax.naming.InitialContext.lookup(InitialContext.java:347)
              at weblogic.jms.dispatcher.DispatcherManager.dispatcherCreate(Dispatcher
              Manager.java:314)
              ... 21 more
              >

  • How to make dynamic selection in case of innerjoin

    hi
    in run time i will get some table name into g_v_fubw
    if i write a select quiry like this its working
      SELECT * FROM (g_v_fubw)
        INTO TABLE g_it_fubw
        FOR ALL ENTRIES IN g_it_werks
        WHERE kostl IN s_kostl3    AND
              platznr IN s_platz3  AND
              werks = g_it_werks-werks   AND
              matnr IN s_matnr     AND
              prctr IN s_prctr.
    But if i am  using inner join  like bellow
        SELECT
        avalev ainvpe vastrd vtxjhr a~bukrs
        awerks amatnr
        aindei abwtar a~bklas
        v~adqty
        v~meins
        a~peinh
        INTO TABLE g_it_temp_display
                FROM (g_v_fuba) AS a INNER JOIN
                     (g_v_abcd) AS v ON
                       amatnr = vmatnr AND
                       ainvpe = vinvpe
              WHERE a~invpe EQ p_invw                 AND
                    a~valev EQ 'P'              AND
                    v~astrd IN g_r_astrd              AND
                    v~txjhr IN g_r_txjhr              AND
                    a~bukrs EQ p_bukrs                AND
    its not working
    how can i write dynamic select quiry using innerjoin

    Hi...
    Make sure the structure of g_it_temp_display is same as the selected fields.
    FROM (g_v_fuba AS a INNER JOIN
    g_v_abcd AS v ON
    amatnr = vmatnr AND
    ainvpe = vinvpe ).....>
    See the syntax...
    as below...
    SELECT a~knuma_ag          "SAP agreement number
           a~boart_ag              "SAP agreement type
           a~zzlegsum              "Legacy summary number
           b~datab                 "Begin date
           b~datbi                 "End date
      FROM ( /irm/ipbbasp AS a INNER JOIN  kona AS b ON
      aknuma_ag = bknuma )
      INTO TABLE i_irm_kona
      FOR ALL ENTRIES  IN i_kona_deal
      WHERE a~boart_ag IN r_agrmnt_typ  AND         "SAP agreement type
            a~zzlegsum IN r_summ_number AND         "Legacy summary number
            b~knuma = i_kona_deal-knuma AND         "SAP agreement No
            b~valdt    IN r_ppd.                "Prior price date

  • How do make dynamic images ?

    Hi,
    I want to display dynamic images ? like if i want to design a a meter showing CPU temperature, how can i do that? here is one image example on this website..
    http://images.google.com/imgres?imgurl=http://www.snapstream.com/images/blog/godzilla/overheating_max_cpu_tn.jpg&imgrefurl=http://blogs.snapstream.com/2006/01/18/godzilla-pvr/&h=516&w=683&sz=80&hl=en&start=3&tbnid=huDY6gDdtS_o-M:&tbnh=105&tbnw=139&prev=/images%3Fq%3DCPU%2Btemperature%26gbv%3D2%26svnum%3D10%26hl%3Den%26sa%3DG
    Am I supposed to use Swing? are there any online examples? plz help me..i need to do it ASAP. I posted the same thread in Java programming forum also, but something stupid comes up..some porno foto comes up when i open up the thread..so had to make another thread
    Anyways, I will wait for the reply...thanks in advance

    http://forum.java.sun.com/thread.jspa?threadID=5184236&tstart=0
    Don't double post! Use link above to make replies.

  • Make dynamic table

    Hi there,
    How can i make a dynamic table.
    If possible without beans or classes.
    It must be a edtit/insert table.
    any ideas? If you have something, please send me an example.
    Thx

    i have no clue what that is, but as far as a dynamic table, if i understand what you mean
    resultset = statement.executeQuery("select col1, col2, col3 from table");
    while(resultset.next()) {
        out.println("<tr><td>" + rs.getString("col1") + "</td><td>" rs.getSTring("col2") + "</td><td>" + rs.getString("col3") + "</td></tr>");
    or something liike that

  • Rotate Dynamic text and make dynamic text go vertical

    Hello
    I am working on a visual customizer flash app in actionscript 2.0. Looking for good tutorials or examples of how to rotate dynamic text as well as how to make it vertical. Currently all the dynamic embedded text changes colors and size.
    Any help would be greatly appreciated. Thank you.

    distribute each character to a textfield and arrange the textfields to suit your needs.

  • How to make dynamical drop down menu?

    I am trying to make a drop down menu which is dynamical in dreamweaver? is there a way to do that? i am not good at programming.

    Here are links to a couple of tutorials for this:
    http://www.roscripts.com/Building_a_dynamic_drop_down_menu-216.html
    http://www.finalwebsites.com/tutorials/dynamic-navigation-list.php

  • How to make dynamic form fields update?

    This is going to be an ugly post, fair warning! :)
    I have a form that gets it's labels and text input field
    names dynamically from a database. Rather than having the form
    hardcoded, we are able to add new columns to a table and the form
    automatically adds new labels and fields via CFQUERY.
    When the form is completed and they submit (method post), the
    database is supposed to update. However, because our input field
    names are being populated via query, we can't write a static update
    query when we add new form items.
    So, I do have a solution to this (in my head), but I'm stuck
    at a bit of logic and am having trouble getting it out in code. I'm
    looking for a way to write #FORM.#fieldname## (here is where it
    gets ugly). Since the form submits by post method, I am left with a
    bunch of FORM.fieldname's on my action page (and fieldname is
    generic for what the actual variables are).
    So here's how I am updating:
    I have a table (call it table1) that contains a column of all
    the column names of my data table (table2). This table is used for
    query purposes only, no data is updated here from the form.
    I query table1 to call all the names of the columns in
    table2.
    <cquery datasource="exdb" name="exname">
    SELECT columnName
    FROM table1
    </cfquery>
    Then I write the update query which will update items as they
    are looped using CFOUTPUT:
    <CFOUTPUT QUERY="exname">
    <cfquery datasource="exdb" name="exupdate">
    UPDATE table2
    SET #columnName# = #FORM.<columnName>#
    WHERE itemID = #FORM.itemID#
    This is my dilemma. As you can see, the cfoutput is a loop..
    so let's take the first item in the loop, call it "name1". So our
    update query says SET name1 = #FORM.name1#, and this will update
    the table with whatever was submitted in name1's input field. The
    cfoutput loops again, this time it's name2. SET name2 =
    #FORM.name2#. Now the form does include a hidden input of itemID to
    specify where the table should be updating, as you can see above.
    So, now that you see how this works, my problem is getting
    #FORM.<columnName># to be FORM.name1, FORM.name2, etc.
    In Coldfusion you would write #FORM.variable# to call a FORM
    item. However, since the variable is pretty much undefined and we
    use a query to populate it, we need to do #FORM.#variable## where
    #variable# needs to be resolved before #FORM._______#
    Are you with me on this? It's very complex in explanation,
    but if you need more info, I can provide it more clearly. Let me
    know what you guys think. Really, I have the solution, but getting
    #FORM.#columnName## to resolve is another problem. I think what i
    need is to figure out the order of operation for that statement, so
    #columnName# resolves first.

    You'll want to use the scope structure notation when dealing
    with your form variables. The variable Form.SomeVar can also be
    written as Form["SomeVar"]. Using this syntax, you can do something
    like this:
    UPDATE table2
    SET #columnName# = #FORM[columnName]#
    WHERE itemID = #FORM.itemID#
    You may also want to look into the following to help optimize
    your code:
    1) check out how to use <cfqueryparam> - it might speed
    your code up a bit.
    2) depending on the DB you are using, you may be able to
    combine all of your UPDATE SQL commands inside 1 <cfquery>
    </cfquery> block. This will allow you to do all your database
    actions with 1 DB connection, instead of a bunch (works in MSSQL,
    not sure about Oracle or MySQL)

Maybe you are looking for

  • Goods Receipt for Inbound Delivery through MIGO

    Hi All, Can anyone pl. explain me in steps the process of GR for Inbound Delivery from MIGO transaction. Also I need the process of reversing this goods receipt done. For certain inbound deliveries a dump occurs in the program SAPLIE01 in 'EQUIPMENT_

  • Sending xml files via AS2 adapter

    Hi Experts, I have an interface which requires an IDOC to XML scenario. This is a simple pick and drop scenario with no mapping required. We just have to send the IDOC to the 3rd party via AS2 receiver in XML format. Currently, the 3rd party receiver

  • Stay connected

    internet connection This is your reminder that your connection is still active. Do you wish to remain connected ? stay connected or disconnect ? I get this message all day long, what can be done to stop it ?

  • Why is the new email count inaccurate?

    Mail is not accurately reporting how many new emails are available. For example, I can read all of my new email, and it will still report that I have unread emails.  Also, if I do have unread emails, it won't display that is the case.  I notice the i

  • Problem in program Downloads

    I have a problem in the program download When I download  the device sometimes freezes completely until closing my mopile(download in the page) Is there any solution to this problem ? Attachments: screenshot03.png ‏70 KB