One Window Inspecting And Controlling Elements In Another?
Oct 4, 2010
I've tried to think of a way to do this server-side (PHP) but couldn't think of one. I could make a script that reads the remote page repeatedly and if it changes then loads it, but to load it the remote page would refresh and then would probably lose the string I am after.
Even if just to say "nah, not possible" or something about XSS that I don't really understand...!
I'm trying to control a popup window from two different pages in my main window but having troubles.
My first page (bigpage1.asp) opens a popup window called 'PopCreate'. This popup window opens a frameset with two frames; 'TopFrame' and 'BottomFrame'. While 'BottomFrame' is processing some information, the top frame's page (top1.asp) refreshes to page 2 (top2.asp) after 3 seconds (using meta refresh). On page 2 (top2.asp), I want the entire popup window to close. I'm having troubles with this.
Alternatively, when the first page (bigpage1.asp) in my main window refreshes to the main second page (bigpage2.asp), the second page (bigpage2.asp) could close the popup window (PopCreate).
I have a main window in which there is a link opening popup. In newly opened window there are links that allow to insert some HTML with form elements ( button) in the parent window document. The problem is when user closes popup window the added button is inactive (action assigned to it doesnt work) What is more the problem exists in IE, in FF code works quite well.The code inserting new elements to parent window is below.[code]
A little debugging revealed that the function is indeed being called and is running successfully, however the function is somehow unable to locate the element with ID of "bookmark" when it is fired with window.onload and as a result I get no bookmarking link. It's almost like window.onload is triggering itself too soon, before the div of "bookmark" is in the page, but how can that be?
I want control a hardware device using a Web browser. I created a page which has a form containing all necessary INPUTs. By clicking a button, all current settings are sent to the server side (using POST or GET) so that the server can interact with the hardware, which is under the server's control.
Now, in some cases, I want to update the INPUT (w/ readonly) with the data from the hardware, such as a status value. Most primitive approach is creating a new page with new value to the INPUT, where I want to show the value.
But that is not quite efficient as the page appearance won't change except the contents of the INPUT.
I thought such scheme was already available, but so far, I don't see anything usable.
The Web server is not a commercial one but a custom Web server (written in Python) so that I want to keep the scheme as simple as possible. I checked AJAX but I'm not sure I can use AJAX in my application.
Does anyone know if it is possible to control UI tabs from an external URL, is this possible?
For example, right now, the ui-tabs-nav list of anchors correspond to the divs automatically. I would like to make the tabs' navigation controllable from a separate draggable modal or popup window so I can drag it to a second monitor and use the main screen on GoToMeeting, to switch tab panels almost like Powerpoint (but more useful.) In advance I want to preempt suggestions that I do something different entirely, like simply make the browser window span two monitors, etc. Easy idea but doesn't work; I've tried it.
I am using a Toggle function right now that does a getElementByID check. I have a table dynamically being built by ColdFusion that shows a bunch of time entries for a support ticket. Each time entry has 3 rows that I only want to show if the first row is clicked. Right now it only displays the first of the three.
In a form, how do I have a set of radio buttons with the last one being an other option that shows and hides a textfield depending on if it is selected or not? I have seen how to disable the textfield if the radio button is not selected, but not how to hide it. Is this possible?