This problem is for IE 6 only! Strangely it works in IE 7 and FF.
I have 2 JavaScripts on the frontpage of this site both doing 2 totally different things!
One is for the drop down menu and the other is for speech bubbles. I put the JavaScript for the speech bubbles in a seperate file and attatched it. Code:
I'm trying to get a pop-up box working, that's attatched to a link. Clicking on the link deletes a blog entry, so it's for the user to confirm they want to delete it. Obviously "OK" continues the deletion, and "Cancel" just closes the pop-up box and stays on the current page. So far I've got this:
<script type="text/javascript"> function show_confirm() {
I'm trying to do a redirect using the below code: <script type="text/javascript"> window.location.href = "http://google.com" </script> FF and IE work as they should. Chrome doesn't.
[Code]...
Same code pasted within a local html file works fine.
If a form as an input='file' element, and someone clicks on BROWSE and then changes their mind and clicks CANCEL, if JavaScript can detect that cancel?
What I'd like to add is add a line of code that will close the calling parent window (right now I make it visible by resizing it and clicking on a close link). I'll even settle for having to confirm the closure but, the ultimate would be that it would close by itself. Code:
I am doing something for someone, and they have a page with a bunch of divs of to the right. These divs are visible with a scroll bar, and accessed via an anchor link, so people without Javascript can still view the page properly.
What I need to, is use Javascript so that when they click a link in the menu, the correct div slides across from the right, and into the main div. The only part I need help on, is making it slide. jQuery has a custom effect thing, but once it slides in, it goes back again. I need to have it slide in when the link is pressed, after any current div slides back to the right first. how can I do this? is there a library I can use that will work?
how can i disable the main link on my navigation. i have manage to use onclick=javascript:return false; on the sub link but on the main link i'am lost.
this is my code for my navigation
Code: <ul class='menu' id='menu' name='menu'> <li><a href='createticket.php' target='body'>Create Ticket</a></li> //main link with sublink
In a form created with TinyMCE, I cannot find the main textarea in the source code. I tried Google Chrome's Inspect Element feature, and I got the attached results. It seems that an iframe was created with Javascript. However, there are no textareas in that iframe either.
The page is here: [URL]. However, a username/password is needed to view the page.
I've got a situation where I'm updating a MySQL DB with PHP but because of how the language works I need to do the following.
The "main page" will open a remote page where the user will add/edit/modify data then on the confirmation page, there needs to be a close button. However, before the window is closed, I want it to reload the "main window" so that they can see the changes they made. I've been digging through the google groups and JS sources on the net but I'm just not finding answers for a JS newb like myself.....
I'm trying to reload a frame from a pop-up, but really cannot figure this out.
Within my index.htm file, I make a link to call a pop-up frame with a javascript function that calls the following code from an external javascript source file, dynamically created with PHP...
I have one page with<input id="calendar" name="calendar" value="" /> <a href="open popup">...</a>The popup opens page with calendar days. Every day is<a href="javascript: setDate('2009-02-26')">26</a>What to insert in the setDate() function to return the selected date to "calendar" input field, wich is in the other (main window), not in the popup?
I have a script which works from my main page, but I need to embed it also into an iframed page, and have it affect the main page from there as well. In my main page, I have the following iframes: <iframe id="main"> <iframe id="player"> <control buttons embedded on main page, along with the iframes> The default source of "main" is page A, which is a frameset of pages B and C. In page B, I want to embed the same controls I have on the main page, and have them affect the main page from there.
Here's the controls script from the main page - it works from that page - a resizing onClick of the "player" iframe: <head> <script language="JavaScript"> function resizeIframe(iframeId, iframeHeight, iframeWidth) { if (iframeWidth>0) { document.getElementById(iframeId).style.width=iframeWidth; } if (iframeHeight>0) { document.getElementById(iframeId).style.height=iframeHeight; } } </script> </head> <body> <a id="widenButton" onclick="resizeIframe(player', 420, 720)return false;">Enlarge Player</a> </body> How would I put the widenButton in that back page and still have it affect the front page?
I want to check all checkboxes using one main checkbox. Then, the checkboxes will be disabled. But then, when the user unchecks the main checkbox, it must revert all the checkboxes to be enabled. How do I do so?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head>
Is it possible to detect the #nav_top ul li li click and manipulate the #nav_top ul li? For example when I click on <li><a href="#">About Us</a></li> I would like to detect also who is the li that this About Us belongs to, in this case this li belongs to <li><a href="#">Site</a>
I would like to create a mega drop down navigation in my next project but which includes a page content fade out on hover so the contents of the drop down nav are brought to the front and focused on. I've seen this technique here [URL] and was wondering how I would create this effect myself?
I'm looking for a Javascript workaround that'll allow me to indicate the current page on the main menu(basically, the menu button for that page will be a different colour to the rest of the menu buttons). The main menu is in CSS but isn't bringing up the required image for the "current menu item" indicator automatically and no one knows why.
I have a site with 2 frames. The navigation frame is on the right side and the larger main frame is on the left. The navigation frame is nothing but a bunch of thumbnails that scroll when the mouse hovers over “up/down�. The links are the thumbnails. I hope you get the picture… a user would click on a thumbnail and go to a site. The problem is that I want the thumbnail to link to a site and open it in the frame on the left (the main frame.) The only options I have (through Dreamweaver) is _blank, _parent, _self, _top.
The script I think that might need to change is below. Can anyone help me and figure out what needs to be changed? Code:
My project is for a scuba diving shop, and they would like to have a touchscreen in their shop. Users can use this touchscreen to browse through the various courses that the scuba diving shop offers. I have the home screen, and the several different pages for each course.
The Problem: Users will sometimes select a course they're interested in, and then leave the screen after using it. Leaving the page on the course and not on the main page for the next user.
I dreamt up a solution for this, however I'm yet to find out how I can go about implementing this.The Solution:Make a timer that appears after 5 mins of being idle and gives the user one more minute to move the mouse (or any activity) before it redirects back to the main screen.
Research:From my research I've come to the conclusion that something like this is possible, using Javascript and I've had a play around myself but to no avail. Here is the script I was trying:
I am very new at this - and have found code everywhere for pop ups and popunders, but I need both in the same place. So - I am on a main page with a link. If the user clicks the link they get a popup window (it is a specific url). When the user exits out of the popup, I want the popunder to go under the main window they were looking at (not the popup window)
If I am in my main window, I have an href link to click for the popup.html window. This works fine, and I tried to put the code into the popup.html to load the popunder upon exit. What a disaster. It loads on TOP of the main window because of course it is trying to popunder the popup.
Focus is never returned to the main window. Is there any one that has any ideas on how to do this? I have looked at it for days and cannot figure it out - but like I said, I am very, very new at javascript.
I'm having a problem rewriting a window with a popup I made. I'm using Debian Woody with Mozilla 1.0. I can make the popups, but I cannot rewrite the original window with the new information gathered from the popup. Can someone please make some suggestions. I've got most of my information from an old copy of the Rhino book.