JavaScript Insert Text Into Tumblr Ask Box insert text into pdf,insert text into excel,insert text

Does anyone know if there's a way to add text into the tumblr ask box when the page is first loaded? I'm running a blog where people can ask for advice from either a girl or a guy. I want them to click a link and go to the ask page but then depending on the link they clicked, #AskHim or #AskHer will be pre-added into the ask box. Without these "tags" (just basic text), all questions come to my inbox and I have no idea what perspective (guy or girl) they want their question answered from.

HTML:

<div id="askbox">
   <iframe frameborder="0" height="190" id="ask_form" scrolling="no" 
   src="http://www.tumblr.com/ask_form/whatishethinking.tumblr.com"
   width="100%" style="background-color: transparent; overflow: hidden;"
   </iframe>
</div>

CSS:

#askbox {
   margin: 10px auto;
   width:600px;
}

I've found topics on how to insert text into a text box using javascript. However, tumblr has it's own built in tagging/html system so I'm not sure if this is even possible.

i.e.

<script>
   function add(text){
      var TheTextBox = document.getElementById("Mytextbox");
      TheTextBox.value = TheTextBox.value + text;
   }
</script>

Also, here is a link to my blog (Main Blog). The user will click either the "Ask Her" or "Ask Him" image links on the left side of my blog.

links on my blog

Then this will take them to my ask page where I want the text to be inserted into the ask box (Ask Page).

example of text added to ask box

Thanks in advance for any advice you can give!

Answer:1

I need to validate number that use inputs into input box. Number must be exactly 12 characters long and start with 931. var reg = /^931[0-9]$/; var val = $("#sms_number").val(); if (val.length === ...

I need to validate number that use inputs into input box. Number must be exactly 12 characters long and start with 931. var reg = /^931[0-9]$/; var val = $("#sms_number").val(); if (val.length === ...

  1. validate jquery regex
  2. jquery validate regex rule
  3. jquery validate regex pattern
  4. jquery validate regex special characters
  5. jquery validate regex example
  6. jquery validate regex email
  7. jquery validate regex password
  8. jquery validate regex not working
  9. jquery validate regex message
  10. jquery validate regex method
  11. jquery validation regex phone number
  12. jquery validation regex alphanumeric
  13. jquery validation regex check
  14. jquery validation regex number
  15. validate url jquery regex
  16. form validation jquery regex
  17. custom validation jquery regex
  18. date validation jquery regex
  19. jquery validate space regex
  20. jquery validate url regex without http

I use pywebkit and html5 to develope desktop map server. Map tiles store in sqlite database. So when I set html img's src, I have two options. One is read image from database and b64encode it, ...

I use pywebkit and html5 to develope desktop map server. Map tiles store in sqlite database. So when I set html img's src, I have two options. One is read image from database and b64encode it, ...

I'm working on a Backbone application and I'm not sure if the way what I'm trying to do is the correct way. I have an application view and inside that application view I'm trying to append a ...

I'm working on a Backbone application and I'm not sure if the way what I'm trying to do is the correct way. I have an application view and inside that application view I'm trying to append a ...

  1. backbone js nested views

I need to test all the words entered into an input against 3 objects and determine which array they belong to so I can output a URL to an API. I want to achieve this with Javascript/jQuery. For ...

I need to test all the words entered into an input against 3 objects and determine which array they belong to so I can output a URL to an API. I want to achieve this with Javascript/jQuery. For ...