Is it possible to display only part of a webpage?

I have a webpage with a form element but all the other elements get in the way and mess up the view, so I wanted to know if there was a way to display just the form element of the webpage

You’re missing the body from your question.  Please elaborate.

From the title, I’d say no.  You can’t control the webView that way.

@roaminggamer is right. Our webView doesn’t provide that kind of control. However,  you might be able to use jQuery to fetch part of the web page.

https://stackoverflow.com/questions/18749626/how-to-get-a-part-of-html-webpage-in-a-jquery-ajax-request-in-other-words-how-t

Perhaps you could have a local .html file that loads jQuery from a remote source and then use it to ajax in the part of the page you’re interested in.

Rob

My bad, I put in the description, looks like I didn’t save it

I’ve never done anything like this before, I’m trying to display a form element, will the site still be able to get the entries from what this JQuery returns?

If you control the content of the webpage you can use a css to hide parts of the webpage when you load it with your app.

We do that in one of our apps
I control it with a code like www.website.com/page.html?css=nameOfTheCss

The jQuery trick lets you grab an HTML block element like a <div> by class, ID, or other more complex constructors.  Depending on how the form is constructed, you might be able to grab the entire <form> tag and it’s children. But if the form is constructed over several block elements it might be tough to grab all of the form parts.  And even then you likely won’t have any ability to manage the resulting web page from the form submission.

Rob

This’ll probably be a lot harder, i’ll do some research on it though

Thank you! i’ll look this up now

Here is an example on how we present a news item in the app and what it look like on the webpage. This is done by controlling the CSS

is this css file saved in you resources folder?

No, We have It on the server and the query is able to load the right css

You’re missing the body from your question.  Please elaborate.

From the title, I’d say no.  You can’t control the webView that way.

@roaminggamer is right. Our webView doesn’t provide that kind of control. However,  you might be able to use jQuery to fetch part of the web page.

https://stackoverflow.com/questions/18749626/how-to-get-a-part-of-html-webpage-in-a-jquery-ajax-request-in-other-words-how-t

Perhaps you could have a local .html file that loads jQuery from a remote source and then use it to ajax in the part of the page you’re interested in.

Rob

My bad, I put in the description, looks like I didn’t save it

I’ve never done anything like this before, I’m trying to display a form element, will the site still be able to get the entries from what this JQuery returns?

If you control the content of the webpage you can use a css to hide parts of the webpage when you load it with your app.

We do that in one of our apps
I control it with a code like www.website.com/page.html?css=nameOfTheCss

The jQuery trick lets you grab an HTML block element like a <div> by class, ID, or other more complex constructors.  Depending on how the form is constructed, you might be able to grab the entire <form> tag and it’s children. But if the form is constructed over several block elements it might be tough to grab all of the form parts.  And even then you likely won’t have any ability to manage the resulting web page from the form submission.

Rob

This’ll probably be a lot harder, i’ll do some research on it though

Thank you! i’ll look this up now