DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: Call jQuery slideDown function from vbscript in an HTA

  1. #1
    Join Date
    Jan 2009
    Posts
    3

    Call jQuery slideDown function from vbscript in an HTA

    So i have an hta im working on and im using vbscript for a majority of the backend code and jQuery to put a pretty face on it.

    i have a text box and button where a user enters a path to a folder and a button that calls some vbcode to verify the path exists, and also calls the jQuery function that slides down a panel with information about that path.

    i would like to have the panel slide down ONLY if the path has been verified, as right now it's tied to the button click and slides down no matter if the path exists or not.

    any ideas how to call the slideDown function from my vbscript code?


    jQuery functions:
    Code:
    <script language="javascript" src="resources/jquery-1.2.6.js"></script>
    <script language="javascript">
    
        $(document).ready(function() {
            var $box = $('#box').wrap('<div id="box-outer"></div>');
    
            $("input.slideD").click(function(){ $("#box").slideDown("normal"); });
            $("input.slideU").click(function(){ $("#box").slideUp("normal"); });    	
            $('#box').hide();
        });
    
    </script>

    Current button functions, as if it matters
    Code:
    <input type="button" value="Retrieve Quota Info" class="slideD" name="btnQuotaInfo" onclick="QuotaInfo" style="width: 125px" />
    
    <input type="button" value="Reset" class="slideU" name="btnReset" onclick="reset" style="width: 50px" />
    Thanks

    marky-b

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    Moved to the Web section

  3. #3
    Join Date
    Jan 2009
    Posts
    3
    I suppose it's not neccessarely specific to an HTA, but any web development project in general

    I'm sure it's just a simple javascript call, which i can do in standard HTML, but not quite sure how to execute from vbscript.

  4. #4
    Join Date
    Mar 2007
    Location
    Bangalore, India
    Posts
    247
    Does this help??

  5. #5
    Join Date
    Jan 2009
    Posts
    3
    ah, that simple eh? works perfectly. thanks.

Similar Threads

  1. Search System Tray
    By MyPlague in forum .NET
    Replies: 2
    Last Post: 03-20-2006, 06:18 PM
  2. Register a DLL in code and Call a function by address?
    By Sean Woods in forum VB Classic
    Replies: 10
    Last Post: 01-14-2002, 12:26 AM
  3. Getting a list of files into an array
    By Scott in forum VB Classic
    Replies: 12
    Last Post: 12-21-2001, 05:21 PM
  4. AnimateWindow API
    By Tim Manos in forum VB Classic
    Replies: 4
    Last Post: 10-19-2001, 06:06 AM
  5. NetUserEnum Api
    By Mike in forum VB Classic
    Replies: 0
    Last Post: 04-24-2000, 03:05 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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center