Clicking Same Link To Already Open Popup Doesn't Bring It Back Into Focus

Jan 17, 2011

There are 3 graphics (top left of page) which open a linked page in a pop up window; each popup comes into focus the first time it's opened - clicking on the same graphics again doesn't bring the already opened popups back into focus.I had originally sized each popup as 320x430px in the body at each of the 3 references to the linked pages, but discovered that (in FF portable 3.65.13) the popups all opened full-size windows. In an attempt to resolve this I removed the size info from each of these 3 page references (lines 84, 89, 94) and moved it to the head (line 67) which seems to have resolved the size issue, but works only when I specify the popup to be any size except the original size of 320x430 (e.g. 320x431; I have now settled for 321x431)

View 5 Replies


ADVERTISEMENT

Get Focus To Always Be In Certain Position On Clicking Link?

Mar 16, 2009

Does anyone know how to set the code, so that if someone clicks send on a form, and there's an error, that the form then shows in the window, (always a few pixels down from the top of the window), please ?The form is a php include on many different positions on many pages so the offsetTop will be different depending on which page it's on.

View 12 Replies View Related

Image Popup In Centered Window On Clicking Link?

Aug 30, 2009

What I want to do is, when someone clicks a link the image pops up on screen in its own nice window smack down in the middle of the screen over top of the website. I want it to look neat tho, best example I can find is @ curse.com. [URL]. If you click that link and scroll down to the screen shot section and click on one of the images you can see how nice and professional it looks. How can I accomplish this?

View 1 Replies View Related

JQuery :: Ajax Updating SQL Then Load To Bring It Back

Sep 11, 2010

I setup a jquery ajax request to update my sql database... (add a product to shopping cart) then after it completes I want to use .load to re-load the shoppingcart (the cart is currently loaded with php include - so it is it's own seperate .php file). The problem is that when it reloads it doesn't have the "current version" If i refresh the page it's fine..

Example -
<script type="text/javascript">
$(function() {
$("#addtocart").click(function() {
$.ajax({
url: "addtocart.php",
data: **form data here**,
complete: function() { $("#cart").load("cart.php"); }
});
});
});
</script>
<div id="cart">
<? include("cart.php"); ?>
</div>
<button id="addtocart">Add to cart</button>
--

I have also tried to put a variable in front from the $.ajax and then use $("#cart").ajaxComplete(function() { $(this).load("cart.php"); } });
But yet still no luck. How to make ajax load a page after the mysql update has been done then display it?! I used to do this all the time before I started using jquery. When readyState was = 4 { load page code here } it would always work.

View 2 Replies View Related

AJAX's XMLHttpRequest Used To Bring Back PDF And Excel Docs?

May 14, 2006

Can I use the XMLHttpRequest object to call a url which would generate a PDF and then display it to the screen?

I'm new to AJAX and I'm very interested in using it to asychronously bring back documents with a content-type that IS NOT text/plain or text/html (like a PDF or Excel document) and then display that document to the screen. I have a web application that dynamically generates PDF and Excel documents. A user may have to wait a minute for the new doc to be created and displayed to the user. I want to put an animated notice saying the doc is being generated similar to what you see when you execute a search on a search engine. I've tried using animated gifs (with frames, etc.) but they don't work. As soon as a request is sent for the PDF, the browser halts the gif in IE. If I could instead call the URL that will produce the PDF asynchronously, then I could display the animated gif and call the PDF at the same time. Once the PDF is generated, I want it to then be displayed to the screen.

View 9 Replies View Related

Link That Using To Open The Popup Window?

Feb 17, 2006

Here is the link that I am using to open the popup window. It works great except when the $id variable contains a single quote. I have the single quote escaped with a . What am I doing wrong?

<A
HREF='JavaScriptpenPopWin("friend.php?id=<?php echo $id ?>", 550, 400, , 5, 5)'>Tell a Friend</a>

So if the $id variable is productname, it works fine. But if it's product'sname, it stops the link at the slash.

View 1 Replies View Related

Keep Form Always In Focus / When Clicking Link To Show Form?

Mar 25, 2009

