SunQuest
           Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 19th, 2003, 09:18 AM
KilerCris KilerCris is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Location: Bensalem PA
Posts: 58 KilerCris User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via ICQ to KilerCris Send a message via AIM to KilerCris Send a message via Yahoo to KilerCris
Angry Setting document.title IE6 bugged w/ flash <--MODS: MOVE ME

I'm trying to be able to set the browser window's title from inside a flash file. IE6 is being a pain in the *** though and i'm at the point that i'm pretty sure it has to be a browser bug. From inside the flash i'm using

Code:
getURL("javascript: set_title('" + title + "');");

(Edit: theres not really a space in "javascript"...the forum seems to be sticking it in there on it's own)

My set_title function is in the head of the holding document

Code:
<script>
function set_title(new_title) {
  alert("Setting window title:\nOriginal: " + document.title + "\nNew: " + new_title);
  document.title = new_title;

  return void(0);
}
</script>


Now for the weird stuff. Calling the function from within the page works fine. I can set the title fine. When i try to set it from the flash now though it calls the function and the alert comes up properly but the window title doesn't change. Now setting it from the pages script doesn't work either, and when I refresh the page the window title stays as the last one set by the javascript within the page(doesn't go back to the <title><//title> set title) and nothing will change the title. I have to close the browser window and open a new one to get anything working again.

No problems in mozilla.

My IE version is 6.0.2800(OS: windows XP sp1)

Heres a page I set up to isolate and test it

http://chris.craftyidiots.com/title...title_test.html

If you want the fla you can find it in the dir:

http://chris.craftyidiots.com/title_setting/


Thanks for any help, if you don't think you could help solve it letting me know what happens with older versions of IE that you might have installed would be a big help too. I'm ripping my hair out

Edit:
I've found that calling any getURL from flash seems to keep IE from updating the window title until the browser window is closed or address is changed. I suppose i'm looking for help with a workaround now if anyone knows one or has any ideas that might work. I'd also like to know if this problem happens in IE5.5/5/4 too. What i'm trying to do is update the title of a popup based on data recieved from an XML socket

Last edited by KilerCris : September 19th, 2003 at 08:26 PM.

Reply With Quote
  #2  
Old September 19th, 2003, 09:28 AM
Winters Winters is offline
Bad Coder
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Jul 2003
Posts: 1,742 Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 10 h 57 m 14 sec
Reputation Power: 171
Shouldn't: set_title('" + title + "');");

Be: set_title('" + new_title + "');");

?

Reply With Quote
  #3  
Old September 19th, 2003, 09:48 AM
KilerCris KilerCris is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Location: Bensalem PA
Posts: 58 KilerCris User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via ICQ to KilerCris Send a message via AIM to KilerCris Send a message via Yahoo to KilerCris
no, but thanks anyway

Reply With Quote
  #4  
Old September 19th, 2003, 03:25 PM
sardonyx's Avatar
sardonyx sardonyx is offline
sardonyx quinx
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 157 sardonyx User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 34 m 3 sec
Reputation Power: 5
Send a message via Yahoo to sardonyx
<script>
function set_title(new_title) {
alert('Setting window title:\nOriginal: ' + document.title + '\nNew: ' + new_title);
document.title = new_title;

return void(0);
}
</script>

I just place " to '

Other than this, I don't know how to do it in flash. ^_^ Cheers.

Reply With Quote
  #5  
Old September 19th, 2003, 08:11 PM
KilerCris KilerCris is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Location: Bensalem PA
Posts: 58 KilerCris User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via ICQ to KilerCris Send a message via AIM to KilerCris Send a message via Yahoo to KilerCris
Thanks for the help.....maybe this should be in the flash forum...should i see if a mod moves it or just repost?

Reply With Quote
  #6  
Old September 19th, 2003, 09:25 PM
sardonyx's Avatar
sardonyx sardonyx is offline
sardonyx quinx
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 157 sardonyx User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 34 m 3 sec
Reputation Power: 5
Send a message via Yahoo to sardonyx
Well, dunno either. But I think you already know http://flashkit.org or http://flashkit.com

Just in case you want to know. ^_^ Please let me see your program when it's done, ok? Cheers!

Reply With Quote
  #7  
Old September 19th, 2003, 09:58 PM
KilerCris KilerCris is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Location: Bensalem PA
Posts: 58 KilerCris User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via ICQ to KilerCris Send a message via AIM to KilerCris Send a message via Yahoo to KilerCris
I came up with a workaround. Put the page in frames (top one 0) so the frame gets bugged up but the script sets the top.document.title

Reply With Quote
  #8  
Old September 19th, 2003, 10:43 PM
drgroove's Avatar
drgroove drgroove is offline
pushing envelopes, not pencils
Dev Shed God 2nd Plane (6000 - 6499 posts)
 
Join Date: Feb 2002
Posts: 6,224 drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Day 4 h 34 m 57 sec
Reputation Power: 174
As per KilerCris' request, moved to the Flash forum.
__________________
Give a person code, and they'll hack for a day; Teach them how to code, and they'll hack forever.
Analyze twice; hack once.
The world's first existential ITIL question: If a change is released into production without a ticket to track it,
was it actually released?


About DrGroove: ITIL-Certified IT Process Engineer - Enterprise Application Architect -
Freelance IT Journalist - Devshed Moderator - Funk Bassist Extraordinaire


Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Setting document.title <--IE6 hates me


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway