I am loading external website into the webview. On one of its pages, there is a button which shows/hides table. The show/hide action is done via JavaScript.
I have not been able to detect this JavaScript no matter which method I override in WebChromeClient. I can detect JavaScript alert popups, but not this code.
I basically want to know when a user has shown this table to I can offer him additional help filling the table.
Can this be done at all?
Related
I'm trying to launch a custom OAF page from a custom JSP. Although the OAF page is loading fine and functionality is also working correctly, but there is drastic change in the look and feel of the OAF page. FOr eg: Go/Clear buttons are displayed as rectangles. Also, for LOVInput fields, the Quick Select is coming as an hyperlink rather than Image that we see normally.
I'm using Oracle 11i and Jdev 9i.
I have registered my OAF page through AOL function, and calling using javascript from my custom JSP.
I have tried looking at various sites but mostly they deal with launching of OAF page (which i already have done).
https://community.oracle.com/thread/571687?start=0&tstart=0
https://community.oracle.com/thread/388873?start=15&tstart=0
My issue is with the difference in look and feel of the OAF page. It is working fine in JDev.
Image showing Go and QUick Select buttons
Fixed this issue by updating the profile option "Oracle Application Look and Feel" value at User/Responsibility level as "Browser Look and Feel".
I would like the pagination buttons in DataTables to be proper links (having an href attribute). This makes it possible to open a specific page in a separate tab by right-clicking on the pagination button, which sometimes is very useful. It also makes it easy to get the correct url for each page, making it possible to send the url to a specific page to a friend.
Clicking the pagination buttons should of course not navigate to the url, but load the page's content via ajax, as it already does. The server side already supports delivering the contents for a specific page, so that pagination also works for users with javascript disabled. So the only thing I need is some way to tell DataTables the url to add to each of the pagination buttons. Is there any way to do this?
Can someone please explain how can I go about creating the following page and what techniques should I adopt:
The user should be able to click on a button which should result in a popup.
The popup should have a static page with instructions and button to click which takes the user to the next step in the same popup.
At the next step the functionality should run to take input from the user and save it to the server.
The user should see a confirmation finally and on clicking finish, the popup should hide.
From what I understand, I should try the following:
use javascript onclick and fadeIn function to create the popup.
continue changing the same div using onclick and AJAX to create stepwise kind of a format and carry out the functionality.
use XMLHTTPRequest to upload data acquired and finally use fadeOut to hide the popup.
The reason why I am thinking in these lines is because I have had very little exposure to web designing and hence would love to get some expert views on if this is the right approach and if not then what should be a better way to do it. Is there is some existing literature/method which talks about it?
Any help would be much appreciated.
For first step
Use javascript onclick function. But before this keep your static content ready and than use jQuery UI to appear it as good Dialog Box. For example see this
For second step
The user will never know that you have changed the dialog. Just you can load new dialog with new content in it. When you click button on first page, make that first dialog box is closed.
For third step
Instead of static content make the response set to dialog, here you may use Ajax/post call.
Las step
Its not compulsion to use XMLHTTPRequest. You can even submit form in jQuery post/ajax. Than you can reload the page with confirmation message send in response from server or you may use jQuery to make the confirmation message appear.
I'm doing some ASP using Telerik.
On my page there are 2 buttons called Create Window and Postback. The Create Window button created a new RadWindow dynamically on it's click event (client-side) by using window.radopen(). The Postback button simply does a postback. My problem is that, the windows get lost after every postback. What can I do to make my RadWindows to remain opened after a postback, including its content and position.
If there is no built-in function to restore my dynamic RadWindows, please tell me how to save current windows content to manually load it on the next postback. I thought of using a Hidden control to save my RadWindow position and content, but how can I do that (it's content is a user control with plentiful textboxes, and i don't want my customer to re-type all the textboxes).
The RadWindows are generated via JavaScript when they are first shown. You can easily check this via your developer plugin of choice. Once you show them they create their wrapper div as a direct child of the form element. This means that they have no server-side rendering and thus cannot be persisted on the server across postbacks.
What you can do is use AJAX - have the button perform an AJAX request that will update the needed content of the page, but will leave the RadWindows out of the update. Check out this help article where they explain how to use AJAX with a RadWindow: http://www.telerik.com/help/aspnet-ajax/radwindow-ajaxifying.html.
I'd like to get contents of a website using JavaScript menu. I need to simulate clicks (or typing javascript:gotoPage("p10"); into a browser) on menu links to be able to move from one page to another.
The website uses a form activated by JS. It's probably not possible to go to another page by entering URL, because there are some hidden fields (something like hash- it's dependent on time and the page #). That's why I have to simulate a browser using user.
Basically the process will look like this:
while (any_content) {
file_get_contents();
clickalink();
}
Can cURL or JSON be used for this task?
If you're using PrototypeJS you could perhaps use the event.simulate library to simulate clicks on links.
https://github.com/kangax/protolicious/blob/master/event.simulate.js
$('link_id').simulate('click');