Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Javascript

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Eraser
Grandmaster Cheater
Reputation: 0

Joined: 23 Jul 2008
Posts: 504
Location: http://www.youtube.com/PCtrainers

PostPosted: Thu Jan 29, 2009 8:56 am    Post subject: Javascript Reply with quote

Hello, i wanted to ask you guys for this thing. I will try to explain it best i can with my shitty English.
So there is a webpage.. and in that webpage there is another webpage in another window... so basically there is a window in the page, that loads a different page than the website itself..

Can you write a code or give me a link for it or something? I know it shouldn't be anything long Embarassed

I seriuosly tried googling things, but all i came up with was how to create a pop-up with desired size using javascript lol Shocked
Back to top
View user's profile Send private message
92Garfield
I'm a spammer
Reputation: 57

Joined: 20 Dec 2007
Posts: 5871
Location: Banana Republic Germany

PostPosted: Thu Jan 29, 2009 9:46 am    Post subject: Re: Javascript Reply with quote

Eraser wrote:
I seriuosly tried googling things, but all i came up with was how to create a pop-up with desired size using javascript lol Shocked


Isnt that what you want? Confused
Might you show us an example?
Try viewing site source code you can see all the HTML/JS

_________________
Back to top
View user's profile Send private message
Eraser
Grandmaster Cheater
Reputation: 0

Joined: 23 Jul 2008
Posts: 504
Location: http://www.youtube.com/PCtrainers

PostPosted: Thu Jan 29, 2009 10:40 am    Post subject: Reply with quote

Yeah.. but i can't find that kind of webpage.. lemme try to find somehow
Back to top
View user's profile Send private message
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Thu Jan 29, 2009 12:21 pm    Post subject: iframe/div? Reply with quote

Is this what your trying to do?
Code:
<html>
<head>
<script type="text/javascript">
function navigate(site)
{
document.getElementById("iframe").setAttribute("src",site);
}
</script>
</head>
<body>
<input type="button" value="Press me pliss?!!" onclick="navigate

('http://www.google.se');"/>

<p>
<iframe id="iframe" frameborder="0"></iframe>
</p>

</body>
</html>

_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
tombana
Master Cheater
Reputation: 2

Joined: 14 Jun 2007
Posts: 456
Location: The Netherlands

PostPosted: Thu Jan 29, 2009 12:51 pm    Post subject: Reply with quote

Maybe you mean iframes?
It's not a completely different window but it is a webpage within another webpage (with scrollbar etc if wanted)
Back to top
View user's profile Send private message
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Thu Jan 29, 2009 12:56 pm    Post subject: Reply with quote

tombana wrote:
Maybe you mean iframes?
It's not a completely different window but it is a webpage within another webpage (with scrollbar etc if wanted)

Yes, and javascript works great if you wanna change the url of a iframe,div,frame or whatever (as long as the user actually have it enabled) Wink

_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Eraser
Grandmaster Cheater
Reputation: 0

Joined: 23 Jul 2008
Posts: 504
Location: http://www.youtube.com/PCtrainers

PostPosted: Thu Jan 29, 2009 1:02 pm    Post subject: Reply with quote

I mean something like this guys...

Back to top
View user's profile Send private message
tombana
Master Cheater
Reputation: 2

Joined: 14 Jun 2007
Posts: 456
Location: The Netherlands

PostPosted: Thu Jan 29, 2009 1:05 pm    Post subject: Reply with quote

Naablet wrote:
tombana wrote:
Maybe you mean iframes?
It's not a completely different window but it is a webpage within another webpage (with scrollbar etc if wanted)

Yes, and javascript works great if you wanna change the url of a iframe,div,frame or whatever (as long as the user actually have it enabled) Wink

Sorry I didn't see that you also posted about the iframe's. And yes, javascript works great for that. Very Happy
Back to top
View user's profile Send private message
Eraser
Grandmaster Cheater
Reputation: 0

Joined: 23 Jul 2008
Posts: 504
Location: http://www.youtube.com/PCtrainers

PostPosted: Thu Jan 29, 2009 1:11 pm    Post subject: Reply with quote

I googled iframe and found this which works great:

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
        <title>Example</title>
  </head>
  <body>
        The material below comes from the website http://example.com
        <iframe src="http://thps-mods.com" height="200">
            Alternative text for browsers that do not understand IFrames.
        </iframe>
   </body>
</html>


Thanks for telling me how it's called!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites