How to use <meta http-equiv="refresh" for my ca

This is a discussion on "How to use <meta http-equiv="refresh" for my ca" within the PHP Forum section. This forum, and the thread "How to use <meta http-equiv="refresh" for my ca are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices




Closed Thread
 
LinkBack Thread Tools
  #1  
Old Mar 11th, 2005, 13:04
New Member
Join Date: Mar 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
How to use <meta http-equiv="refresh" for my ca

I have a jsp page which shows a progress page for generation of some report . There is a
<meta http-equiv="refresh" content="0";URL="myURL"> tag in it.
I am using a gif image(equivalent to a progress bar) to show that the report is being generated. But the problem is that till the time it is not redirected to the URl given above, the image is not moving in IE 6.0. I need to know if there is any other use of meta tag possible or some other technique with a sample code will also be appreciated.
I just want the progress to be shown somehow through a moving figure on the generation page.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!

  #2  
Old Mar 17th, 2005, 19:18
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,184
Blog Entries: 7
Thanks: 27
Thanked 22 Times in 19 Posts
Hi Vishal....

I am a little confused as to what it is you ae trying to achieve here.

Could you give us more info so we can try and help you?
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #3  
Old Mar 18th, 2005, 03:48
New Member
Join Date: Mar 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
I am trying to create a report generation tool.

I have a JSP page which is popped up after clicking the “generate report” button in another JSP page.

It takes some time for the report to be generated and to be displayed in the same popped up window.

Meanwhile, the report is getting generated, I am displaying a moving image(animated image which can considered equivalent to a progress bar) in the JSP page I referred to above(the popped up window).
I am using the <meta http-equiv=”Refresh” content=”0;"the URL for report generation(in my case an action class)" > tag inside this wait JSP page and the <img> tag for the moving image. But the image in this JSP doesn’t move in IE , it does in Mozilla.

Please help me in this, with some sample code asap. If an alternate approach is possible using only JSP’s, please help me with the same.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #4  
Old Mar 18th, 2005, 09:13
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,184
Blog Entries: 7
Thanks: 27
Thanked 22 Times in 19 Posts
Do you have a url?

I suspect this is just your machine... as sometimes my IE fails to animate images... but my other box does.
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #5  
Old Mar 18th, 2005, 09:27
New Member
Join Date: Mar 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
I tried it on other box too. I want to know some other way of achieving the same effect, be it some other technique involving JSP's or HTML tags.
Please help me with some source code if possible . I am stuck at this point. I just want some moving image while the report loads.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #6  
Old Mar 18th, 2005, 09:36
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,184
Blog Entries: 7
Thanks: 27
Thanked 22 Times in 19 Posts
You could use a flash animation.

This would work in all browsers.
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #7  
Old Mar 18th, 2005, 10:28
New Member
Join Date: Mar 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
I have tried using the flash animations also but as i told earlier they are not always moving, but they work just fine in Mozilla. Isn't there any other solution possible for this problem. Please have a look at the code i am using in the JSP page ( popped up window).

<meta http-equiv="Refresh" content="0;URL=<%=request.getContextPath()%>/<%=request.getParameter("path")%>?<%=request.getPa rameter(SCHEDULE_TASK_ID)%>=<%=generation_id%>">

<body>

[img]<%=request.getContextPath()%>/images/MyFile( .gif or .swf)[/img]




Stop ReportGeneration</p>
</body>


Here the image is displayed but without animation. Please give me some hint how to proceed, whatever be the solution HTML-based or Java-based.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #8  
Old Mar 18th, 2005, 10:40
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
When you use Flash and publish a flash movie, Flash will actually create an HTML file for you with the necessary <object> code within it. All you need is that <object> code.

If you're not generating the HTML file, make sure you're choosing File > Publish and ensure that HTML is still selected in your publish settings.

Alternatively, if you don't have Flash...

Code: Select all
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="100" height="660" id="main_001">
<param name="movie" value="filename.swf" />
<param name="menu" value="false" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="filename.swf" quality="high" bgcolor="#ffffff" width="100" height="660" name="main_001" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>
Remember to change filename.swf to the name of your swf files and the width and height to be the same as your Flash file.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #9  
Old Mar 18th, 2005, 10:47
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,184
Blog Entries: 7
Thanks: 27
Thanked 22 Times in 19 Posts
In other words Vishal.... you CANT do this:-

[img]<%=request.getContextPath()%>/images/MyFile.swf[/img]
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread

Tags
use, ltmeta

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a "tag" system to find relevant "related" pages MrQuestions PHP Forum 3 Mar 20th, 2008 23:06
using meta http-equiv in php sudhakararaog PHP Forum 2 Mar 9th, 2008 17:20
[SOLVED] Show "Image" Depends On User "Status"? Monie Classic ASP 6 Oct 16th, 2007 01:22
? IS "meta name="robots" content="?" necessary in pages ? Love2Java Starting Out 6 Aug 8th, 2007 13:48
window.opener.document["nameForm"].getElementById("someid").value; doesnt work drpompeii JavaScript Forum 0 Feb 17th, 2007 23:09


All times are GMT. The time now is 09:20.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42