|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
js question
Ok, I have a script where a user clicks a button and index.php?Open= opens in a new window, then i have in my php if(isset($_REQUEST['Open'])) it will print out the html i want in the new window, the only problem is it prints it out in both windows instead of only the new one i want it to print in, is there anyway to do this so it will only print in the new window and not both?
And When i try to use window.close to close the window I just opened after the form is submitted, it wont do it, instead it loads what should be loaded in the main window in the new window. Like I open it like window.open("index.php?Open=", "openfile" ... and then close it like window.close("openfile"); but it doesnt work, any ideas? |
|
#2
|
|||
|
|||
|
RE: js question
post the JS Code and I will take a look for you.
|
|
#3
|
|||
|
|||
|
RE: js question
i figured out why it wouldnt close, was printing the code in a textarea lol.. the only thing now is how to get the form to submit to the original window and have the original window process it and then close the new window. Basically Im building a file manager, a user clicks open and it opens a popup thats like a browse box where they input the file they want to open. And then in the original window it opens that files contents in a text area for editing.
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > js question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|