The trouble is, is that some pages are very long and some are very short, so using offsetTop is obviously not bringing the form into full view ;-( Still keeping all the functions detailed in the code below, how would you adjust the code to achieve the aim of always showing the form, when clicking on the button to show the form, regardless of how long or short the page is please?

View 4 Replies View Related

Force A Link To Open A Popup Window?

Apr 6, 2011

I'm having issues with links on my intranet pages that navigate outside of my intranet to other intranets hosted in the same server farm. When I click the links they just do nothing. Links within my intranet site work fine. Is there any kind person here that is capable of pointing me in the direction of resources to force a popup using javascript and making it navigate to the desired link?

View 6 Replies View Related

Can't Bring Popup Window To Front

Oct 13, 2009

I popup a txt msg queue window - it sits in the background - it reloads the msg queue every minute - when a new one pops into the queue I want to bring window to the front but the following code doesn't do that. Am I doing this right?

function init()
{
document.forms[0].btn_close_window.focus();
}

View 1 Replies View Related

Back - Forward Browser Button For Iframe - Bring Back/forward Iframe Or Top Window?

Jan 24, 2011

I am wondering how Back, Forward browser button works for iframes. Does it bring back/forward iframe or top window? I remember I had before a problem because I wanted to bring back iframe and not top window as it did. But today I tested my Facebook app and was surprised to see it works as I need which means it brings back/forward iframe window and not top. Is it possible that Facebook has some javascript code which does that or is this normall behaviour?

View 4 Replies View Related

Collapsible Menu Code - Clicking On The Menu Item Will Bring Them To The Specific Page?

Mar 8, 2010

provide me with code to make a collapsible menu? What I'm looking for is a vertical menu, that will open up the sub-categories upon a mouseover. Clicking on the menu item will bring them to the specific page. Oh, and this might not matter, but I'd prefer if I was able to style the menu to fit with my site theme.

View 2 Replies View Related

Make A Link To A Pdf And Bring Up A Search Pane In The Certain Pdf

Jan 26, 2010

search = "#search=%22" + search + "%22";
globalHTML="<html><head><title>" + formTitle + "</title></head>"+"<frameset><frame src='" + pdfURL + search + "'></frame>"+"</frameset></html>";

This works just fine as my javascript to make a link to a pdf and bring up a search pane in the certain pdf. My question is if anyone has tried to highlight search terms in a pdf just by clicking on the link. I can't seem to get that to happen.

View 2 Replies View Related

Dynamically Open A Popup Window But Ie8 Blocks It With The Popup Blocker

Jan 22, 2010

I am trying to dynamically open a popup window but ie8 blocks it with the popup blocker. basically within a ajax fuction I have a confirm button and if the user clicks yes it opens a popup window. now I tried it with a javascript function but it got blocked, so I have tried it by creating a form with a button in it and instead of calling the popup function direct I call document.form.button.click and in the form my button has onclick"popup('<? echo url; ?>')" but this also is detected as a unwarranted popup and is blocked.

now I understand that the popup blocker works when a popup is called without user interaction, but allows popups on say button clicks. how can I get the popup to work

View 3 Replies View Related

Typing Cursor Back In First Text Box After Clicking Ok Of Alert

Jun 7, 2011

i need typing cursor back in first text box after clicking ok of alert

[CODE]
<html>
<head>
<script type='text/javascript'>
function player()
{
document.getElementById("Player2").value= document.getElementById("Player1").value;
[Code]...

View 2 Replies View Related

Destroy Session On Clicking Back Button Of Browser?

Jul 2, 2009

I want to destroy the session when user click on Back button or browser... is it part of Javascript or Php..?

i think its just a small Query..!

View 1 Replies View Related

Set Focus Back To Formfield?

Nov 10, 2009

if have this in a required text field:

Code:
onblur="javascript: return verify(SignUp.LName.value); return false;"
and this is the function:

[code].....

View 3 Replies View Related

Keeps Jumping Back To Focus?

Nov 23, 2009

I have a validation function and the this is the last thing it does.

[code = var mytext=document.getElementById("sizip")
if(check5(mytext,"Zip Code must be 5 digits.")==false)
{mytext.focus();return false;}
function check5(mytext,alerttxt){

[Code]....

It will validate ok, if I do not have 5 digits, I get an error box.

But then if I click the accept button again, it puts focus back on my zip code with no error.

View 1 Replies View Related

Jquery :: Link Focus Lost In FF 3.5.5 When Following Link And Hitting Backspace Key?

Nov 10, 2009

I'm using Firefox 3.5.5 on Vista 32 Home Premium SP2 and only recently noticed that (javascript/jquery being enabled) link focus is lost when you tab through a page, follow the link to another page and then hit the backspace key to come back. Tab navigation continues at top of page, not with the next link after the one in focus before.

No problems in this respect with IE8 and Opera. As soon as you disable javascript with noscript, the problem disappears and link focus stays, so that tabbing brings on the next link instead of starting on top of page again.

Just confirmed it on jquery/com (following navigation link to Plugins and hitting backspace) and on learningjquery/com (navigation links). A Google search didn't yield any answers nor even any similar reports on this particular problem.

It's even more irksome in my particular case, since I have just implemented a stylesheet switcher in order to enhance certain accessibility aspects, but ironically this particular bug leads to a loss of accessibility.

Does anybody know what might be the reason (version 1.3.2.min related?, cookies related?, etc.) for this and how to solve it?

View 7 Replies View Related

Focusing Back The Parent Top.focus() Does Not Work In IE

Feb 20, 2010

I have an Iframe in my webpage wher I have the focus. I now want to give the focus back to the parent document, so i've used top.focus() in my code. Works fine in almost every browser but not inIE7.

View 4 Replies View Related

Moving Focus Back To A Previous Window And Reloading?

Jan 28, 2011

I want users to work from a main application. Certain things will need to be done but the users wont want to see the main screen go away while doing these certain things. So my idea is to just open a new window with the content they need, they'll make their changes, the new window will close but then I want the main page to reload.What I've done now is at the end of the script that will be run prior to the new window closing is added this (its a php app):

echo "<script>window.close();</script>";
echo "<script>window.opener.location.reload(true);</script>";

Sometimes this works in IE and Firefox but never in Chrome. I know I've seen this done before on other sites, but I cant think of what they are.

View 2 Replies View Related

Jquery :: Link Color Only Changes On Focus Link?

Jan 22, 2010

i want the link only to change color when clicked and content changes in window "#gallery". Then when click on another link, it goes back to original color and new link is now changed. Basically, only when link is acitve or focused on then it's new color so user knows link and content that's being viewed.

View 2 Replies View Related

JQuery :: Make A Dropdown Menu Reappear After An Auto - Redirect And Clicking The Back Button?

Oct 25, 2011

Within my code below, when selecting 'Animals'in the dropdown menu a second dropdown menu appears.Selecting any item within this second dropdown menu causes a page redirect. When you click the back button in the browser, this second dropdown menu disappears in every browser besides Firefox. I want the user to be able to change their animal selection, e.g. choose 'Cat' first, then go back and choose 'Bird'.

I don't understand why the second dropdown menu disappears, going 'back' should display the page as it was. Is there any way to get the second dropdown menu to reappear without using a jQuery history plugin? This code does not behave as I have described in jsfiddle, so have pasted it here:

<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
$(document).ready(function() {

[code]....

View 10 Replies View Related

JQuery :: Pause An Interval While The Tab Is In The Background - And Unpause It Once The Focus Comes Back?

Sep 23, 2011

How to pause an interval while the tab is in the background, and unpause it once the focus comes back?

I made a jsfiddle:[url]

1.) notice how the numbers are counting up.

2.) remember the current number and navigate away from the page.

3.) wait 10 sec and return to the page....the numbers keep going up while you'r not on the page.

How can i make it only go up while on the page?

View 2 Replies View Related

JQuery :: Autocomplete Click Send Focus Back To Input?

Oct 1, 2009

are there any callbacks for me to hook into in order to send the "focus ();" back to my input box when someone selects or clicks and autocomplete item?

View 1 Replies View Related

JQuery :: Step Carousel (Removing Fast Forward/Rewind Effect When Clicking Back On The First/Last Slide)?

Aug 10, 2011

i'm New to JQuery and I recently had a problem with encorporating a transition at the beginning and end of my carousel. I found that by default it would Fast Forward/Fast Rewind through all the images at the ends, rather than just jump to the slide and wrap.

I've managed to solve the issue (bar a transition effect from the last slide back to the first) it now jumps to slide one, rather than rewinding through all the images. However (and i know this sounds silly) but i'm having trouble doing the reverse. I'll add both the zip file to show a working model if interested and also post the 2 relevant functions :)

[Code]...

View 12 Replies View Related

Keyboard Focus Outline - Browser Back Button - Onmouseup And Blur

May 17, 2011

This is a really basic question: what does blur mean, or what does it do when used in links as described below? I've tested it on Firefox 3.6 and Opera 11 and it behaves as I hope except for one thing. During testing if I use both keyboard and mouse to navigate within the same session, the browser history for the 'other' method is wiped out; it won't go backwards beyond the most recently used method. Is this not a surprise when you know what blur really means? I want the following (assuming Javascript is enabled):

a) Keyboard users to see a focus outline on navigation links.
b) Keyboard users to see the outline still there if they use the browser Back button, and continue tabbing from that link onwards.
c) Mouse users to NOT see an outline if they use the browser Back button.

[Code]....

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved