Progress Bar Keeps Running When Replacing A Frame

Jul 20, 2005

I've the following problem. I have a webpage with some frames on it.
In one frame i have two buttons "reports" and "Analyis". When Someone
pushes reports, a frame must be replaced next to the menu. When the
first time a button is pushed, the frame next to the buttons is
replaced but the progress bar in explorer keeps on going...keh?.. The
second time i push the button the frame is loaded but no progress bar
(??).. The third time again a progress bar.. the fourth time not..so
it seems that it's happening every oneven action.

I've IE 6. I looked in the KB of microsoft and find something about it
but only for IE 5.5 (should be solved by now).

So this is the code:

if (grp=="Reports"){
//window.open("displayReport.csp?type=2")
top.listframe.location.replace("displayReport.csp?type=2");
}
else if (grp=="Dashboards") {
top.listframe.location.replace("displayReport.csp?type=275");
}

I've commented window.open("displayReport.csp?type=2"). When i
uncomment this no progress bar is shown so my conclusion so far is
that it has something to do with replacement of the frame.

View 1 Replies


ADVERTISEMENT

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

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

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

Need A Progress Bar

Dec 2, 2010

Can someone tell me where I can find a readymade (copy and paste) code/script for a progress bar.

Something real simple please if you know of one. I have googled it but most of what I have found is gobbledegook to me.

View 4 Replies View Related

Loading Progress Bar

Dec 11, 2006

how is it possible to do a loading progress bar,the msot simple way, i read taht you can make this in a very simple way using the image class(with the image array) or also using the image array so all your pics would load when the site starts but i think the first solution is easier(loading bar), i have a very simple site that uses html and css and if any of you knew about this simple java script loading bar?

View 5 Replies View Related

Progress Bar With Message

Sep 26, 2004

I wanna show a progress bar with message when my php script is working in background to the user who has submitted the form.

my output is inside a table, and it would show the progress bar with message till the complete table is loaded.

How can I do this?

View 2 Replies View Related

Search Progress Bar

Dec 12, 2003

I have an ASP page on my intranet that searches a large database. After you click search it takes a while for the results to display so you just get a blank page and it looks like nothing is happening.

What I want to do is, using javascript, display something that makes it obvious that it is actually doing something. This could be either a progress bar or an animated image that dispappears once the page is loaded.

Does anyone know where I can find a script that will do this?

View 1 Replies View Related

Progress Meter??

Jun 16, 2007

I am trying to show wait image while your form is submitting.Like in lightbox.js till the image pop up it shows the progress bar and then show the zoomed image similarly i want to show the wait flash button(it moves round and round in) until my form is submitted.

View 1 Replies View Related

How To Express Progress Of Longer Run Of JS?

Jul 23, 2005

I check data validity in html form by JS. Something like

for (i=0; i<document.form[0].elements.length; i++) {
chechkValidity(i);
}

Unfortunately, the form[0] has about two thousands elements (it is
statistical questioning form for companies) and execution of this one
cycle takes about twenty seconds.

The problem is, that during these 20 seconds the browser "freezes":
The button activating the cycle disappears and the mouse pointer
doesn't change into "watch" (sandglass) showing that something is
being carried out.

Although after the 20s everything is ok, it is not the nicest behavior
of the form. I don't assume somebody is so impatient to restart during
those 20 seconds. I just want to minimize the users' swearing on my
address and tha's why my question:

How to show the progress of that cursed for-cycle?

View 13 Replies View Related

Need To Build A 'Progress Bar' With Javascript

Jul 23, 2005

I've got the following problem: i need to build a "progress bar" with
JavaScript. So far i have the following configuration: i've got a DIV
inside of a DIV. Each DIV has a style attribute that defines its width and
other style information.

I need to calculate the size of the incremental block based on various
factor like Width of the outside DIV, incremental interval and number of
increments. My original solution was to assume that all of the units are in
'px' so i could just deal with integers. However now i hit a brick wall,
when i realised that this is anything but scalable.

So what i need to do now is to obtain a width of the DIV from its style
attribute (had it hard coded before), do the calculation, and then use the
result to increment the size of the inner DIV (width element in the style
attribute)...

View 1 Replies View Related

JQuery :: Loading Progress Bar

Jul 3, 2010

I am facing an issue while implementing a jquery loading progress bar in my asp.net application. It is working absoultely fine in Mozilla Firefox but not in IE. Issue is that progress bar display in both browsers but in IE progress bar image not move like it is moving in Firefox. I also saw the same behaviour on one of the sample (URL...) uploaded at code project site.

View 1 Replies View Related

JQuery :: Progress Bar Does Not Start?

Feb 15, 2011

I created a progress bar with timer, every second = 1% in the progress bar. The problem is that the progress bar does not start.

This is the code I use:

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

[Code].....

View 6 Replies View Related

JQuery :: Progress Bar In Jqgrid ?

Apr 16, 2011

Whether i am able to show a progress bar in jqgrid (the values are whatever).

View 1 Replies View Related

JQuery :: Progress Bar With (onClick)

Nov 30, 2011

I am using progress bar in my Visual Force page in Salesforce.com. I am sending the value 60 to progress bar and it displays the progress bar perfectly. I have a requirement here. When user clicks on shaded region he should get the value in the alert. When User clicks on grey region, user should get the alert of remaining %. I am successful in creating onClick on the progress bar. But I need two alerts for the same progress bar.

View 5 Replies View Related

Ajax :: Php Upload Progress Bar

Apr 16, 2011

I used this page for making upload progress bar. I downloaded it and uploaded it to the server (you can see it here), and I signed up to Google Maps API and I pasted the code, but it doesn't work. It uploads the file, but it doesn't write the upload progress

View 3 Replies View Related

Progress Bar For Tracking Purposes?

Mar 10, 2011

I'm trying to walk a person through the registration process on my site. This is a total of 4 or 5 steps. I'm thinking about using the jQuery progress bar to go from like 25% when the user starts, 50% after the second page etc.

I'd like to do the calucation on what page they are on and then move the progress bar to show the progress. How can I alter the jQuery code to acheive this type of result? Also, is there anyway to animate the move from like 25 to 50%?

View 1 Replies View Related

Change The Value Of Progress Bar Interactively?

Sep 4, 2011

Let say I have these fields below

with a progress bar.

When the "fname" field is filled up with some value the progress bar value is increase by 5%

And the same with the "lname" input field.

View 1 Replies View Related







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