I plan to use this functionality in a few places on the pages. To do so I want to check if something else has been opened (and not closed) and if any of the other items called are still opened, close them. Some sort if if statement that checks for 2-3 variables :items 1,2,3 are :open, close them all before opening this item.
The application I am working on uses Frames (TopFrame, SideFrame(Left) and the MainFrame). On the occurance of a certain event, I am closing the window from one of the frames. This is the script I use.
function CloseWin () { window.opener = window; window.close(); }
Works perfectly well with IE. But not with Netscape. The Javascript console says 'Script may not close windows that were not opened by the script'. Is there any workaround to this?
I have inserted javascript code into my .js stylesheet to disable the right clicking of images on the page where the thumbnails are:
[Code]....
However, when the images open in a new window, the 'no right click' function does not apply. Does anyone know how to disable the right click for the newly opened images?
I'm trying to have multiple divs with the same class acting a s a button. I need to handle the click for each one. I will be obtaining the name attribute and passing that in an ajax call.However, this only works for one of the divs on the page, am I doing something wrong?
$(document).ready(function(){ $('#mark_sold').click(function() { var item = $(this).attr("name"); alert(item+'clicked'); }); });
I'm also going to need to know how to refresh an image, too. I will be updating an image in the ajax call.
1)Need to display menu on right click of a data grid using Jquery,2)I need to disable or hide some of the menu items in certain rows,3)postback to the server with the selected row details
version of Apycom's jQuery menu; you can find itat http://apycom.com/ and it is looking really good.I have uploaded files, and published it on a test site - www.flexin.beUnfortunately, some of the submenus starting from the second that haschildren elements, it adds the item on the top level in InternetExplorer.Does anyone on this list has any experience with this library?
I have a starting page, Page1.php that uses Page1.js.In Page1.js, I'm using the onclick event for a button that's on that page. When the button is clicked, it goes to Page2.php. Okay, fine.Page2.php is using Page2.js. But when the browser switches to page 2, I get a javascript error because, somehow, it's still referencing the Page1.js file. (Using IE8)So how do I 'dereference' the first javascript file, so that when Page2 loads, it doesn't still try to instantiate the objects in Page1.js? (I'm getting a null object error when Page2.php loads).
I have a problem where I want the menu with 'active' to be opened, belew is the script and source I have.The accordion works fine, but just does not open on the active page,
When I clicked on the download link on the homepage (for both production and development version), the file opened in the browser (see image) but it didn't download.
I have checked the similiar questions and tried putting overflow on the ui.dialog class but the flash on the page is still being shown when the dialog is opened. My jquery skills are not good at all, how can I hide the flash?
I am trying to modify with jQuery the content of a child window but for an unknown reason it does not work. I would be gratefull if someone may explain what (how) happend. Here is my code:
<html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ // Open a new window with a bare html file var newWindow = window.open [Code]....
What I expect (you should already have understood) is a new div to be appended to my child window body. The div (and its text) is effectively inserted (in new child's window) but then disappears in the process. Once I look at the generated code, the div is not in child's DOM.
I am trying to work out a vertical multilevel sliding menu. I started using the UI accordion but I just discovered this code in an old post that works fine:
Training qualification seminar If I click Training link,it should display the web page of Training in the same page itself,where this menu exist.If I click qualification link,the web page of qualification should be replaced in the same page. similarly for seminar link.
I have an ASP.net page where I load a record set server side and upload it into a listbox. I'm trying to do all the movement functionalities of the listbox items client side. Specifically, I'm trying to figure out how to copy selected listbox items from one listbox to another -- on button click. I've searched for a while, but every example that I found moves the actual item into another listbox, I just want to copy the selected item to another listbox.
I cant really figure this out, the only thing i could see messing it up is the javascript:void(0) inside the anchor link but since there is a double click function and a click, it should only be one click.I put autoOpen which i think is also causing it, but i did that so theuser can open it, close it, and open it again so the delay "double click" is saying for the first time initialize and then the second click is opening?? if so how do i get around this?
HERE IS MY JQUERY $(document).ready(function(){ $("#pro_edit_profile").hide();[code]....
I've got a div that slides out from the left of the screen when the page loads but I can't figure out to get it slide back when another navigation button is clicked. The navigation has several buttons so clicking on any of them would make current div to slide back out of site.
There is a checkbox on a form page, when you check it, a div will become visible with some extra inputs needed for that situation. To simulate this click on the checkbox external, I use click(). With jquery files 1.4 and lower this works properly and like expected. When using jquery library 1.4.1 or higher, something does not seem to work properly. Sooooo, the code:
Somehow I managed to get this thing 'sort of' working with 1.4.1 or higher. But the code to accomplish this is absurd. See functioncheckTheBox4Plus() on line 8. It works :) but shouldn't.. Or is it the other way around?
I have five divs that I want to work kind of like an accordion, but you can open multiple sections. Right now, when user clicks any link, it opens all five sections. And when you click to close, it closes all five. I want to be able to open one section, then go to the next and so on.
I am doing a chating application.I want to know whether a window is opened or not. This is the code i am using to open a window.
var title='Chat_'+userId+"_"+selectedUserId; var url="OneToOneChat.aspx?FromUserId="+userId+"&FromUserName="+userName+"&ToUserId="+selectedUserId+"&ToUserName="+selectedUserName; window.open(url,title,'width=410,height=400,toolbar=no,menubar=no,scrollbars=no,status=yes',false);
later i trying whether the window is already opened or not.
[Code]...
for win.closed it is giving javascript error like "closed is null or not an object". I am using IE7.
I have a system receiving an html document as an array of lines, an am inserting this into a div using .append().
If an html tag is opened in 1 line (array element) of the string, and not closed within the same line, .append() automatically closes the tag on the same line, though there is already a corresponding close tag later in the html string.
Minimal test code:
$(document).ready(function() { var testString = [ "<pre>Test line 1 ", "line 2 ", "line 3</pre>" ];
[Code]....
Is there an append alternative without this behaviour?