Jumping To Mother Frame....

Nov 21, 2001

Yeah I know another frames question why don't you use tables but hey.. They wanted it this way..

Any how.. I want a javascript that just checks if the "mother" page is set.. so for instance if I were to call page.php directly that it would check if the complete page is loaded and if not that it would load the complete site (index.php) and the pass the variable pagename for instance in the url thats fine but just that it would refresh the window also loading the nav. frame

View 2 Replies


ADVERTISEMENT

Jumping In A Frame Not Working Inside A Table

Jul 23, 2005

I have a script that allows me to highlight a row of text.

This text is in a table.

The table is long and scrolls down the page below the visiable canvas.

What I need is a method to jump to the highlighted row.

I am able to jump to my anchor as long as the anchor isn't located
within the table (ie I can jump to the bottom of the table if I put the
anchor just below the table). However as soon as I place it within the
table...no luck.

Here is the code I am using to jump;
eval ("document.location='#row" + n + "'");

Can someone explain how I can reference the table in my jump method?

View 3 Replies View Related

JQuery :: Change Class Of The Mother Tr Element

Jul 5, 2011

The competition is that there is a table width a heckbox inside and if the ckeckbox is checked the tr of this checkbox should get class "sel" and remove this class if it get unchecked. So the problem with the actual code is that everytime a new checkbox got checked the <tr> of the checkbox which was checked before losts the class "sel" and just the last checked checkbox will get it. Do you have an idea how the could must look like to get it work?

Html like this:

<table>
<tr><td><input type=”checkbox” class=”cbU”></td></tr>
<tr><td><input type=”checkbox” class=”cbU”></td></tr>
<tr><td><input type=”checkbox” class=”cbU”></td></tr>
<tr><td><input type=”checkbox” class=”cbU”></td></tr>

[Code]....

Even if the else will be deleted the problem is stil there so the failure must be in my code.

View 1 Replies View Related

JQuery :: Passing Session Values To The Mother Page?

May 3, 2011

I have a question here, I have a mother page of 2 divs, one for the category list of foods on the left and the right div is a placeholder for the selected food of the category,

Then i have a modal box, which loads the list of foods associated to the category when clicked,

What i wanted to do is, when i select a food from the modal box and click submit, I wanted to populate the selected food into the right div of the mother page, so far the farthest i went is loading the list of food into the modal window,

its like a shopping cart, but instead of redirecting your users to another page, you display all their orders on the same page... can this be achieve, im using jquery+php sessions

View 3 Replies View Related

JQuery :: Use A Parent-frame - Objected To Make Child-frame AJAX?

Aug 26, 2011

I have a domain: example.com; which is the parent.And a subdomain: api.example.com; which page 'receiver.html' is being loaded in an iframe, child of parent. Both pages set document.domain = example.com.

I'm trying to adapt this code:[url] but Idon't want to load jQuery from the <iframe> again but I need to have the method $.ajax() working from the <iframe> otherwise it would be a cross-domain request and the browser would abort it. I tried ingenuously to set via $('iframe')[0].contentWindow.$.ajax = $.ajax() and I just got a shortcut to the parent page jQuery method. I also tried to "clone" it using $.expand (true...) but the method doesn't work for me; probably because of the complexity of the objected I'm trying to clone. So is there a way for me to use jQuery to have only a $.ajax() method in the <iframe> ? I've thought even about creating a XHR in the child-iframe and then use that in the $.ajaxSetup ({xhr: THATNEWXHR}) but I couldn't do it. I mean, I want to use the XHR factory from jQuery (which has fallbacks for IE, etc) but it has to be created from the iframe-child.

Maybe there is other way to make the AJAX call come from the child-iframe.

If you're wondering "why don't you load jQuery from <script> in the child-iframe", there is a reason... As I'm using jQuery plugins + my own custom javascripts + other independent scripts I created a compiler which minifies each file and bundle them in one. The advantage of this is the reduction of HTTP requests. So "why don't you load that bundle inside the child-iframe?", because it's ugly and Twitter doesn't... Yeah, I like to take Twitter as a reference and I think if they were able to make it so can I;

I got to work in most browsers except IE and Operaby doing it with pure javascript.

I'm "attaching" the code for you guys to test. If you open it with Chrome, Safari or Firefox you will receive 2 alerts one with the return of $.get() and another with the return of a request made via XMLHttpsRequest object. Otherwise (if you open it with IE or Opera) you'll get 'undefined' in the first alert but the real return in the second.

This is the example.com/index.htm:

View 4 Replies View Related

Go Back History Button On Top Frame That Affects Main Frame?

Oct 15, 2001

Im trying to make a back button that reloads the previous page the user was at.
The back button will be on a small top frame and the page that needs to be controlled will be in the main frame.

