Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.

    GIF shows where to locate </> in the thread and or post editor toolbar.
    To learn more about how to use our BBCode feature, review our "How to post your code into threads" here.

    Thank you, Code Forum.

JavaScript Get Client ID value - CARD-CIRCLE.JS

knutsford01

New Coder
I am using card-circle.js



My Layout is



Code:
<div class="card">
                    <div class="card__container card__container--closed">
                        '''''''''
                        <div class="card__content">
                            <i class="card__btn-close fa fa-times"></i>
                            <div class="card__caption">
                               ''''
                                                             
                            </div>
                            <div class="card__copy">
                               '''''''''                                                                                                        

                           <br>
                            <br>
                                <form method="post" action="/" name="BookForm" id="BookForm" style="margin: 0px; padding: opx;">
                                    <input type="hidden" name="ClientID" id="ClientID" value="<% Response.Write(trim(rstList("ClientID"))) %>">
                                    <input type="hidden" name="BookThisArtist" id="BookThisArtist" value="Yes">                            
                                    <button type="submit" class="btn btn-primary btn-sm">Book <% Response.Write(trim(rstList("ArtistBandName"))) %> Now</button>
                                </form>
                            <br>
                         
                           </h5>                              
                                </span>

                                 
                                </div>





Thisis part of card-circle.js




Code:
function Card(id, el) {

    this.id = id;

    this._el = el;

    // Get elements.
    this._container = $(this._el).find(SELECTORS.container)[0];
    this._clip = $(this._el).find(SELECTORS.clip)[0];
    this._content = $(this._el).find(SELECTORS.content)[0];
 
    this.isOpen = false;

    this._TL = null;
  };

  /**
   * Open card.
   * @param {Function} callback The callback [ICODE]onCardMove[/ICODE].
   */
  Card.prototype.openCard = function(callback) {

    this._TL = new TimelineLite;

    var slideContentDown = this._slideContentDown();
    var clipImageIn = this._clipImageIn();
    var floatContainer = this._floatContainer(callback);
    var clipImageOut = this._clipImageOut();
    var slideContentUp = this._slideContentUp();

    // Compose sequence and use duration to overlap tweens.
    this._TL.add(slideContentDown);
    this._TL.add(clipImageIn, 0);
    this._TL.add(floatContainer, '-=' + clipImageIn.duration() * 0.6);
    this._TL.add(clipImageOut, '-=' + floatContainer.duration() * 0.3);
    this._TL.add(slideContentUp, '-=' + clipImageOut.duration() * 0.6);




How in Card.prototype.openCard = function(callback) {} can I pick up the value of

<input type="hidden" name="ClientID" id="ClientID" value="<% Response.Write(trim(rstList("ClientID"))) %>">


please
 
Last edited:

Buy us a coffee!

Buy me a coffee.
Back
Top Bottom