I've created a single form with multiple buttons. I am now attempting to have a couple of these buttons open a new window when clicked. The new window opens fine but the original browser window keeps opening to an [object Window] page. I believe this is because it is not reading the "return false" correctly but I am not sure how to fix this.
This works fine on a page by itself, but it opens the "chat.htm" page, as well as one before it that runs the code. It would be much better to just run it from a hyperlink button from the main page and not load the first unnecessary page in the first place.
I have some code which forces external urls to open in a new window, it works great but an Addthis I have added to the exclusion list still opens in a new window (which is a fallback if there is no .js etc) (as well as the popup appearing).Really not sure what to do about this, any suggestions will be welcome. Maybe change the new window method from simply adding the target="_blank"?
I have 2 Javascript's running, and as you can guess by my title, only one is loading because of the window.onload being triggered twice. The last one that is called in the <head> of the document is the one that runs. One of the JavaScript's is run in the page, the other is called from a external file. I cannot figure out how to combine the window.onload functions so they can both be run. Here's the first Javascript that contains a window.onload. This is responsible for rounding the corners on my page. This code is inserted directly in the page, with an external file that accompinies it. The external file does not contain the window.onload, so i havent attached it.
I have a problem on the links on my page im working.sorry guys still a noob and my english is not that good. :b. my question is like i have a list of packages of food. [link_a] [link_b] [link_c] and i have a function that i put in my head tag:
function linkA() { window.open('link_a.html','link','width=300,height=200,resizable=yes'); }
now i can go to linka.html by click my link <A HREF="javascript:linkA()" >link a</A> is there a way i can have one functions that can open a link depend on what page .when it clicks then go to its designated page or i have to stick on writing function for linkB ,C,D and so on.
I have a HTML and I am opening another link in a separate window using window.open() . The child window is something like 'http://yahoo.com' which is out side html. I need to refresh the parent window when the child window is closed.
Through window.open or window.showmodaldialog, I want to open a word or excel document in Print Preview mode. Bcos I don't want the user to make any changes or save it but the user can ONLY VIEW OR take a print out.
I'm using an <A> tag with an onclick event to open a window with JS (window.open)... In FIREFOX, if I click very quickly, multiple windows open. Not a problem in IE.
in the above i'm getting the following error: "Firefox doesn't know how to open this address, because the protocol (c) isnt associated with any program"
window.open() doesn't open an entirely new window in FF3.6, just a new tab
Edit: Yeah, ok, so if i specify a size smaller than the current standard window, it'll be forced to open a new window. but what if i want a new standard sized window to open entirely?
I have it set up so that there are three frames (frames and the use of javascript are encourage for practice) "bar" on the left with navigational options, "main" in the center where the body of the drill is presented, and "feedback" along the bottom where the feedback will appear.
My issue is that I have everything working except the form! I'm not sure how to make it so that upon clicking the submit button the feedback is presented in the "feedback" frame. This was suggested to me but isn't working, maybe I have a mistake somewhere? Or is there another way I can do this?
<html> <head> <script type="text/javascript"> function CheckCheckbox() {
Quick question. (I tried to use firebug but have no idea how to do it correctly)I have got some button at page. After click it triggers some function. How to exactly find out what is the name of this function and which library (file) loading it.
Clicking on the menu buttons, a box with some info opens, ad under that, a div that makes the body of the site black. the problem is when i click a different button, to open a different box, the "div#black" should stay open and not toggle. i tried this
var black = $("div#black").toggle() ; if (black == false { $("div#black).fadeIn("slow"); };
and this was the javascript for the button (with the toggle function, when i didn't use the if/else):
[Code]....
I don't know which is the correct way to write the if statement, i used easier ones but this one is to complex for me :D i think the main problem is the "var"
I need a script that will open a new window (popup / new link) in a specific size, but will also close the old window (where the popup came from). I know the popup window is easy but finding a work-able close window script as the new window is opened is impossible!!
I am trying to pop up a window and then do stuff(set flags) when the content of the new window is done loading. For this I am trying to detect the window.onload of the pop-up child window but so far I am unsuccessful. I believe my problem is that the URL of child window is on different domain, than the one of the opener(parent) so that the window.onload is not being called. Though this may change, at the moment I do not have access to the code for the page I'm opening up in the pop-up. Im pretty new to web development.
I need to open a popup window from a PHP site and pass in some parameters to use in the pop up window. I have the params in an input box and need to get the val of the box into a param and pass it to the new popup window. All pages are local and in the same folder. The id of the input box is 'ddutykey'. The name of the new window would be showduty.php if possible.
I've been hitting a strange bug where callbacks are not invoked when a JSON response is returned from an AJAX call under jQuery 1.4.1. I just upgraded my app; this was working perfectly pre-1.4.
I do specify the return type as "json" when I invoke $.post . When a simple JSON string like "false" is returned, the callback is invoked. It seems to fail with more complex types, specifically with JSON objects, i.e., {"a":1, "b":5} .
If it helps, I'm running Firefox 3.5 on Ubuntu. In my test environment, the only installed extension is Firebug.
With ref. to MS IE, when I use window.open with the usual sizing and 'toolbar=yes', 'menubar=yes' the target URL opens in a new window - but without an address bar.
'addressbar=yes' does not seem valid. Can someone please tell me how to proceed?
When creating a new window and specifying ANY features (on or off) at all like such:
<A HREF="javascript:void(0)" onclick="window.open('NONE.php','welcome','toolbar=1,location=1,directories=1,status=1,menubar=1,resizable=1, scollbars=1')"> Open a new window</A> the new window does not have scrollbars even though scrollbars are necessary for my document (vertically, at least).
This problem occurs in Firefox and Internet Explorer 6. The problem does NOT occur if there are no features are specified.
I've got this row of images (in the end there will be more rows of pics as well). When a user clicks on the image, I want a new window to open with a larger version of the image. I want that new window to be customized to the size of the new larger image. Also, when users go back to see other images in their larger size, I want the new window (assuming they never closed the first one) to come back to the front.
I've only gotten as far as getting the larger images to open in a new window at a set size in the function. I thought I could just make specific scripts for each image, but that would be cumbersome to say the least....