Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Auto fill up webpage using java script

Auto fill up webpage using java script

Scheduled Pinned Locked Moved Web Development
javascriptjavacomtoolshelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Saam_cse
    wrote on last edited by
    #1

    If I run a bookmarklet (which contain a java script), it will auto fill up a webpage contain two text box named T1 and T2. But if a webpage containing two or more frames and any of these frames contain T1 and T2 text box then it does not work. The bookmarklet runs an external java script named fill.js from any where. So please any body provide help for bookmarklet java script that will fill up text box data automatically in multi frame webpage The bookmarklet run could be something like this:--- javascript:(function(){var s=document.createElement("script");s.charset="UTF-8";s.src="http://www.somewhere.com/fill.js";document.body.appendChild(s)})(); // ----------- Start Java Script----------- //------------ This java script containg in a file called 'fill.js' ------- var t1 = '99'; var t2='88'; function fillerup() { document.all.T1.value=this.t1; // T1 is the name of a text box document.all.T2.value=this.t2; // T2 is the name of a text box } fillerup(); // -----------End Java Script-----------

    M 1 Reply Last reply
    0
    • S Saam_cse

      If I run a bookmarklet (which contain a java script), it will auto fill up a webpage contain two text box named T1 and T2. But if a webpage containing two or more frames and any of these frames contain T1 and T2 text box then it does not work. The bookmarklet runs an external java script named fill.js from any where. So please any body provide help for bookmarklet java script that will fill up text box data automatically in multi frame webpage The bookmarklet run could be something like this:--- javascript:(function(){var s=document.createElement("script");s.charset="UTF-8";s.src="http://www.somewhere.com/fill.js";document.body.appendChild(s)})(); // ----------- Start Java Script----------- //------------ This java script containg in a file called 'fill.js' ------- var t1 = '99'; var t2='88'; function fillerup() { document.all.T1.value=this.t1; // T1 is the name of a text box document.all.T2.value=this.t2; // T2 is the name of a text box } fillerup(); // -----------End Java Script-----------

      M Offline
      M Offline
      Mohammad Dayyan
      wrote on last edited by
      #2

      Hi Saam. There are excellent scripts about it here[^]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups