Onlick Open New Window If Text Input Matched That Is Printed To The Page?
May 7, 2009
I have everything working accept the last part and I don't know what to do.function show() works and shows data entered in text box.function open_win() works,but I only need it to open when there is a input match say like the name Tom,otherwise I want function show() just to show the input.
Currently the new window opens every time the button is pressed needs to match input string only before window opens and then string print to window I think these two lines are the problems(whatever the input) document.getElementById('myDiv').innerHTML = string; And var bselect= "Tom" open_win(); I think I need to set var to the string printed to page to solve the last part. how to I get the blank window to the center of screen,as it covers the data in the function show.
Is there any way that I can get the first text input field to be active and READY for input.I am trying to save the user the trouble of clicking on the text input field before the user can type any information there. It is one extra step especially when using a touch screen that I would like to avoid.
I have spent the last week trying to figure out how to do the following: User types some text in a text box. The autocomplete queries a php script that returns JSON of matched values. I have got thedrop down list to show these values but I cannot for the life of me get the matched characters to turn bold. For example, if the user types in "rav" and my list contains:
RAVEN RAVE RAVEL
then I want it to appear as
RAVEN RAVE RAVEL
My current JS code is as follows (along with HTML):
can some one help me with a script that opens a <input type=text under this select list when a/b/c choosen? normally this <input type=text, do not have to apear there at all if those options not choosen.
And the html code that is supposed to pop up the box is:
I want to put a little search on a single standalone webpage of names and numbers.
I'm using the code below - works a treat but when you first visit the page, you have to click in the search box before typing a string, How can I make it so that the input box is actively awaiting input upon the page being displayed?
Also as a second question.. can i make it so whenever 'enter' is pressed on the keyboard, the search button is effectively actioned/clicked so it highlights the next matching string?code...
I need to open a window without scrollbars, menus, etc. and a specific size. I believe I have found scripts that can do this. But I also need it to open to specific coordinates of the page. i.e, only displaying the center portion of the page (the page is not mine) and not letting the user move to other portions with scroll bars, nor resize the window.I realiize that hitting tab will usually move them around, but I am not worried about that. They won't know where they are and will just reload.I have basic html skills but not scripting, other than copying/pasting other people's code.
I had a small problem in my page. There are some select menus that the user can select and there is a download button which on click should allow the user to download a file based on the selected options...I used the following code under the onclick event but the problem is that it allows the user to download the file but the page refreshes itself or in other words all the selections are lost when the download window opens
I am using my script to update my table with the click number and then redirect to the stored href link code...
The only problem I have with this is that my web page gets replaced.
What I really want to do is open a new window and have the new web page in that. I can put a notice to say it will open a new window, its just that it will really annoy people if my page closes on them when they are half way through a tutorial !
What do I need to do to open the link in a new window ?
What I would like to do is close this window as soon as other pages load. Suppose user clicks a menu and that load a new page. But I would like to close the child window after the 2nd page load. Is it possible to close the window in the second page with the name (using the same java script, or may be use another java script)?
Is it possible to have a text box input searching for the entered text on another webpage in the same way Find In Page would do? I have a webpage that I want users to input an item, and that this will open the targeted webpage and bring you to (and highlight) the matched item(s) like find in page does. Is this possible or is the easiest way to just make users open the link to the target page and just complete the find in page search there?
Is there anything specific that is required for Chrome or am I just missing something??
I know this is a Java Script fourum but since VB and Java are so closely related I thought I would look for some help here. Anyway I am running MSAccess Data Access Pages and need to know if I can open a new browser window from a page created by a parameter query? In breif here is my problem. I used the "Image Control" to bind 6 photos via a Parameter Query with the drive path to each photo stored in a table. So far this works great and the co-workers are impressed. However the photos (Thumbnails) are small and it would be great if I could use the "Image Control's" (on-click) event to open a new widow so as to see a larger image of the photo. As an interim solution I am using the Hyperlink control, however when you click on it the photo opens in the same window and when you click IE's Back arrow the Parameter query prompts the user for the value again. All this could be avoided if the Image control (or hyperlink) could open a new window (with the photo of course), and when finished merely close it. The script