Receiving a form from a php page - vb.net

I have a scenario that I am stuck with for a day now. There is this PHP website that I am trying to extract some data from. So I go to the website and there is this form that I can fill and when I click "submit" it takes me to another page where it has a table with all the information that I want.
I took that link and tried to parse the HTML but there was no table. And I checked that link from another computer and it was not loading up the table.
So I'm not sure what I should do here in order to get to that table? Do I have to do some sort of http request of some sort? If so How can it be done in vb.net ?
cheers

It sounds like you're having some basic difficulty with this. Depending on your browser try right clicking the 'table' page and 'View Source'. Save the HTML to a local file and open it using Visual Studio, Notepad++, or any other HTML editor.
Whta looks like a table when displayed in the browser may be encoded as a table, a div, or even a list with some clever formatting. Parsing each of those is a diferent task. without seeing the page I think that nobody will be able to help you much further.

Related

SSRS Action Inserting Hyperlink to Open an Application

I've done enough research to insert Hyperlinks into SSRS Data fields but so far no luck on trying to insert a url protocol to open up a third party application.
I'm doing the steps below to add an action to insert the hyperlink using VS2012.
1.In the Properties dialog box, click Action.
2.Select Go to URL. An additional section appears in the dialog box for this option.
3.In Select URL is where i input my code below: but it doesn't work
="sp-select://./ordertracking/order?id=" &Fields!guid.Value
,it obviously looks for http:// ftp://, https://, and file:// and
nothing else so it doesn't work.
How would I be able to get around this issue? sp-select:// is the protocol I need to use to open up the third party application. I've tried using javascript to get around it but still no luck.
Thanks in advance!
Since SSRS protocol for URL action is limited, you can create another column in the SQL select statment like this and point to it from the URL expression.
'sp-select://./ordertracking/order?id=' + cast(oi.guid as nvarchar (80)) as 'column'
it will then ignore the protocols to be used and still launch the address of the text of this field.

Drop Down Form for Date is Deformed

I use sharepoint 2010 and I get a deformed pop up menu for Date selection. Nothing fancy here. Just a simple form to enter some data with date.
Have you seen this before? I get the same effect in Chrome/Firefox latest versions.
Thank you in advance
This is a problem with your SharePoint site's CSS (or possibly with JavaScript that affects the CSS).
That big image is a spritesheet; CSS is supposed to crop the visible region so that you only see the specific sprites that are relevant to the current control.
You can pull up the developer tools with F12 and inspect the image element and its containers to see what CSS is currently applied, as well as check for any errors in the JavaScript console.
Clear your browsers cache and reload page. Delete the datetime column and create a new.

How to test google search box (software testing)

Today I got this from an interviewer. I am not sure if anyone cell tell me what should be the right way. Thanks
Below is the question
Consider www.google.com's search box and the Google Search button.
Q: How would you test this functionality?
How would you design test automation for 1) above?
When you're testing something, you want to find the points where the function, webpage, application, etc. break. It's unlikely that the interviewer is asking you to test search box portion of the Google homepage itself, as that is fairly simple (it's little more than a text input and a couple submit inputs inside a form), but rather find potential edge cases in the code which takes that input and produces the search results.
So, consider edge cases for a text input and a submit button in a form using a GET action:
What happens if you submit the form with no input?
What happens if you submit the form with too much input? (Both server and browser may impose limits on the URL generated by the GET, and those limits may be different.)
What happens if you include characters which have special meaning in a GET query string such as & and =?
What happens if you circumvent the page entirely, creating a different <form> which submits to the same page as Google's search box? What if you do this with some input values missing?

Impress Pages - HTML widget not saving/publishing

I'm currently trying to embed a mailchimp sign up form using the HTML widget from impress pages, and at first, it seems to work perfectly fine.
I drag the block onto the screen, a popup comes up, then I paste the form code into it, and then voila! A pretty looking, rendered form appears. I then go ahead and press publish... and bam! My HTML widget is gone, and all that's left is an empty block within the layout asking me to click to add text!
I have no idea what's going on here, does anyone have any ideas? I'm using a custom theme, and I'm wondering if the workaround is to hard-code a widget for my client and just use that (although it looks like it'll be a big drain on my time)
If you get "Forbidden" as a response after pressing save, you should have a look at the answer here impresspages html widget not saving

I'd like to preview a Word document on form

Update2: For now, I'm considering saving a temporary copy of the document in html format to display it, but this kills my idea to show the user's real time affect on the document. It's just bad practice to re-save at every character input and reload the browser. So, I suppose this may just be impractical for now. I'll keep my ear to this thread for any answers that might arise. Thank you for your help.
Update1: The WebBrowser works for PDF, but not Word Documents for some reason. Instead of displaying in the browser control, it opens the document in word. This is apparently something having to do with file to program association within the operating system, but I'm programming this to work on machines besides my own. Therefore, I'll either need a work around, or a way to change the setting programmatically.
Interestingly, when I right click on a doc file, click Open With, and select Internet Explorer, it opens Word.
Original Question:
I'm writing a VB program that fills in
values within a word document. I'm
utilizing the Microsoft Word 12.0
Object Library as a Reference.
I'd like to provide a scrollable preview pane to my user that is within
the form he or she is using. It
would be even cooler if the user could
edit the document through this pane.
I've done Interop extensively, so I'm
well aware of how to write and edit a
Word document. I just want to put it
into a frame and preview it. I'll
probably try to select around the
document based on what is changing as
the user provides input so they can
see what's being changed and where.
Thoughts?
Thanks
Would the print preview not do this?
Edit: Removed previous answer since it's not recommended by MS.
This article talks about using the WebBrowser control to open OFfice documents instead
http://support.microsoft.com/kb/304643/
Okay, I'm answering my own question, but leveling up those that tried to answer. I've decided that the best solution is to actually open the word document, but keep my form's TopMost property set to True. Then, I can doc my form in the upper right, display the document being edited behind it, and select around to each point being manipulated. This effectively accomplishes what I was after.
Thank you to those that provided answers here. They led me to learn quite a bit of stuff.