/    Sign up×
Community /Pin to ProfileBookmark

Hi
I developed Treeview Control using javascript and html.
when i click any node in tree will call the following method.

I have two frames left frame for treeview and right frame for displaying the page.
When i click the node, need to display corresponding page in right side frame.
function openPage(id,url){
tree.selectedIndex = id;
alert(url);
//RP Added the following code to remove the node
RemoveSelectedNode();
parent.tag.src=”http://www.yahoo.com“;
tree.display();

}

display function display the tree ,befor that i am using parent.tag.src=url; tag is my right side frame name.

but it is not working .If any one know pls help me.
Thanks
Ravi

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@Paul_JrSep 13.2004 — Try
<i>
</i>parent.frames['tag'].src = 'http://www.yahoo.com/';
×

Success!

Help @pprasadravi spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...