Scriptaculous And Child Windows
Jun 5, 2007
I wrote an application, it runs locally on my laptop, nothing to do with the Internet or client/server stuff. Using Firefox 2.0
I open my main 'GUI.html' file. That in turn opens a local file
called 'DSK.html'. (GUI is the control panel, and DSK is the visual
window) Code:
View 3 Replies
ADVERTISEMENT
Jul 23, 2005
I have a parent window that pushes a new window object onto an Array
with the following code :
OpenChild()
{
//totalNumWindowsCreated is global
totalNumWindowsCreated = totalNumWindowsCreated + 1;
childWnds.push(window.open(link, "child" +
totalNumWindowsCreated,"dependent"));
..
..
..
}
This pops up a new window with every call. In the child window I call
a parent function onbeforeunload, appClose() :
function appClose(){
if (window.opener && !window.opener.closed){
window.opener.CloseChild(getQueryString("application"));
}}
This is in my frameset tag of the child code :
<frameset ... onbeforeUnload='appClose()'>
The window.opener.CloseChild() function is called perfectly when I have
one child window open, but as soon as I create another child window
both of the open child windows don't ever call it. They do both go
into the onbeforeunload appClose() function, but do not call the
window.opener.CloseChild() function inside of this routine.
Anyone have any ideas why when I have two child windows open I can't
access the window.opener functions?
I have tried taking each new window out of the array and used the
following code in CloseChild() :
CloseChild()
{
//win and totalNumWindowsCreated are both global
totalNumWindowsCreated = totalNumWindowsCreated + 1;
var win = window.open(link, "child" +
totalNumWindowsCreated,"dependent");
..
..
..
}
View 1 Replies
View Related
Jul 23, 2005
On load of index page i am opening few child windows for some purpose now i want if i close the parent window all child should be cloed automatically.
View 1 Replies
View Related
Apr 4, 2006
I know that var win = window.open('page.html'); will open a new window and give me a reference to that window. I understand that completely. Let's say that I have a child window created but I don't have a variable representing that window? Is there a way to return a collection of the child nodes of a window? Sort of like the way frames[] work?
View 6 Replies
View Related
Aug 12, 2004
I'm currently working on a site that consists of several Iframes. I need to create a page that will load this site with a specific page in the main Iframe as opposed to the normal index page. So far I've simply created a dummy page that opens up the site in a new window and attempts to change the location of the main content Iframe using this piece of js:
Code:
function init()
{
var site = window.open('index.htm', '', '');
site.document.content.location = 'news_caster.htm'
this.close();
View 8 Replies
View Related
Jul 23, 2005
Is-it possible to modify a window from an another window without having a
link Parent To Child?
View 2 Replies
View Related
Apr 28, 2010
I have a form that submits parameters to Stripes action. The action builds a URL, fetches a PDF from that URL and returns the PDF to the browser. Stripes has a neat StreamResolution object that takes the URLConnection and MIME type and returns the object which I can simply return to the browser.I also have a requirement that the document should be opened in a new window.Unfortunately, sometimes PDF generation takes a while, so I'm required to pop up a "Please wait..." window that has to be taken down once the PDF loads.I cannot use the target="_blank" on the form, since it prevents me from hooking the javascript I need, so I use javascript to submit the form [URL]:
<form action="/..." onsubmit="viewReport('/.../foo.action?eventName=view+p=x')" ">
...
</form>
Here is the javascript that gets called
Quote:
var report;
var spinner;
function viewReport(url, report) {
[code]....
The PDF is getting fetched and displayed and the popup is taken down, but the PDF content is displayed in the original window, while the new window contains the calling page.
View 2 Replies
View Related
Nov 30, 2010
I have home page with session close button and 10 child window link and i am opening all child window.All child windows should close after clicking on session close button. Code bellow
<html>
<script type="text/javascript">
openWins = [];
curWin = 0;
[Code]....
View 2 Replies
View Related
May 24, 2006
hen a button in parent window is clicked multiple times, more than one child window is opened. This problem is occurring in linux. In windows the code is working fine. Is there any option in window.open() method to open a child window once.
View 8 Replies
View Related
Mar 30, 2010
I want to show a few products, (3 columns x 2 rows), when user clicks some links (LINK 1, LINK 2, LINK 3), these productos change for another six.
To show new products, Im using scriptaculous opacity effect. Everything works correctly on firefox and chrome, but on IE it shows 1 column x 6 rows.
You can see it here:[url]
View 10 Replies
View Related
Dec 26, 2007
The goal is to make the "label" appear when the main div is clicked.
HTML4 Strict Code:
<div class="photo" onclick="showlabel(this);">
<img src="names_02.jpg" alt="image" width="561" height="52" />
<div class="label"><img src="names_01.jpg" alt="image" width="590" height="52" /></div>
</div>
JavaScript Code:
function showlabel(div) {
var label = div.childNodes;
new Effect.BlindRight(label[1]);
}
This will affect the first <img>, but I want the <div> surrounding the second <img> to get the effect.
View 3 Replies
View Related
Jun 30, 2010
i was looking for scriptaculous websites templates,you know, websites with scriptaculous effects.
View 1 Replies
View Related
Feb 9, 2011
<div class="userbox posts" id="pst146996">
<div class="imgholder">
<img alt="Chris Hardin" src="http://codebix.com/bp/1633.png">
<div style="margin-left: 20px;" class="commentbox">
[code]....
i want already select .postlike in $(this) now i want to select the tagh1 who is in .commentboxelements.i want to change the h1's inside text 1 to 2 so i write the code
$(this).closest('.posts').children('.commentboxelements center h1').html('1');
i try this but it's not worked anyway how i can do this.
View 1 Replies
View Related
Nov 23, 2009
I use scriptaculous to retrieve the hotel names and area names from database in this page. My question is where it says step 3, Search for hotel, chain or location!. Type in syd for example and you see how it retrieves the values from database and shows them underneath. It works fine and the list is generated beautifully. Now I have to add the next step which is filling this text box (from step 3 where you typed syd in) with the value (of the item clicked on). For example once you typed sydney, if you click on Sydney, I want the text field to be filled with value sydney.
View 4 Replies
View Related
Nov 26, 2009
I have a series of functions I need to run in order.The functions use a lot of scriptaculous effects and I need to que up the functions so that they only run when the previous one, with all of its functions, have finished running. Cause of the nature of what I'm trying to do, I can't use the queue that comes with scriptaculous.
I tried this http:[url]....how-do-i-store-javascript-functions-in-a-queue-for-them-to-be-executed-eventually, and the functions are still starting before all the effects finish.
View 4 Replies
View Related
Oct 4, 2010
I'm trying to toggle the slide effect using scriptaculous, but the toggle slide isn't working at all.
Here is my code:
Code:
<script language="javascript" src="prototype.js"></script>
<script language="javascript" src="scriptaculous.js"></script>
<a href="#" onclick="Effect.toggle('toggle_slide1', 'slide'); return false;"><span class="header"> Master Station </span></a></div>
[Code]....
View 3 Replies
View Related
Sep 7, 2006
Is it possible to pause the script in a way, until a scriptaculous effect complets? At the moment, the effects are half way through scrolling/fading, while the script continues.
View 1 Replies
View Related
Oct 21, 2011
i want this animation to start from the beginning but i dont know how to do it.im using scriptaculous framework. here is my animation:[URL].. and here is my code:
<script type="text/javascript" language="javascript">
//fade div 1
new Effect.Fade('anim1', {duration: 1, from: 0, to: 1,
afterFinish: function (one){ //after finnish 1
//after fade 1 effects
[Code]...
View 2 Replies
View Related
Feb 15, 2012
I am looking to recreate a form function like this website: [URL] What happens when you click the answer to the question the form scrolls to the next function. I would love to know how this is done. I am not a javascript developer but having looked into this the form uses scriptaculous.js and prototype.js. Is there an online form builder or a program out there that can re-create this or is it just a simple bit of javascript added onto a form?
View 1 Replies
View Related
Mar 3, 2010
I was wondering if it is possible to trigger this effect with a class name rather than an ID? In looking at the wiki I do not see a way to do so.
I have tried this:
View 2 Replies
View Related
Jan 27, 2010
My problem is I am making a side menu and I want it to behave like jQuery Accordion...I am not using Accordion because I want to have a "Double Accordion" a nested one if you want...
Also I'm a lot more at ease with Scriptaculous...I get how to Blind down (or Slide down) the problem is I want to create a function that will detect whether a div is down already or not...
So my question is how do I retrieve values to tell me if it's down or if it's up...
Here's my code so far:
Code:
View 2 Replies
View Related
Jan 5, 2012
so i wrote this slider with some help from an admin, everything works as I would like it to but I'm trying to make it a plugin so i need to tighten up a certain part of the code:
(function( $ ){
$.fn.jmSlider = function() {
// get total width of all li elements in the slider
var wrapWidth = 0;
[code]....
what i would like to do is instead of using "li:first" and "li:last", i would like to use first-child and last-child so the element doesn't need to be a li, in can be anything that is the direct child of the parent container.
View 2 Replies
View Related
Oct 28, 2010
I have created parent child checkboxes. When one child is selected, then parent of that child, other child of same name and parent of that same name's child will be selected... Now I want if I unchecked any child, then only same name of child and parents should be unchecked or if I unchecked Parent Child, then same name of parent and child will be unchecked.
[Code]...
View 1 Replies
View Related
Apr 6, 2010
below is clickunder code , but it open under windows when visitor click everywhere on the pagei need it be speacial for links , whenever visitor click on speacial link , it opens windows
<SCRIPT LANGUAGE="Javascript">
function PopShow3() {
CookieTest=navigator.cookieEnabled; if(CookieTest)
[code]....
View 5 Replies
View Related
Apr 27, 2011
I was wondering if there is a technique in jQuery or Scriptaculous to create an effect similar to the one here Check out how the image scrolls in and out. This is currently in Flash, but I'd like to do something similar with a JavaScript library.
View 3 Replies
View Related
Aug 1, 2007
What is the event handler for the Ajax.Autocompleter?
Is it onKeyUp or onChange?
I'd like to display the results using a button for example.
View 2 Replies
View Related