Title: T.oby's Replies | WordPress.org

---

# T.oby

  [  ](https://wordpress.org/support/users/toby-1/)

 *   [Profile](https://wordpress.org/support/users/toby-1/)
 *   [Topics Started](https://wordpress.org/support/users/toby-1/topics/)
 *   [Replies Created](https://wordpress.org/support/users/toby-1/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/toby-1/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/toby-1/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/toby-1/engagements/)
 *   [Favorites](https://wordpress.org/support/users/toby-1/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 24 total)

1 [2](https://wordpress.org/support/users/toby-1/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/toby-1/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Work The Flow File Upload] multiple wtf uploads per page](https://wordpress.org/support/topic/multiple-wtf-uploads-per-page/)
 *  Thread Starter [T.oby](https://wordpress.org/support/users/toby-1/)
 * (@toby-1)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/multiple-wtf-uploads-per-page/#post-4906400)
 * Hey Lynton, thanks for getting back. Good to know. We found another workaround
   here. Will check the list here for updates. Thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Work The Flow File Upload] multiple wtf uploads per page](https://wordpress.org/support/topic/multiple-wtf-uploads-per-page/)
 *  Thread Starter [T.oby](https://wordpress.org/support/users/toby-1/)
 * (@toby-1)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/multiple-wtf-uploads-per-page/#post-4906398)
 * Hey Lynton, I was wondering if there are any news on this.. I have a workaround
   that I reload the page and only show one wtf widget. But it would be great to
   be able to show multiple ones. Greetings, Toby
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Work The Flow File Upload] multiple wtf uploads per page](https://wordpress.org/support/topic/multiple-wtf-uploads-per-page/)
 *  Thread Starter [T.oby](https://wordpress.org/support/users/toby-1/)
 * (@toby-1)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/multiple-wtf-uploads-per-page/#post-4906379)
 * No worries. Thanks for your quick answer. Good to know. It would be a great feature
   for us 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Work The Flow File Upload] multiple wtf uploads per page](https://wordpress.org/support/topic/multiple-wtf-uploads-per-page/)
 *  Thread Starter [T.oby](https://wordpress.org/support/users/toby-1/)
 * (@toby-1)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/multiple-wtf-uploads-per-page/#post-4906377)
 * Hey Lynton, I was looking at the changelog and it looks like there are plenty
   of new features. Really cool. Just wondering whether you had any chance to look
   into the multiple workflows per page issue? Thanks, Toby
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Work The Flow File Upload] multiple wtf uploads per page](https://wordpress.org/support/topic/multiple-wtf-uploads-per-page/)
 *  Thread Starter [T.oby](https://wordpress.org/support/users/toby-1/)
 * (@toby-1)
 * [12 years ago](https://wordpress.org/support/topic/multiple-wtf-uploads-per-page/#post-4906177)
 * Hi, thanks for the quick response. Ah I see a two stage workflow could do that.
   However in my case I would like too keep the uploads visually separated so it
   wouldn’t be the ideal solution for me. Such a feature in a future release would
   be great – at least for me 🙂
 * Thanks!
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [use jquery append function](https://wordpress.org/support/topic/use-jquery-append-function/)
 *  Thread Starter [T.oby](https://wordpress.org/support/users/toby-1/)
 * (@toby-1)
 * [12 years ago](https://wordpress.org/support/topic/use-jquery-append-function/#post-4808369)
 * Thanks for your detailed answer. For the table example it only worked when I 
   put the code in the file. But I did not have to do any hooks. For the other code
   with the button click example my code was wrong. I should have only used jQuery(“
   button”).click() and put the code after the button. Thanks for your help!
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [use jquery post onsubmit function](https://wordpress.org/support/topic/use-jquery-post-onsubmit-function/)
 *  Thread Starter [T.oby](https://wordpress.org/support/users/toby-1/)
 * (@toby-1)
 * [12 years ago](https://wordpress.org/support/topic/use-jquery-post-onsubmit-function/#post-4811148)
 * closed 🙂
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [use jquery post onsubmit function](https://wordpress.org/support/topic/use-jquery-post-onsubmit-function/)
 *  Thread Starter [T.oby](https://wordpress.org/support/users/toby-1/)
 * (@toby-1)
 * [12 years ago](https://wordpress.org/support/topic/use-jquery-post-onsubmit-function/#post-4811147)
 * Sorry about the fuss. There was actually no need to hook the script in WP it 
   simply works like this:
 *     ```
       <button>Click</button>
       <script>
       jQuery("button").click(function(){
         alert("Hi");
       });
       </script>
       ```
   
 * 🙂
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [use jquery append function](https://wordpress.org/support/topic/use-jquery-append-function/)
 *  Thread Starter [T.oby](https://wordpress.org/support/users/toby-1/)
 * (@toby-1)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/use-jquery-append-function/#post-4808348)
 * Thanks! I created a file called code.js with:
 *     ```
       jQuery("#table1 tbody").append("<tr><td>data1</td></tr>");
       ```
   
 * and called it in WP with:
 *     ```
       <script type="text/javascript" src="/code.js"></script>
       ```
   
 * This worked and I did not have to include any enqueues in my functions.php. However
   doing the same for the simple click button example ([use jquery post onsubmit function](http://wordpress.org/support/topic/use-jquery-post-onsubmit-function))
   this did not work. I also tried in the button click example to enqueue jquery
   and add a hook for the script (not sure if I did it correctly).
 * Thanks for your help
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [use jquery post onsubmit function](https://wordpress.org/support/topic/use-jquery-post-onsubmit-function/)
 *  Thread Starter [T.oby](https://wordpress.org/support/users/toby-1/)
 * (@toby-1)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/use-jquery-post-onsubmit-function/#post-4811129)
 * I’m now trying to get this simple button click example to work. In another post(
   [use jquery post onsubmit](http://wordpress.org/support/topic/use-jquery-post-onsubmit-function?replies=8))
   I got the hint to put the code to file and enqueue jquery in my functions.php
   and add an action hook in functions.php. As it was enough for the other example
   to put the code to file and call it via script src parameter I did the same here:
 * My file is code.js:
 *     ```
       jQuery("button").click(function(){
         alert("hello");
       });
       ```
   
 * And my WP page looks like this:
 *     ```
       <script type="text/javascript" src="/wp-content/themes/supernova-child/js/js-ex-click.js"></script>
       <button>Send</button>
       ```
   
 * I also tried using the two wrappers (as described in [jQuery NoConflict Wrappers](http://codex.wordpress.org/Function_Reference/wp_enqueue_script#jQuery_noConflict_Wrappers))
   to use $(“button”) instead of jQuery(“button”). This unfortunately did not work.
 * So I tried adding:
 *     ```
       wp_enqueue_script( 'jquery');
       ```
   
 * as well as:
 *     ```
       function theme_name_scripts() {
       	wp_enqueue_style( 'style-name', get_stylesheet_uri() );
       	wp_enqueue_script( 'script-name', get_template_directory_uri() . '/code.js', array(), '1.0.0', true );
       }
       add_action( 'wp_enqueue_scripts', 'theme_name_scripts' );
       ```
   
 * to my functions.php of my theme. Unfortunately this did also not help.
 * Thanks for any help
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [use jquery post onsubmit function](https://wordpress.org/support/topic/use-jquery-post-onsubmit-function/)
 *  Thread Starter [T.oby](https://wordpress.org/support/users/toby-1/)
 * (@toby-1)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/use-jquery-post-onsubmit-function/#post-4811111)
 * I am not sure if the click-function really helps because in WordPress even the
   more simple example of just putting out a “Hello” does not work:
 *     ```
       <script>
       $(document).ready(function(){
         $("button").click(function(){
           alert("Hallo");
         });
       });
       </script>
       <button">Send</button>
       ```
   
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [use jquery post onsubmit function](https://wordpress.org/support/topic/use-jquery-post-onsubmit-function/)
 *  Thread Starter [T.oby](https://wordpress.org/support/users/toby-1/)
 * (@toby-1)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/use-jquery-post-onsubmit-function/#post-4811110)
 * Maybe I should use the click event of a button. This works in JSFiddle ([http://jsfiddle.net/H6YZL/2/](http://jsfiddle.net/H6YZL/2/))
   with error “NOT FOUND” but not in my WordPress:
 *     ```
       <script>
       $(document).ready(function(){
         $(".sendButton").click(function(){
           $.post("/code.php", {"arg1": "1", "arg2": "2"}, function(response) {
             alert('Got this from the server: ' + response);
           }).done(function() {
             alert( "second success" );
           }).fail(function(xhr, textStatus, errorThrown) {
             alert( textStatus );
           });
         });
       });
       </script>
       <button class="sendButton">Send</button>
       ```
   
 * However in the other code I at least got an empty error.
 * Thanks
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [use jquery post onsubmit function](https://wordpress.org/support/topic/use-jquery-post-onsubmit-function/)
 *  Thread Starter [T.oby](https://wordpress.org/support/users/toby-1/)
 * (@toby-1)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/use-jquery-post-onsubmit-function/#post-4811104)
 * Sorry, I added an error function and it seems all three versions work but throw
   an error. Is there a way to see what the error is (I tried putting out errorThrown
   but it was empty)?
 *     ```
       jQuery.post("/test6.php", {"arg1": "1", "arg2": "2"}, function(response) {
         alert('Got this from the server: ' + response);
       }).done(function() {
         alert( "second success" );
       }).fail(function(xhr, textStatus, errorThrown) {
         alert( textStatus );
       });
       ```
   
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [use jquery append function](https://wordpress.org/support/topic/use-jquery-append-function/)
 *  Thread Starter [T.oby](https://wordpress.org/support/users/toby-1/)
 * (@toby-1)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/use-jquery-append-function/#post-4808324)
 * Thanks! I have tried all three versions (two wrappers and no wrapper) with the
   last example, which did not work. I also tried deactivating all plugins to test
   it.
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [use jquery post onsubmit function](https://wordpress.org/support/topic/use-jquery-post-onsubmit-function/)
 *  Thread Starter [T.oby](https://wordpress.org/support/users/toby-1/)
 * (@toby-1)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/use-jquery-post-onsubmit-function/#post-4811101)
 * Sorry, I hope this was not too confusing. The code I posted above has a small
   error the post function without the wrapper should not have the $ sign in the
   beginning but just jQuery.post(). I tried all three versions inside the Do() 
   function and outside of it. They all worked outside but not inside of it.
 * Thanks,
 * Toby

Viewing 15 replies - 1 through 15 (of 24 total)

1 [2](https://wordpress.org/support/users/toby-1/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/toby-1/replies/page/2/?output_format=md)