Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Old 10-02-2008, 08:59 PM Re: Has no properties
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Actually setting up for reusing the object wasn't a problem at all, I had that pretty much sorted. In fact I went even further than that in breaking it down into functions, and FF2, FF3, Opera9, Moz1.7, NS8, IE6 on XP, IE7 on XP, Safari on Windows were all quite happy.

I had a problem with IE6 on Win2k hanging because the request object was never going into a "loaded" state (ReadyStateValue = 4), so it would never release the HTTP connection, and because IE only has 2 connections it can use as soon as a second call was made the browser could no longer communicate with the outside world.
Turns out to be an "undocumented feature" in a version of wininet.dll.
Eventually found it in this thread -> http://www.csschat.com/showthread.php?t=9858

I'll probably document my trials and tribulations sometime during next week.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
 
Register now for full access!
Old 10-03-2008, 04:35 AM Re: Has no properties
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
Originally Posted by soap View Post
I want to be able to click any one of those and load a certain page with a certain source in the iframe without having to make 30 pages each with a different starting source of the iframe. What would be the best way to do this?
Code:
	function swapSRC(p_sURL) {
		document.getElementById("ext").src = p_sURL;
	}
HTML Code:
<iframe style="height:400px;width:500px;" id="ext" src="http://www.yahoo.co.uk"></iframe>
<br />
<br />
<span onclick="swapSRC('http://www.google.com/')">Google</span> <span onclick="swapSRC('http://www.msn.com/')">MSN</span>
Just keyboard bashing not actually tested BTW

Or you can put the URIs into an array and call the function with an array index
That way lets you build the URL list and the nav spans (or any element of your choosing) server side rather than hardcoding them.

Do take note this is highly SE unfriendly and pretty much inaccessible to many assistive UAs.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Has no properties

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.48291 seconds with 11 queries