Window Function Not Working Fully In Chrome / Resolve This?
Feb 27, 2011
I have a small script that tries to open a child window. if successful, it then closes the child window and redirects the parent window. If this process fails, there is no child window, no redirection.
the script below works fine in FireFox but in Chrome, if the process fails, the redirection still happens. code...
function PopUpWindow(w,h,urla,v) { document.getElementById('h1').value=v var popUpX = (screen.width/2)-w/2; var popUpY = (screen.height/2)-h/2; var pos = "left="+popUpX+",top="+popUpY; window.open(urla,'myPopup',"scrollbars=yes,width="+w+",height="+h+","+pos); }
The above function is called by the following button click event onclick = "PopUpWindow(390,500,'gal_rhinoplastyresult.html',photos1)" where photos1 is an image array
which opens the bellow page as follows....everything is fine but no functionality in print i.e. window.print() not working.
I am trying to do a setInterval to switch the background-image of a div. The switch will happen every second. Here is the html code...
On firefox 6 and IE9, it switches just fine. On IE8 and Chrome it switches once and then stops.
Not sure why it is working in the newer browsers and not the older ones. I know there were some new javascript features added to the newer browsers, but i cant figure out where the error is occurring.
I am calling javascript from java and calling a function, and that function on an image I am calling onmouse over. So now the problem is, I have two jsp, secord inside first. When I click first jsp where is onmouseover, it's working fine and after that i am doing operation in second jsp and coming back on first jsp's image so onmouseover should be display but it's not working in chrome.
I am using a tiny script that is meant to expand and collapse paragraphs with the click of a "more../less.."link. The page I am writing is working as intended in IE8 so far, however the Javascript functions are not working in FF 3.6 or Chrome. When clicking on the "More../Less" in FF or Chrome, nothing happens.Here is the JS [code]...
There is a long thread about this in the posiiton() reference page, but I am not finding a thread here in the forums, let alone a solution. I have some code that is trying to do calculations on the left and top attribute of child DOM elements. So, I have 5 divs (floated left, with width and height assigned), contained in another div. If I iterate over the 5 divs and call either position(), offset() or even css('left'), they always return 0. I have tried setting margin: 0px as well, but same result.
I am attempting to implement a javascript joystick plugin. The project has a google code page located at: [URL]
After installing the plugin, the javascript works flawlessly in IE and FF, however chrome has some issues with executing it. A hosted version of what I am having trouble with can be found at [URL]
The issue seems to be with a snippet of code from the main script that attempts to create an object and embed it on the page. The trouble area can be found here: try
{ ctrlFF.type = "application/x-vnd.numfum-joystick"; ctrlFF.width = 0; ctrlFF.height = 0; /* * Before accessing the plug-in's script interface it needs to be
[Code].....
Chrome doesn't seem to support the .setDevice function, as when running the chrome developer tools inspect element tool, I can see it throw an exception at that line, and prompts the user to update java, because it thinks it is out of date.
just started using jQuery,and i'm having a problem using the function .show()/.hide() to make a div appear and disapear when a certain option value is selected.It's working fine in firefox but not working at all in chrome and IE 8.This is the function code i'm using :
i have an iframe inside a page(main). In that iframe, i am calling a java script function that is in the main page.This function call is working in Mozilla , IE but not in Safari and google chrome?? Is there any specific reason for that? when i add the function in the iframe it works.
I'm having some problems with the bind contextmenu for images with Jquery. It works perfectly on some browsers, but for FF2 and some older versions of IE it is blocking everything.I have this on my main js script:
This code runs prefect in FireFoc but IE7 will only process the first request. I remember reading something about IE of processing first respondText and if invalid character are in there it no not process any more. I am just passing plain HTML and rather using innerHTML because it seems earlier than using XML and i really don't see any benefit on using XML. is there any way i can get this to work nicely in IE?
I have a drop down menu on my page, works. Then I went to add another ddm, doesn't work when on page, but works independently . DW creates a file called mm_menu.js. I am sure the problem is here, but I don't know what to change. Might anyone here know what I am talking about/had this prob before?
I added the tooltip for mouseover event on select box items. Design New Cable in this page, i added mouseover tooltip on 9th select box items. First at the time of loading the page, it will show only one select box...
I have a form that lets users click on date time value that is a link. When the link is clicked, a pop up opens up allowing the user to change the date and time. When they submit the date/time change form, the pop up is supposed to close and the date/time i the original form should be updated.code...
I'm don't do Javascript that often and I have a function that is not working fully. The problem is that the first function Form1_Validator runs correctly, but checkTheBox() does not run at all. Its a form validation script. The first function checks that text fields are filled and the second checks to make sure that at least one checkbox is checked.
I'm making a little script using jQuery to send a sentence to a textarea by clicking on the text. It does this fine however, if I edit the textarea to remove a sentence manually, I can no longer click on the sentences to send them to the textarea. Don't know why this happens. It's been a while since I played around with JavaScript.
I've tried to google this but cannot seem to find an answer. Does anybody have an answer for this? Or could you perhaps point me in the right direction to find the answer?code...
I've got a page that has a navigation and content div.
The navigation consists of a JS tree menu that has AJAX event handlers associated to all its links so that when the user clicks on any of the links, the content div will update accordingly. The content div is making use of a number of JQueryUI elements such as tabs and accordions among others.
All the JS works fine when I initially open the page; it's only until I click on any navigation link when the problems surface. Once I do none of the JS appears enabled any more in the content div.
I've tried linking to the JS file from the AJAX PHP script called, and that gets the JS to work but only after exhibiting strange behavior - the content div flickers between a JS enabled/disabled state for a few seconds. I figured this may be because the JS file's contents will have been duplicated as it is the same script loaded when initially opening the page.
I have a page that I click an edit button. Upon clicking the edit button, another page is loaded via ajax, and displayed inside a <div> tag. During the new page that is loaded, I am pulling some field's properties to see if they are filled in, and if they are, then make them a certain color. Currently, on slower internet connections, this PageLoad function will not work because the pageload function is ran before the page is actually loaded.
So, I am looking for a solution to check to see if the page is loaded, completely, then I want to run the PageLoad function. Here is the function from the click of the button that says "edit". This calls the page to display: