Popup with window.open should arise only once onclick
i want a popup that should arise only once onclick but i am getting that popup how many times i am clicking
That's a JavaScript problem. This forum is about Java. Java and JavaScript don't have anything in common apart from the first 4 letters of the name and a superficial similarity in syntax.
You'll get better help in a JavaScript forum.
Similar Messages
-
Can't write anything with javascript in a new window create dynamically with "window.open"
I develop a website and an application in html/css/javascript and i have a problem.
I need to open a new window with "window.open", and then change and modify the content dynamically with javascript in it. It works perfectly in Firefox 3.6 and lower but not in Firefox 4.
In Firefox 4, the window is created, but it stay white with "about blank" as name.
Do you have an idea of what I can do? Can I detect if the browser is Firefox 4, and if it is true, instead of "window.open", create a new tab? Can I change the content dynamically in it, and how?
Thanks for your help
Jonathan DonzallazThis forum focuses on end-user support. You can find more web development help on the [http://forums.mozillazine.org/viewforum.php?f=25 mozillaZine Web Development board]. Separate forum, separate registration. Please note the tips in the Sticky Post at the top of the forum before posting. Also, it's helpful to post a link to a "test case" that demonstrates the problem.
-
Clicking a href should open the page only once in Javascript
Hi,
Here in my project if i click the hyperlink any number of times like:-
New Page It should open the NewPage.html only once. Rather than opening the pages many number of times. I want it be opened only once for any number of times
it has been clicked. Please do provide a solution for this..
Thanks,
M.AnanthuHi,
Can you provoide an example for that so that it will be little easier to
understand. Expecting ur reply..
Thanks,
M.Ananthu -
Okay so first things first this isn't the newest macbook pro. When I open about my mac and go to system report it says it is a Macbook Pro 3,1 and the Boot Rom Version say MBP31.0070.B07. Originally when starting up Boot Camp Assistant there where only two options, the "create windows 7 bootable usb" was not there at all. So after some editing and helpful tutorials I was able to get the option show up and created a bootable usb with windows 7 and downloaded the support software onto a separate flash drive. Finally I did the last step and created a second partition for windows. Once the process is complete my computer automatically restarts.
This is where the problem is. Once my computer makes the booting up sound it doesn't load up windows it gets stuck on a apple logo as if it's trying to reastart normally and can't. So I shut down and this time I hold down the option key during start up. It brings up the main partition and some recovery thing but no windows partiton and no bootable usb.
I forgot to mention that I am running OS X 10.9.3. Okay any body want to help me out? Iv'e been at this for hours and can't get an inch closer to having windows. Please and thank you!
P.S. If I missed a discussion that answer my question just point me to it. Iv'e been looking for a while, but who knows i might have missed one.The only known way to make it work on an external drive is by first installing Windows onto an internal drive, then cloning the install to an external Thunderbolt drive. Thunderbolt is seen as an extension of the internal bus, so Windows doesn't see it as an external device.
-
i have been using this page in all versions of firefox until ver 4.0 and it has worked fine
https://npwas.com/dummy/charts/charts.html
when this page is loaded enter a stock symbol in the text field "AAPL"
then click one of the lower links --"Yahoo Headlines"-- and another window is opened with this code
- function yahoolink(sqlstring, winnum) {
- var myurl = "http://finance.yahoo.com/";
- var mysymbol = document.SymbolForm.symbol.value;
- var mysrc = myurl + sqlstring + mysymbol;
- var mywindow = "mywindow" + winnum;
- //alert("mywindow- " + mywindow);
- if (sqlstring == "mb/")
- mysrc = "http://messages.finance.yahoo.com/" + -sqlstring + mysymbol;
window.open(mysrc,mywindow,'resizable=yes,titlebar1=1,toolbar=1,scrollbars=1');
all this works but when i right click on a message or news item and select "OPEN IN NEW TAB" - it fails to open the tab in this current window it opens it in the parent window --
the way i have always used this is to able to select news and right click all news items to read as new tabs and have all news items or messages to be grouped in the child window
this is now broken or do i need to recode something??
https:\\npwas.com come is my secure server and you may load the page and see the code
so far i really love ver 4.0 especially the sppppppeeeeeeeeed!!!!
keep up the great work
thanx in advance
tojo2 Solutions found in [http://support.mozilla.com/en-US/questions/791244]
the user cor-el has a method that does not require any add-ons. He States
This code in userChrome.css will move "Open Link in New Window" to the top of the context menu.
<pre>@namespace url("<a href="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul</a>"); /* only needed once */
#contentAreaContextMenu > * { -moz-box-ordinal-group: 2; }
#context-openlink { -moz-box-ordinal-group: 1 !important; }</pre>
the user jay_ff shows how to do it using the Menu Editor Add-on
1. Install the Menu Editor add-on from https://addons.mozilla.org/en-US/firefox/addon/menu-editor/ .
2. After the installation, go to Firefox> add-ons (or simply use Ctrl+Shift+A)
3. Go to the Menu Editor "Options"
4. In the "Main context menu," simply grab the "Open link in New Tab" and place it below the "Open Link in New Window"
5. and Voila! You may also change other menu options if you want to!
I tried jay_ff method first and found that indeed changing the Main Context Menu did cause the hotlink context menu to change as well. -
Named Destinations with window.open
I have a ColdFusion application that opens a reference document to a specific point of reference. I had been using an html page with anchors for the reference document but would like to use PDF with named destinations.
The code I am using is from a button click event:
<input type="button" value="Reference"
onClick="var ptr = window.open('../reference/<cfoutput>#reflink# </cfoutput>','popup','width=600,height=600,scrollbars=yes,resizable=yes,toolbar=no,direct ories=no,location=no,menubar=yes,status=no,left=500,top=0'); if(ptr) ptr.focus(); return false">
The reflink variable would be something like "myreference.html#myanchor for html and "myreference.pdf#mydestination" for pdf.
The code works fine for html. The click event pops the window and displays the anchor location. Another event will refresh the existing open window with the new location.
With the pdf, the first click works correctly. The second click clears the document view to blank and the first window is effectively hung. If I click again, a new window is opened and the first window remains blank.
If I don't use named destinations, the window is refreshed each time with the pdf file and the not hung. So the problem only occurs when there is a named destination in the URL. But I need named destinations to zoom to the reference location.
This occurs with IE 8.
When I use Firefox, the behavior is different. The window pops correctly, but after the first attempt, it does not navigate to the correct named destination. Any subsequent click event results in the pdf file staying at the existing location.Yes, I think you're right. I tryed the same in the HTML-protocol and it works: example:
http://profiroll.fidom.de/pdf/01_Lastenheft_PPA_LH3_8.1_Elektrik.pdf#page=42
It would be nice to find a workaround to use this "addressing" in MS-Office! -
Interaction ABAP Web Dynpro popup with Windows
Hello,
I have made a view Z_Y in Web dynpro for ABAP. In this view I call a standard external window with the statement:
lo_window = lo_window_manager->create_external_window( url = lf_url ).
lo_window->open( ).
The lf_url field is a location on the Windows(XP) network. It could happen that the file doesnt exist. In this case I get a standard Windows error message in a popup that the directory cant be found with a OK button. When I click OK the popup is closed and I can use other functionality of the ABAP dynpro view.
I integrate view Z_Y in another dynpro window (W_WINDOW) that is called as a popup using the following statement:
create popup window **********************************************************************
DATA: l_window_manager TYPE REF TO if_wd_window_manager.
DATA: l_api_componentcontroller TYPE REF TO if_wd_component.
l_api_componentcontroller = wd_comp_controller->wd_get_api( ).
l_window_manager = l_api_componentcontroller->get_window_manager( ).
wd_this->m_popup_window = l_window_manager->create_window(
close_button = abap_false
button_kind = '2'
modal = 'X'
window_name = 'W_WINDOW'
title = 'Popup' ). "#EC NOTEXT
wd_this->m_popup_window->open( ).
Then I call from view Z_Y the external window using this statement again:
lo_window = lo_window_manager->create_external_window( url = lf_url ).
lo_window->open( ).
If the directory doesnt exist I get the same standard Windows error message in a popup that the directory cant be found with an OK button. But when I click OK I cant get back to the web dynpro application. I get a throbber/popup please wait and I have no interaction anymore with the button close of the dynpro popup. The buttoner size still works.
Can someone help me?
Kind regards,
Yan CazarellyHi
You ca use this function to Create a new window..
CALL METHOD wd_window->create_window
EXPORTING
modal = abap_true
window_name = 'MMPUR_CPPR_RFQ_WDW'
title = lv_otr_text
close_button = abap_true
button_kind = 3
close_in_any_case = abap_true
RECEIVING
window = wd_comp_controller->window.
wd_comp_controller->window->open( ).
here you acn impliment buttons, if you want to subcribe window button please use this window subcribe method.
CALL METHOD wd_comp_controller->window->subscribe_to_button_event
EXPORTING
button = if_wd_window=>co_button_ok
action_name = 'RFQ_WT_VENDOR'
action_view = l_api
is_default_button = abap_false
button_text = lv_otr_text
tooltip = lv_otr_text.
wd_comp_controller->window->open( ).
Please let me know if you have any issue. Please reword if its solve your problem.
Regards
Satrajit -
Strategy plan with package to be executed only once
Hi All,
Created a time based maintenance plan with strategy. Included 4 maintenance packages in the strategy. One of the maintenance package should be executed only once upon scheduling the maint. plan and should be due on the date on scheduling.
What scheduling parameters are to be maintained?
Regards,
AbhijitHi Abhijeet,
The Functionality of Offset is actually different.
Suppose you procure a new Equipment, you have erected and comissioned, but the use will anly after 3 months as the predessing and subsequent Equipment needs some time for the Erection and comissioning, in this case, you maintenance plans should start after 3 months only,
for this reason the Offsetting Field is used.
that is if you maintain the offseting of 3 months then the cycle will start after 3 months.
it means that if today is 20th December and you have a cycle frequency of 1 month and you give the offseting for 3 months then your plan will be only activated from 20th march,and the first order will be generated 1 month(cycle period) after that.
that is 20th April.
Hope it further clarifies your doubt.
Regards,
Yawar Khan -
The bidder should quote only once in LAC
Dear Experts,
We have a special requirement in LAC.
The bider should be able to quote only once in the LAC. Can there be any BADI to achieve this?
The exact details of the business requirement is as below:
We would like to have 2 document types of Auction. One is "Preliminary auction". Other is "Final Auction".
We need above correction in the document type viz "preliminary auction", the other document type "final auction" should work as it is in standard SAP.
Kindly suggest.
GHMy suggestion would be the same as Masa's. RFP is the right venue for your "preliminary" type of price quote. Except for the "Live" feature, other requirements, such as driving down price could be achieved. An example would be the following:
1. Define a custom field for RFx that essentially stores the latest bidder price quote
2. When a bidder responds, in BBP_DOC_SAVE_BADI for BUS2202 (response), update that custom field with the response item price
3. In BBP_DOC_CHANGE_BADI for BUS2202 (response), check the bid price against the preceding RFx's item custom field mentioned above and throw error message if the quoted price is higher. -
Console Application to run with window open
Hi Guys
I have a Console Application that I wrote and it working perfectly when I run it manually. It can create report using Crystal Reports, exports to PDF and then print.
My challenge was when I ran it as a task, the reports are created but its not printing, my default PDF view is Adobe.
How can I run my app with the Window open because I think that's causing it not to print
BrianAfter doing some searches it turned out the issue I had was with Adobe Reader XI, when run from Task Manager it always gives problems so.
I ended up using PDF XChange Viewer for printing and I can now print my PDFs with no Windows popoing up. I installed the free Viewer and call it from my code to print.
Process.Start("C:\Program Files\Tracker Software\PDF Viewer\pdfxcview.exe", " /print:printer=""" & PrinterName & """ """ & pdfFileName & """") -
Print should come only once per document number
Hi All,
I have done a script for the WC Document,
But now the client requires it to print it only once for a particular document number,
How can we do. Is there any such coding to restrict the print only once per document.
If anyone knows the solution please post ithi
check the entry in nast table if you find more than 1 enrty that is repeated print .....
select objky
kschl
erdat
eruhr
vstat from nast into table gt_date
where objky eq gv_del_num. ---> document number
if sy-subrc eq 0.
sort gt_date by objky erdat descending .
describe table gt_date lines lv_n.
if lv_n gt 1.
gv_repeat = lc_x.
endif. -
Sharing Internet With Windows XP - Firewall Off Only (How to unblock UDP)
Hi
I can share my Mac connection with my windows PC but only if the firewall is off.
On the Tiger forums it says go onto services and click the advanced tab and unblock UDP traffic - and then firewall can be turned on.
This option doesn't seem to be available in Panther - so until I upgrade can anyone tell me how I unblock UDP traffic in Panther?
ThanksHello albertoPeralta. Welcome to the Apple Discussions!
To open ports on the Time Capsule, you would use the AirPort Utility to configure Port Mapping.
AEBSn - Port Mapping Setup
To setup port mapping on an 802.11n AirPort Extreme Base Station (AEBSn), either connect to the AEBSn's wireless network or temporarily connect directly, using an Ethernet cable, to one of the LAN port of the AEBSn, and then use the AirPort Utility, in Manual Setup, to make these settings:
1. Reserve a DHCP-provided IP address for the Shakespeer host device.
Internet > DHCP tab
o On the DHCP tab, click the "+" (Add) button to enter DHCP Reservations.
o Description: <enter the desired description of the host device>
o Reserve address by: MAC Address
o Click Continue.
o MAC Address: <enter the MAC (what Apple calls Ethernet ID if you are using wired or AirPort ID if wireless) hardware address of the host computer>
o IPv4 Address: <enter the desired IP address>
o Click Done.
2. Setup Port Mapping on the AEBSn.
Advanced > Port Mapping tab
o Click the "+" (Add) button
o Public UDP Port(s): 4000
o Private IP Address: <enter the IP address of the host server>
o Private UDP Port(s): 4000
o Click "Continue" -
I have a new (mid-2011 27" Imac with 2 Thunderbolt Ports each driving one 27" Thunderbolt display.
Graphic card is AMD Radeon HD 6970M with 2Gb of VRAM. All works 100% in Lion but
in Bootcamp 4.0 running windows 7 Professional (64 bit) Only 2 of the 3 screens work not all three.
Tried updates, calling Apple etc. But no luck. Windows doesn't recognize the 3rd screen while
checking on the driver in windows is tells me it's the latest and best available. ? In VMware
Windows 7 also works fine over three screens so windows can do it. But I need it natively to
work. (i.o.w. in Bootcamp). Does Anybody know how to solve this, or if Apple is working on a
solution for this ? It really hurts to have one of these expensive screens staring at you being dead.I have a new (mid-2011 27" Imac with 2 Thunderbolt Ports each driving one 27" Thunderbolt display.
Graphic card is AMD Radeon HD 6970M with 2Gb of VRAM. All works 100% in Lion but
in Bootcamp 4.0 running windows 7 Professional (64 bit) Only 2 of the 3 screens work not all three.
Tried updates, calling Apple etc. But no luck. Windows doesn't recognize the 3rd screen while
checking on the driver in windows is tells me it's the latest and best available. ? In VMware
Windows 7 also works fine over three screens so windows can do it. But I need it natively to
work. (i.o.w. in Bootcamp). Does Anybody know how to solve this, or if Apple is working on a
solution for this ? It really hurts to have one of these expensive screens staring at you being dead. -
Phptoshop CC always starts with window open
Dear reader,
Photoshop always starts with opening a window (grey) at start-up or when closed en re-opened. How can I close this window permenently so that i can see my desktop when closing last Photoshop picture (window).
With kind regards.Sounds like your on a mac and want to turn off the Window>Application Frame
-
Label printing should be only once for a material doc number
Hi,
we have a tcode in which if we provide a material doc no. and number of prints..but once we print the labels,
then again if we have to print for the same material doc no..it should not print..instead it should ask for permission to print that number again..is there any option available in scripts to do like this?try to maintain ztable
ztable fields document no , printed...
such that to identify the docu no has been printed previously r not...
select single printed from ztable into printed where docu no = p_document.
if printed = X
if it is printed then try to pop up a screen such thst to approve it ....
else.
print it strightly.....
Maybe you are looking for
-
External hard drive will not pop out of my desktop
I just bought a Simpletech Signature Mini 250 GB external hard drive but the external HD does not launch on my desktop or utility. I contacted the Simpletech Tech Support but no one answered... Please help! The external HD is connected via a USB plug
-
Create Credit Memo Request through txn. FB65
Hi Experts, I want to create Credit Memo Request through txn. FB65.I am using Bapi 'BAPI_ACC_DOCUMENT_POST' to create it. Can anyone please tell the the minimum parameters which I will pass in this BAPI to create CreditMemo Request? Helpul answers wi
-
Oracle9iAS v1.0.2.2.2 for AIX
After download all Aix_iAS_10222_Disk?.cpio.gz files, we got error when "cpio -idmv < Aix_iAS_10222_Disk1.cpio". all files' size match those in OTN and "gzip -d" ran Ok with all downloaded files. Anyone idea? Here is the error wee got, cpio -idmv < A
-
FAILED_TO_SAVE_CREDENTIALS
Hi, Im getting FAILED_TO_SAVE_CREDENTIALS error while uploading custom RPD thr EM. Kindly let me know the solution.Thank you.
-
L3 Deployment OOB Virtual Gateway
Hi Faisal, Good day! I would like to ask about the L3 deployment approach using OOB Virtual Gateway. What I did was enabled the L3 support and applied static routes. When I tried to connect a client workstation I cannot get an ip address. The cisco s