Window.Open Suggestions
My datagrid contains LinkButtons to open new windows. When the user clicks a linkbutton the following attribute is added to the body.onload:
body.Attributes.Add("onload","window.open('http://fww/scripts/codebook/clientinfo.exe?" + strClnum + "','ClientInfo','width=725,height=400,menubar=yes,scrollbars=yes')");
Obviously, this does not work in PT. I'd prefer not to add the event to every linkbutton in the datagrid while it's being rendered because I could have 1-1000 records and it's way too slow to load.
Any suggestions?
Thanks,
Darcy Williams
Its a clear workaround.I am adding new column in DataTable dynamically and populating it with "window.open javascript" for each button. I am passing a querystring thru javascript that corresponds to each button. See the aspx code in red. JavaScriptForText is the new column in DataTable.
ASPX code - (Datagrid's TemplateColumn)
<asp:TemplateColumn HeaderText="Report Status"> <ItemTemplate> <SPAN id=spanID OnClick='<%#DataBinder.Eval(Container.DataItem , "JavaScriptForSpan")%>' ptrender="true"> <asp:Button ID=buttonCheckOut Text='<%#DataBinder.Eval(Container.DataItem , "ReportFileStatusText")%>' runat=server CommandName='<%#DataBinder.Eval(Container.DataItem , "ReportFileStatusText")%>' ptrender="true"> </asp:Button> </SPAN>
</ItemTemplate>
</asp:TemplateColumn>
Code behind (value that goes to 'new' DataTable column)
javaScriptText = "javascript:window.open('/reportapproval/nextPage.aspx?"javaScriptText &= "querystringParametet=" & queryStringValue & "');"
So now whenever button gets clicked span's onclick function is also fired. (span is basically enveloping the button with its onclick function). AND at the same time, Datagrid's ItemCommand event for the button's commandNamewould run the server side function. I had to deliver the portlet ASAP so came up with this workaround. Would love to know the right way of performing the same functionality (with an easy example or easy to understand code)Hope this helps
Similar Messages
-
Apple Mail with OSX 10.9.5 quits on launch when mail window opens. May be related to install of Security update 2014-005. Any suggestions on fixing this?
Here is the beginning of the Problem details error message:
Process:
Mail [763]
Path:
/Applications/Mail.app/Contents/MacOS/Mail
Identifier:
com.apple.mail
Version:
7.3 (1878.6)
Build Info:
Mail-1878006000000000~1
Code Type:
X86-64 (Native)
Parent Process: launchd [264]
Responsible:
Mail [763]
User ID:
501
Date/Time:
2014-10-20 15:23:32.902 -0800
OS Version:
Mac OS X 10.9.5 (13F34)
Report Version: 11
Anonymous UUID: 1058C7CE-141A-982C-2F1D-4F0EB47F37A1
Crashed Thread: 10 Dispatch queue: NSOperationQueue Serial Queue
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSKeyPathExpression objectForKey:]: unrecognized selector sent to instance 0x60000045ff20'
abort() called
terminating with uncaught exception of type NSExceptionTry a restart.
Do a backup, using either Time Machine or a cloning program, to ensure files/data can be recovered. Two backups are better than one.
Try setting up another admin user account to see if the same problem continues. If Back-to-My Mac is selected in System Preferences, the Guest account will not work. The intent is to see if it is specific to one account or a system wide problem. This account can be deleted later.
Isolating an issue by using another user account
Try booting into the Safe Mode using your normal account. Disconnect all peripherals except those needed for the test. Shut down the computer and then power it back up after waiting 10 seconds. Immediately after hearing the startup chime, hold down the shift key and continue to hold it until the gray Apple icon and a progress bar appear and again when you log in. The boot up is significantly slower than normal. This will reset some caches, forces a directory check, and disables all startup and login items, among other things. When you reboot normally, the initial reboot may be slower than normal. If the system operates normally, there may be 3rd party applications which are causing a problem. Try deleting/disabling the third party applications after a restart by using the application un-installer. For each disable/delete, you will need to restart if you don’t do them all at once.
Safe Mode - Mavericks
Safe Mode - About -
We currently migrating over to http server from SunOne web server. When you run the launch.html file an additional browser window opens but the swf doesn't not start playing.
The new http server is using exactly the same doc root as SunOne.
I have swf in the mime types and i've checked all the permissions .
Conf File
Include /opt/IBM/WebSphere/HTTPServer/conf/httpd.conf
Listen 1xxxx
DocumentRoot "/www/edc/docs"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/www/edc/docs">
Options FollowSymLinks
</Directory>
######### DirectoryIndex ############################################
directoryIndex index.html index.htm
IndexOptions FancyIndexing VersionSort
########## Pidfile location,Error and Access Logs #####################
PidFile /opt/IBM/WebSphere/HTTPServer/logs/edc/httpd.pid
ErrorLog "|/opt/IBM/WebSphere/HTTPServer/bin/rotatelogs /opt/IBM/WebSphere/HTTPServer/logs/edc/error_%Y-%m-%d-%H:%M 86400 -360"
CustomLog /opt/IBM/WebSphere/HTTPServer/logs/edc/access_log common
CustomLog "|/opt/IBM/WebSphere/HTTPServer/bin/rotatelogs /opt/IBM/WebSphere/HTTPServer/logs/edc/access_%Y-%m-%d-%H:%M 86400 -360" common
LogLevel warn
# The following directives define some format nicknames for use with a CustomLog directive
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
Alias /icons/ "/opt/IBM/WebSphere/HTTPServer/icons/"
<Directory "/opt/IBM/WebSphere/HTTPServer/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>Hi,
I would suggest you read the following thread:
Windows Media Server Did not Accept HTTP or RTSP streams???
http://social.technet.microsoft.com/Forums/en-US/winservermedia/thread/b3f4f8c9-ac36-49e6-adc7-21e744d2e28f
In addition, please check whether the following blog could help:
Play "mms" and "rtsp" Streams in Windows Media Player
Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
Thanks,
Vincent Wang
TechNet Community Support -
For some time now and after firefox has automatically been updated a few times, I click on images or links which are supposed to open in a new window automatically. A new window opens but it is blank with no toolbars, just an adress bar with nothnig in it.
mha007, Thank you. I walked through your suggested solutions and finally disabled all add-ons and restarted them one by one. The culprit seems to be ViewSourceWith 0.8.11. Interestingly when it is enabled I had to go to TaskManager to force Firefox to quit.
Maybe this information will help others. I don't know if the cache clearing etc helped but I would suggest that others start but Bringing up Firefox in Safe Mode (hold shift when you select the icon), disable all add-ons and then start them one by one.
Of course if you have ViewSourceWith maybe you should just disable it first rather than go through the tedium of restarting each add-on separately. To get to the add-ons when it won't open from the toolbar type about:addons in the address area. -
Sirs,
The below URL came up immediately when I tried to access our Newfangled website this morning http://vdha.us :
http://surveyprizecenter.com/survey/claimgift-GT-kw-7b.php?t202kw=Vdha.us&trimmedKeyword=Vdha.us
I prefer to use Firefox and very seldom use IE-9. but now I might be forced to remove Firefox 4.0.1 and resort to using IE-9 because of this situation.
I don’t know how spammers can use our website to exploit their spamming, but I can only imagine the complaints I am going to get from our Board of Directors and members about this.
Can you make them stop, or at least explain how it is that anyone can do this without our permission.
We have never allowed advertisement on our website and don’t plan on starting now.
I am now also getting many words that are purple with two lines under them, and when you mouse over them, a new spamming window opens automatically trying to sell something. How do I turn this off?
I would appreciate any expediency in the return of an answer that you can provide.
Kindest Regards,
Dave Broeker
VDHA Life Member #1797
VDHA Webmaster & BX Manager
http://vdha.usThe "MySearchDial" app needs to be removed in 4 places.
1) Go to "add / remove programs" in your windows control panel select mysearchdial and remove it.
2) Open your Firefox browser then click the Firefox tab at the top left and select options. You will need to change the start page settings back to your preferred start page.
3) Again under the Firefox tab select "add-ons". In the add-ons manager you will need to remove mysearchdial from both "plugins" and "extensions"
4) In your search bar (top right of address bar" use the drop down menu and select "manage search engines". You can restore your preferred search engine and remove mysearchdial from the menu.
This should remove all the components of the nuisance hijacker and restore your browser back to your preferred settings. If you are comfortable with a more in depth removal I would also suggest going to your "programs" folder within the "C" drive of your machine and deleting the "MySearchDial" folder altogether. However, only do this AFTER you have uninstalled it from your system and if you are familiar with this type of removal. -
Only one window opens at a time
I bought the new 27" imac, partly because of the extra work space it gave me on the screen. So you can imagine my frustration to find that I can only open one app window at a time. In other words, let's say I have safari open. I click on the evernote icon in the dock. The evernote app opens quickly, but safari disappears in the dock, leaving only the evernote window open on the screen. My goal is to have both the safari and evernote apps (for example) open at the same time, side by side on the screen.
I played with mission control and general in system preferences, but nothing seemed to work. One potential culprit is C-Dock, which allows you to customize the dock. (It's not very good.) I want to uninstall it, but can't find the app in finder or anywhere else. The only cdock file I find is a small read.me file. I have gone to the original site where I downloaded and registered, but I never got a confirmation.
Any suggestions, both for ensuring multiple windows can be open on my big screen at the same time, and for getting rid of my cDock headache??
Thanks,
NickThere's a few extensions that are causing a problem like that. See this:
[http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes] -
HI,
We've got an external ITS application with a popup window to call.
we called it with:
var w1=window.open('', '', windowprops);
w1.document.write("<html><head></head><body>Hello World</body></html>");
and it worked well.
But on internal ITS it doesn't work anymore. (it creates an empty IE6-page - on Firefox it still works)
any suggestions?
A similar problem is also, that (from the popup window) we cannot receive data out of the source page e.g.:
document.getElementById('abc').innerHTML = this.opener.document.getElementById('def').value;
"this" means the popup window object.
this.opener gives an empty object (and thats the problem!)
This problem occurs in both browsers, IE6 and FF.
We use SAP ECC 6.0.
Message was edited by:
Ralph Schilleinno, sorry.
That was the wrong OSS number. I found the right one, and we patched our system accordingly - but the problem still persists.
any other suggestions?
thanks,
ralph -
Window.opener becoming null after 10 seconds
Wondering if anyone else has ran into this problem...
function refreshMe()
var openerObj = window.opener;
window.close();
alert(openerObj);
openerObj.opener.location.href = openerObj.opener.location.href;
openerObj has a value of [object DOMWindow] when a new window pops up. But when I wait approximately 10 seconds the value is becomes null.
Any suggestions or advice you may have is appreciated.Basically I'm using Javascript to pop up a window (child). That window changes to another URL (sub child) after a user selection... Once that pop up form submission is complete I want to refresh the original parent window and close the sub child.
To accomplish this I'm using window.opener.opener.location.href (the original URL) which should be saved by Safari. The problem is after approx. 10 seconds the window.opener variable becomes null. I'm guessing this is something related to Sarfari and not my code...
However, I'm open to any suggestions. Thank you. -
Target_blank vs window.open
I have a series of links in which I would like to open into a new page but when trying it out on a different computer it seems that the "window.open" behavior doesn't work on older browsers without Java (?) and it opens a new window but does not keep the current page open
but when i use the target_blank function i don't seem to be able to control the window size and wether or not there is a menu bar, etc... On my mac and on newer PC's there is no problem but on the older versions is when the issue arises and with my target demographics being what they are, I need the code to work on all platforms.any suggestions?? the links are designed for RSS feeds and here are the codes:
<a href="{link}" onclick="window.open('{link}', 'link', 'resizable=0, scrollbars=10, directories=0, location=0, menubar=0, status=0, toolbar=0, width=1000, height=630'); location.href = ''; return false;"></a>[Slightly OT]
What makes the difference is that the user can turn off JavaScript in
the browser. Some people do this out of unwarranted fears about security.
And some people do it to prevent distracting fluff from interfering with content. I don't usually do that, but I do tend to turn it off in forums.adobe.com for speed. The forum is MUCH faster and more responsive with JS turned off. Unfortunately, you have to turn it back on for some of the functions (Post a message, Next, and Previous that I'm aware of).
Mark A. Boyd
Keep-On-Learnin' :-)
This message was processed and edited by Jive.
It shall not be considered an accurate representation of my words. -
I am doing a small project on dedicated web client where in user automatically logs in non-root user and Firefox automatically starts.
I am using Fedora 14 kernel 2.6.35.12-88.fc14.i686 and Firefox 3.6.16.
I have installed only Gnome in my computer with no Nautilus or other file browser on it.
I want to edit properties of the interface windows opened while "Open File", "Save Page As" and interface opened during Downloading of any file.
Please guide me for this.First, I sent an email to the author of PhotoME to inform him of the serious issues his addon caused with Firefox latest versions.
Now, for those of you who do not have the PhotoME addon and yet experience the same problem that I had and that I described above, I suggest the following strategy.
As PhotoME did cause these problems with Firefox latest versions, I am pretty covinved other addons probably might cause these problems too. Therefore, adopt the following method.
Test one addon at a time to see if this particular addon is behind your Firefox issues like the ones I had.
So, disable one addon only at a time. Then close your Firefox and restart it from scratch and see if you still have your Firefox problems. You must restart the Firefox browser from scratch. If you still have these Firefox problems, re-enable the disabled addon, restart your Firefox (again!) and repeat the same method for every single addon that you have.
Try to be selective by choosing first addons that are more likely to cause your Firefox problems such as not very well-known or not very popular addons (like it was the case for the PhotoME addon).
If this method works or if it does not work, report it on this web page so that others can be helped with your comments.
I hope this method will help you because I was really upset that I had these Firefox problems and I first thought it was the fault of Firefox, only to discover later that this PhotoME addon was the culprit and had caused me such upset. -
Does window.opener persist (javascript)?
If a new popup (created from a parent window) uses window.opener, and the popup reloads itself when it's form is submitted to the same page by calling the same url (jsp) it was created with, does the window.opener retain it's handle on the parent window? Assume both the parent and the popup are never closed between submissions.
In simple testing, I am finding that window.opener is in fact retained, and the popup can manipulate the parent window even after the popup is reloaded. Likewise, the parent window can still be manipulated from the popup when the parent is reloaded. But I just wanted to more sure before I incorporate this in a larger application, in case my simple test was some accidental fluke.
I realize javascript variables are normally reloaded, but my initial testing suggests that the window.opener is a special persistant variable.Curt,
In the DOM opener is a Window property, therefore, if neither window is closed, all of the window properties persist.
Alex C. -
Applet window opening in OM in remote instance instead of published HTML UI
Need some help...
My model has been built in UAT instance using a BOM from UAT, I built, published and tested in this instance with no issues. Then I created the full BOM in the live environment. Then I switched my BOM source to the live environment using the many steps in order to do this. After completing these steps I published the model to the live environment selecting the mode as Production and selecting the live environment name as the target instance. My issue is when I enter a sales order line with the model on it in live and select Configurator the Applet window opens instead of the expected user interface that I created in UAT instance!!!!
Any ideas anyone?
thanks
VikkiThanks Pankaj for replying, I checked the instance where I have been publishing and testing along the build phase before changing the BOM source pointer and the profile option here is set to Yes.
However I changed the profile option setting to try it, as you suggested and it doesn't solve my problem, it now opens a different type of form where its asking me to enter every option I need below the model BOM using a list of values on every line!
:0( -
New window opens in main monitor when using dual screen
I am using dual screens and my "main screen" is on the left. Ever since Firefox updated to 32.0.1 on Monday I've been having this issue. Before the update, I would have my main Firefox window opened on the left and, when I click on a link to open a new window, it would open on the right screen. Now, it will only open on the left screen, where the other window is. If I drag the original window to the right monitor and open a link, the new window will open on the right monitor. But once I drag the original window back to the left, new links will open in the left again.
Before if I had this problem, I would simply drag the new window to the right monitor, then back to the left and close it. Then click the link again and it would open in the right. Kind of a work around I guess. But since the update, even this will not work. Any suggestions? Or is this a new function of the updated version? Is there a way for me to go back to the previous version? Any help is appreciated!Hi hollytotheg,
I understand that links opening in new windows are opening in the active screen, not on the right, second monitor.
This may be helpful: [https://addons.mozilla.org/en-US/firefox/addon/monitor-master/] the search recommends this.
However I would also recommend suggesting an enhancement in input about dual monitor new window restriction. -
Another window opens when i click on something on mac
another window opens when i click on something on mac
A window is suppose to open if you click on an app. You need to clarify exactly what is going on. Are you saying 2 windows are opening up? If so, check your speed settings in System Preference>Mouse.
Since you did not provide any system info (blank system profile) I cannot offer any further suggestions.
When posting in Apple Communties/Forums/Message Boards.......It would help us to know which Mac model you have, which OS & version you're using, how much RAM, etc. You can have this info displayed on the bottom of every post by completing your system profile and filling in the information asked for.
Click on your name Welcome "your name."
Click on your name link
Click on the BIO tab. Scroll down to the bottom till you see "My Products." This is the section where you can edit your profile.
CLICKY CLICK-----> Help us to help you on these forums -
Javascript window.open call results in new window and not new tab.
I'm creating an extension and using JS to open a new window. I've tried a variety of forms including something like: window.open("https://www.FOO.com" + dest,,"_newtab") and just window.open(url).. The option is set (tools/options) to open in a new tab. I've looked at preferences and forum suggestions to no avail. The proper url opens in a new window instead.
I've disabled all other addons and plugins.
I suspect I'm doing something silly, but would appreciate any insights.
Thx, --DonThanks for the reply. I'd seen those articles. AFAIK, the default settings are as they should be to open in a new tab (3 & 2 respectively). ...new_window.override.external = -1 though I don't know what that does or if it has any bearing on the issue.
Thx, --Don
Maybe you are looking for
-
Adobe photoshop elements 11 stopped working.
Photoshop elements 11 suddendly stopped working. I have worked with the program the last couples of years and never had a issue until now. I have not change any settings in my computer. Windows 7 (64). I have read in other forums, it may be caused by
-
Vendor's payment due analysis - Payment method wise
Hi Sapients, We currently use transaction S_ALR_87012078 to analyse what vendors are due and payable at any given date. At the moment this cannot (or we don't know how) get this split by payment method T (EFTs) and C (Cheques). Is this something tha
-
Weblogic Timer Event Generator - How it works?
Hello everyone! I have wrote simple wli-application, that subscribes to the message broker channel. I have deployed it to the cluster (managed servers 1 (ms1) and 2(ms2)). (I use Weblogic Server 10.3, cluster contains 1 admin server and 2 managed ser
-
Unable to access shared USB Disks on Airport Extreme using Leopard
I have a Mac Book Pro, iMac and Mac Mini all running Leopard with all of the latest updates. I use an Airport Extreme (also patched to the latest updates), and it has a 100 GB USB drive attached. When I was running OS X Tiger, all of my devices could
-
How do I update to the newest version w/o losing my bookmarks etc..?