Alpha DevCon 2018
Results 1 to 3 of 3

Thread: JQuery in AlphaLaunch?

  1. #1
    Member
    Real Name
    Jan Jedrasik
    Join Date
    May 2017
    Posts
    50

    Default JQuery in AlphaLaunch?

    Hey there,

    I have a fairly straight-forward dialog, mostly checkboxes, and I've come across an issue. I'm using JQuery to change the color of an images label text, similar to like:

    Code:
    jQuery('#PANELCARDPAGE\\.LBL\\.R1\\.IMAGE4').css("color","red");
    The user hits a button, and it colors the label text red. This works great in browser, but doesn't work in alphaLaunch. I've included *.js in the added assets. At this point i'm assuming its because alphaLaunch can't read the jQuery code. Does anyone have any idea why?


    Thanks!

  2. #2
    "Certified" Alphaholic
    Real Name
    David Kates
    Join Date
    Apr 2008
    Location
    Unionville, ON
    Posts
    6,676

    Default Re: JQuery in AlphaLaunch?

    Only Alpha can say how AlphaLaunch is put together. I've tried to get it going under the current pre-release for a couple of hours now... and it's simply not working. It's probably something I'm doing wrong, but it shouldn't be this tough.

    Anyway, you shouldn't have to include anything like that in the assets. Also, you don't really need jQuery to do this. Where are you getting 'PANELCARDPAGE' from?

    Doing this should work...

    Code:
    $('{dialog.ComponentName}.LBL.R1.IMAGE4').style.color = "red";
    If not, try...

    Code:
    document.getElementById('{dialog.ComponentName}.LBL.R1.IMAGE4').style.color = "red";

  3. #3
    Member
    Real Name
    Jan Jedrasik
    Join Date
    May 2017
    Posts
    50

    Default Re: JQuery in AlphaLaunch?

    Hi David,

    Code:
    document.getElementById('{dialog.ComponentName}.LBL.R1.IMAGE4').style.color = "red";
    Worked perfectly! Thank you for the help!

Similar Threads

  1. AlphaLaunch and IIS
    By neissam in forum Mobile & Browser Applications
    Replies: 2
    Last Post: 11-29-2017, 12:53 PM
  2. AlphaLaunch 1 out of 4
    By Mark B in forum Application Server Version 11 - Web/Browser Applications
    Replies: 0
    Last Post: 11-21-2017, 06:10 PM
  3. AlphaLaunch - add application
    By mjfunnell in forum Mobile & Browser Applications
    Replies: 10
    Last Post: 05-24-2017, 11:51 AM
  4. onRenderComplete and jQuery ( how to identify element name to pass to jquery)
    By kotinkarwak in forum Application Server Version 11 - Web/Browser Applications
    Replies: 3
    Last Post: 02-22-2014, 05:04 PM
  5. >JQuery reference error: $ -- vs -- jQuery
    By RankFirstPro in forum Mobile & Browser Applications
    Replies: 4
    Last Post: 02-22-2014, 01:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •