how to keep second pdf page hidden until button is selected on first page - pdf

I've created a pdf user form with the option to only put 10 line items, however, if the user requires to insert additional item codes, I've created a second form for just that. I would like to know if it is possible to keep the second document hidden until the user clicks a button to activate the second sheet - making it accessible to insert addition item codes if needed. Thank you for your help in this matter.

I'm not sure I understand your intent completely from your question. If you you wish to display your PDF forms as separate pages, it's as simple as this HTML:
<button onclick="location.href='SecondPage.html';">Show More</button>
Where "SecondPage.html" becomes instead the URL of your second PDF.
If you wish instead to display the two PDFs on the same web page simultaneously, we'd probably need to see some markup of what you've tried so far. You generally get better answers on StackOverflow if you can present examples of what you've tried so far.
But your general approach would probably be a simple one: Put both PDFs into DIVS with styles applied so that the first DIV is visible and the second DIV is hidden. Then, the onclick for the button I've written above, instead of displaying a page, would simply call a javascript function that alters the style for the second DIV, changing its style from "hidden" to "block".

Related

Using puppeteer to automate button clicks for every button at every URL in a web app

I am currently trying to use JS and puppeteer to take a screenshot of every url in my web app, as well as take a screenshot of every button that can be clicked. Is there a way to click each button without specifying the id? Not all of my buttons have an id and even if they did, I wouldn't want to have x number of page.click(id, options) for each button I have (which is quite a lot).
Thanks
I have tried going based off each className (this app is built using react) but this does not work. It will take a screenshot of the same buttons over and over. I believe because if page.click has multiple of the same options, it only chooses the first one and many buttons have the same styling classNames.
You could get an array of each element on a page, go through the elements with a for loop determine if it is a button, then click it. Then for each page you'd have to input each url in an array and then use a for loop to go through it.

.Click on an a tag does not work

I'm trying to navigate into a web page automatically with VBA to scrape some values from different product ID's. The problem is that when I get to this intermediate page: http://www.siicex-caaarem.org.mx/Bases/TIGIE2007.nsf/4caa80bd19d9258006256b050078593c/$searchForm?SearchView (search for code 11081201, for example), where I'm supposed to click on the only "a" tag there, the program keeps crashing with
Object variable or With block variable not set
on the line that should click on the element:
objIE.document.getElementsByTagName("a")(0).Click
I have been using similar working lines of code for the same purpose on different pages (ussualy with a for each loop, which doesnt work here either), so I'm unsure why it doesn't work here. I appreciate your help with this.
The solution for this was adding DoEvents before the line that clicks on the element.

PassBook + ios 6

In Pass.Json file, how to write a code for adding button and how to add hyperlink text, which dynamically update the link, after user click the hyperlink text?
Please let me know if someone come across with same requirement.
You cannot add a button or hyperlink to a pass.
There is a fairly clumsy workaround to update a pass based off a user action that takes advantage of the fact the URLs, phone numbers, dates and addresses that appear on the back of the pass are automatically made clickable.
So while you cannot add a button or hyperlink text per-se, you could add a link to a script that when clicked on, triggers a push update that updates the pass with your new content. This pass contains a good example, and the source code is available here.

What is an alternative to nesting remote forms in rails?

I have a User that can have multiple images. I would like to allow the user to add images while updating their user page and have those images dynamically updated so that they can see the images on their profile as they edit it. I currently have the images set as sortable using jQuery-ui. I would like the user to be able to add images, sort them, and edit their profile info and only need to click the submit button once.
I know that it is not possible to nest remote=>true forms and do not believe it's possible to submit files via ajax. Is there some other way this can upload the files and then use jquery to append them back to my div?
Unfortunately, from a user experience standpoint, the image section makes the most since being pretty much in the middle of the form. Moving it to the top or below the original form is less than ideal. I might be able to use CSS to make the remote form appear as if it is middle of the parent form, but this seems like a pretty bad solution.

How can i grab text from a web browser?

I need to go into my implemented web browser and take text from lets say a label on the page. For example on this page it says "Related Questions" I need to copy that text and paste it into my from. Thanks in advance :)
Apparently you're using a WebBrowser element to show a homepage on your form. Use the following short code snippet to get the source code of the website you're viewing (the source code will be written into the TextBox1 in that example). Now you'll just have to filter out whatever you need (in your case it's a certain text which is hopefully between two HTML elements for ease). You might need RegEx for that (in case you're looking for an easy solution).
TextBox1.Text = WebBrowser1.DocumentText