Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > a problem with frames

Reply
Thread Tools

a problem with frames

 
 
lookon
Guest
Posts: n/a
 
      05-22-2009
I want to enable keyboard shot-cut in my site. And my site uses
frames. But when the frame reload, the javascript in the father page
will make no use. Anyone can give me some help?
 
Reply With Quote
 
 
 
 
Thomas 'PointedEars' Lahn
Guest
Posts: n/a
 
      05-22-2009
lookon wrote:
> I want to enable keyboard shot-cut in my site. And my site uses
> frames. But when the frame reload, the javascript in the father page
> will make no use. Anyone can give me some help?


,-<http://jibbering.com/faq/#posting>
|
| 1.3 What should I do before posting to comp.lang.javascript?


PointedEars
 
Reply With Quote
 
 
 
 
lookon
Guest
Posts: n/a
 
      05-23-2009
mycode is:

<html>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8" />
<script type="text/javascript" src="/js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="/js/jquery.hotkeys-0.7.9.min.js"></
script>
<script type="text/javascript">
function test(){
jQuery(document).bind('keydown', {combi:'h',disableInInput:
true},function (evt){
f3.document.location = "/index.html";
});
}

jQuery(document).ready(test);
</script>
<head>
<title>SJTUBBS2</title>
</head>
<frameset name="topframe" border="0" frameborder="0" framespacing="2"
framemargin="0" cols="150,*">
<frame name="f2" framespcing="2" src="bbsleftnew">
<frameset onload="rightframe_onload()" id="rframe"
name="rightframe" rows="0, *, 20" >
<frame scrolling="no" marginwidth="4" marginheight="0"
framespacing="0" name="fmsg" id="fmsg" src='getmsg.html'>
<frame framespacing="2" name="f3" >
<frame scrolling="no" marginwidth="4" marginheight="1"
framespacing="1" name="f4" id="f4" src='/php/redir2.php?u=foot '>
</frameset>
</frameset>
</html>


When I enter the key "h", the "f3" frame will load "/index.html".
However, when enter "h" next time, the javascript does not work. I
thinks the problem is that jQuery(document).ready does not work the
the frame reload. How to solve it?

On May 23, 5:19*am, Thomas 'PointedEars' Lahn <(E-Mail Removed)>
wrote:
> lookon wrote:
> > I want to enable keyboard shot-cut in my site. And my site uses
> > frames. But when the frame reload, the javascript in the father page
> > will make no use. Anyone can give me some help?

>
> ,-<http://jibbering.com/faq/#posting>
> |
> | 1.3 What should I do before posting to comp.lang.javascript?
>
> PointedEars


 
Reply With Quote
 
Evertjan.
Guest
Posts: n/a
 
      05-23-2009
lookon wrote on 23 mei 2009 in comp.lang.javascript:

> mycode is:


[Please do not toppost on usenet]

>
> <html>
> <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8" />


Why specify a character set in a frames page?

> <script type="text/javascript" src="/js/jquery-1.3.2.min.js"></script>


Why ask for jquery knowledge in a NG that thinks [rightly so, methinks]
that jquery is crap?

> <script type="text/javascript" src="/js/jquery.hotkeys-0.7.9.min.js"></
> script>


[...]

> Subject Re: a problem with frames


You have no problem with frames, but with jquery.


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
 
Reply With Quote
 
 
 
Reply

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
having a problem with scrolling frames as if no frames surfunbear@yahoo.com HTML 0 03-08-2006 09:54 PM
Frames and borders around specific frames meyousikmann@yahoo.com HTML 1 02-10-2006 11:12 PM
Frames or not Frames... Ale HTML 17 08-05-2005 12:10 AM
Link needed to go from a non-frames page to a Frames page, and load a particular frame. How? - Newbe Philip HTML 3 06-28-2004 03:06 PM
From Frames to no frames? Powerslave2112 HTML 2 01-20-2004 10:30 PM



Advertisments