The top frame is just a navigation system, and all pages will be loaded in the main frame.
Im trying to use this Code:

<FORM>
<INPUT TYPE="button"
NAME="back"
VALUE="BACK"
onClick="history.go(-1)">
</FORM>

Does anyone know how I could accoplish the desired result using this code, or any other code? And what about a foreward button?

View 2 Replies View Related

Click On 1 Of The 3 Frame Options The Frame Changes Showing A Preview?

Jul 20, 2010

I want to have a main image in place and when you click on 1 of the 3 frame options the frame changes showing a preview. Also I would like the add to cart button change its code to add the correct item as well.

View 2 Replies View Related

Is-it Possible To Write In A Mother Window From A Child Window ?

Jul 23, 2005

Is-it possible to write in a mother window from a child window?

Like this:

Parent.document.write(............................ ................)

View 2 Replies View Related

PASSING Data From One Frame To Another Frame In A Frameset

Aug 30, 2010

i need to pass the data in the textfields from the left frame to the textfields in the right frame of my frameset. (ex: dslnum of frame1 will be pass to txtDSLTN of frame2)[URL]

View 19 Replies View Related

Change Frame Url With Clicking Link In Another Frame

May 22, 2011

I have two frames (frameset, let's call it frame1 and frame2). Frame1 has links..., and frame2. When some link in frame1 is clicked, it must be changed content of the frame2. Here's example: click. How to do that? (I don't see any javascript code)

View 2 Replies View Related

Breaking Out Of Parent Frame If Child Frame Changes URL

Jul 19, 2006

I have a parent document that has a frameset with two frames in it. The first frame is a "header" that runs across the top of the site, and never changes. The second frame contains the "content" of the site. Essentially, I am trying to figure out how to prevent the header appearing above external sites when the user clicks an external link in the "content" frame.

Every time the content frame changes to a new URL, I would like the check that URL and determine if the content frame is changing to an external URL (i.e. different domain in URL) or to an internal link (same domain in URL). If the content is changing to an external link, I want to break out of the frame and just load that external link in the top most document.

I would like all of my javascript to be in the parent document, not spread throughout the individual pages of the site. I was trying to approach this by setting the onunload event handler of the content frame, but I am left with a couple of specific questions:
1. In handling an unload event, can you determine the next URL that the document is loading? Code:

View 6 Replies View Related

Open The Frame Inside The Main Frame

Jan 10, 2011

I have a little problem, I structure my site with a main page index.html with a frame in the central whit name CENTRALE, so every other page I will open within this frame. Now I need to have a direct link to these internal pages, give an example I wish it were possible to go to the page clothing giving a direct link to that section of the site type www.indirizzo.com / clothing.html because the state of things if I take the 'direct address to that page I open only the part inside of the frame, but I wish I would open inside the "main frame, there is a solution in javascrip to overcome this problem?

View 4 Replies View Related

Jumping To Next Select Box

Jul 23, 2005

I have a series of selectboxes on a web form. I would like to have a
javascript jump the focus to the next selectbox when the user presses a key.
Each box has the values 1 through 6-9, depending. So normally someone who is
used to it can just hit 1 <tab> 3<tab> 5<tab>1<tab>9<tab> -- I'd like to
take the tabbing out.

So what's really nice is if the box doesn't jump when the user doesn't
select a proper value.

I've been looking at java scripts and I'm not sure how to reference the next
selectbox, or how to check that the key pressed was in the proper range. Can
someone help me out? Code:

View 6 Replies View Related

Jumping Between Windows

Oct 20, 2001

I've been working on a small e-commerce site with the Access DB and ASP. I have one variable to get from a form that I open in a separate window and bring back to the current form in the current window. I would like to keep the sections all in this current form and not break it into separate forms. Can anybody tell me how to bring data back to the open form?

View 10 Replies View Related

How: Javascript Jumping To #s

Nov 6, 2001

I have a page that is automatically refreshing and I need for it to jump to the end of the file when it refreshes. Just refreshing the URL with a # on it doesn't work (ASP error). What line of javascript could be used to jump to a # in the page without reloading the page?

View 5 Replies View Related

Prevent The Div From Jumping?

Dec 24, 2010

So, I have a set of divs in a sentece, and within one div is a link. When the link is clicked, I have all the other divs fade out, and the link is supposed to move to the left, then up. I can accomplish this easily, however, I've noticed that there's a pause between when all the divs fade out, and then the moving of the link. During that pause, it jumps to the leftmost edge of the div that it is contained in.Is there a way to prevent the div from jumping? The following is the code that I have. (I've supplied the html and javascript)I tried using callbacks to prevent the div from jumping, but that didn't really work...

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>[code]......

View 1 Replies View Related

Print Contents Of One Frame From Another Frame?

Sep 8, 2010

I have a frameset with two frames; topFrame and mainFrame. I have code in topFrame and wish to print the contents of mainFrame. The code that I have used has worked for many years and still works on my localhost Apache Server. However, it has now "stopped" working. When I press the button in topFrame it prints the contents of topFrame The code that I am using is

Code:
window.parent.mainFrame.focus()
window.print

I have tried to replace the first line with..

[Code]...

View 1 Replies View Related

Send Variables From Frame To Frame?

May 13, 2009

I use dreamweaver mx html editor to make web sites. I think I know enough Html to get by. My new site uses a frame set so the head and controller don't change reload or move. This works nice, now all I have to do to make a new page is make the content page. But my problem is if I send out a link for someone to look at, it only loads the content page and not the frame set. I thought I could use javascript to determine if the frame set is present and if not load it. But I can't seem to find a way to sent variables from one frame to another. Also if a user clicks a link I would like my flash controller to reflect it.

[Code]...

View 1 Replies View Related

Refreshing Bottom Frame From Top Frame

Aug 9, 2004

I need to know how to refresh a bottom frame TO a specific dynamic URL from my top frame (meaning the code has to be in the top frame) say every 5 seconds. The top frame will be a php file as I need DB values. But I believe the frame thing is done via javascript. This ain't working so far, it only loads the first URL at not the rest. Is there the ability to refresh to a specific url in a target frame. Code:

View 5 Replies View Related

Frame.contentWindow Vs Frame.contentDocument?

Feb 19, 2009

One more question about manipulating iframes. In a script I've looked through to investigate AJAX file uploads, there is this technique for accessing the contents of an iframe:

Code:
if(frame.contentWindow)
{
var thebody = frame.contentWindow.document.body;
}else if(frame.contentDocument)
{
var thebody = frame.contentDocument.document.body;
}

I haven't been able to find much info on contentWindow and contentDocument. In fact, other sources I've found talk only about using contentWindow to access an iframe's contents, ignoring contentDocument completely. What is the difference between the two, and what browsers is the contentDocument check targeting? Any modern browsers, or is this a backward compatibility thing?

View 8 Replies View Related

Stop From Jumping To Top Of Page?

Sep 11, 2007

Is there anyway to stop the page 'jumping to the top' when using a link like the below?

<a href="#"

.. I just want it to stay in the same position on the page & not jump to the top of the page every time a link like that is clicked.

View 18 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

Sliding Menu Is Jumping?

Apr 29, 2010

I have used a basic jquery script to get the menu on my site to slide down and up.

When you click on the show/hide menu button, there is a little flash (Not a major issue) but when you close the slider, the page jumps up a little.

It looks a little glitchy?

[URL]

This is the code I am using

Code JavaScript:
$(document).ready(function(){
$(".flip").click(function(){
$(".panel").slideToggle("slow");

[Code]....

View 1 Replies View Related

Tab Jumping To Address Bar, Not Next Field After Select() [IE]

Jul 23, 2005

I am using select()/focus() to position the cursor at a particular field
on a form. This works, but when the user presses the Tab key in IE the
cursor jumps to the address bar rather than the next field (Firefox is
fine). Does anyone know why this might be happening and how to stop it?

Below is the code that I use to set the cursor position (it is somewhat
convoluted because it is generated via a series of macros). The cursor
is positioned correctly, but when I hit Tab the cursor does not follow
the expected flow through the page (i.e. it doesn't go to the next field).

// The page contains:
<script language="JavaScript1.2" type="text/javascript">
<!--
var focusId = 'fnameId'
SafeAddOnload(setFocus);
//-->
</script>
<input id="fnameId" type="text" size="50" name="fname" value="" />

// From a .js file loaded by the page:
// SafeAddOnload (used above) just delays execution until the
// page has loaded.
// getRef (used below) simply retrieves the DOM object using the id.
//
function setFocus()
{
obj = getRef(focusId);
if (obj != null)
try
{
obj.select();
}
catch (e)
{
obj.focus();
}
}

View 2 Replies View Related

JQuery :: How To Prevent Page Jumping

Nov 8, 2010

have simple slideshow here:n i v o sport.com/i n l i f e/category/2 (please remove white spaces)on the right you will see "More in Travel:" and then arrowsscroll page a bit down and click arrow you will see that page scrolling jumps up. how to keep window positio

View 8 Replies View Related

JQuery :: Stop Page From Jumping To The Top?

Mar 29, 2011

i've made a menu for my website and i've used to jQuery to create a sub menu on the 'about' section.

the problem is when you click the button, the page jumps to the top.. which i don't want it to do. is there a way round this?

here's the javascript i'm using:

$(document).ready(function () {
$('li.aboutb').click(function () {
$('ul#aboutsub').slideToggle('medium');
});
});

here's a link to the page in question: click me

View 3 Replies View Related







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