Jump to content
UBot Underground

Filling Input Field Using JQuery?


Recommended Posts

Hi,

 

Does anyone know if it is possible to fill an input field with a value using JQuery, and having the value display in the debugger?

 

This is what I tried, 

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet"/>
        <title></title>
    </head>
    <body>
        <button id="Fill" class="btn">Fill With Value</button>
        <br>
        <input type="text" variable="#Text_Box_Var" fillwith="value" id="textbox"/>
        
    </body>
    <script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
    <script>
    $(document).ready(function(){   
        $("#Fill").click(function(){
           $("#textbox").val("This IS My Value Not Showing In Debugger");
        });     
    });
    
    </script>
</html>

Cheers,

 

Carl

Link to post
Share on other sites

This is the work around I have got, its not great...

ui html panel("<!DOCTYPE html>
<html>
<head>
    <style>
        
        textarea \{height: 300px; width: 400px;\}
    </style>

</head>
<body>
  <input type=\"button\" id=\"insert-link\" value=\"Add Link\" /><br>
  <div id=\"link\">
  <input type=\"text\" id=\"href\" placeholder=\"http://\"/>
  <button id=\"ok\" onclick=\"ubot.runScript(\'Refresh()\');\">ADD</button>
  </div>
  <br>
  <textarea id=\"textarea\" variable=\"#text\"></textarea>
</body>
<!-- Load jQuery -->
<script type=\"text/javascript\" src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js\"></script>
<script src=\"http://code.jquery.com/ui/1.10.2/jquery-ui.js\"></script>
 
<!-- Load jQuery.selection plugin-->
<script src=\"http://lazybots.com/jquery/rangyinputs.min.js\"></script>
 
<script>
  $(document).ready(function()\{
    $(\"#link\").hide();  
    $(\'#insert-link\').click(function()\{
     $(\"#link\").show();       
    \});
    
    $(\'#ok\').click(function()\{
     var link = $(\"#href\").val();
     var selection = $(\"#textarea\").extractSelectedText(); 
     $(\"#textarea\").replaceSelectedText(\'<a href=\"\'+link+\'\">\'+selection+\'</a>\');
     $(\"#link\").hide(); 
    \});
    
    
  \});
</script>
</html>", 700)
define Refresh {
    plugin command("WindowsCommands.dll", "type keys", "Untitled Bot* - UBot Studio Developer Edition", "HwndWrapper[UBot Studio.exe;;ff3d8a20-a99b-4e5a-96ff-c2e6449b5089]", 688, 382, " ")
}

  • Like 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...