How would I make something like this?

5 replies
  • WEB DESIGN
  • |
I would like to make a firefox add-on or a php script that would allow me to do the following.

1. When I select a image or link from the place below
(i can do this already and I do not need to make an add-on or script for it)



2. I will go to this page (i can do this already and I do not need to make an add-on or script for it)




3. Once I am on the page I would like the add-on or script to automatically input the value that I have circled in red into the box that I have the arrow pointing to.

how would i go about doing so?
#make
  • Profile picture of the author Deadly Designs
    anyone know how?
    {{ DiscussionBoard.errors[3147634].message }}
  • Profile picture of the author Deadly Designs
    Can you tell me would it be javascript or php?
    {{ DiscussionBoard.errors[3148445].message }}
  • Profile picture of the author phpbbxpert
    It depends on where that 100 is coming from.

    You could use JavaScript or jQuery and do it.

    Wrap the 100 with some HTML eg. <span id="minimum">100</span>

    Then you can use jQuery to fetch that value and add it to the input box.
    This is all assuming you own this page and have access to it's code.
    HTML Code:
    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <title>jQuery at its Best</title>
        <script type="text/JavaScript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
        <script type="text/JavaScript">
            jQuery(document).ready(function()
            {
                var text = jQuery('#minimum').text();
    
                jQuery('#test').val(text);
            });
        </script>
    </head>
    <body>
    Minimum offer = <span id="minimum">100</span>
    <form action="">
        <input type="text" name="test" id="test">
    </form>
    </body>
    </html>
    {{ DiscussionBoard.errors[3148490].message }}
    • Profile picture of the author Deadly Designs
      how would i do it if i do not own the page and wanted to make a firefox add-on that would allow me to take the circled value and place it in the input box?

      and in the first picture you see multiple items and they have different price values, how would I make it where when I click on it and go to the next page that it will input the price value of that item. The values will be random too.

      please let me know if I am being clear... thanks
      {{ DiscussionBoard.errors[3148548].message }}
  • Profile picture of the author Deadly Designs
    please any help is appriciated
    {{ DiscussionBoard.errors[3153012].message }}

Trending Topics