Current location: Hot Scripts Forums » General Web Coding » JavaScript » transparent reload


transparent reload

Reply
  #1 (permalink)  
Old 05-02-07, 11:40 AM
spocchioso spocchioso is offline
New Member
 
Join Date: May 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
transparent reload

Hi,probably the question were yet asked,ive tried to search it founding anything.

is there a way to load a page and to encapsulate it in a javascript variable?

for example,
i have an active page(php or asp) that return a state of the server.
and a second page have to get the state of the server from the first page (it is a simple string)elaborate it and put it on a <div> or <p> or what you wont

i think and hope there should be a javascript function like
HTML Code:
<script>
contenuto=getPage('active.php');
alert (contenuto); //will return <html><head>........</html>
</script>
but obviously i dont know where is this function and if it really exist!


thanks!
Reply With Quote
  #2 (permalink)  
Old 05-02-07, 11:54 AM
Vicious's Avatar
Vicious Vicious is offline
Community VIP
 
Join Date: Jan 2007
Location: Belgium
Posts: 584
Thanks: 0
Thanked 0 Times in 0 Posts
This can be done, but you will need to learn about AJAX to achieve what you want. Here's a nice tutorial: http://www.w3schools.com/ajax/default.asp

AJAX is not a program language, but a technique, allowing you to query a server side scripting page (like ASP or PHP) via Javascript. The output of that ASP/PHP page can be captured in a variable, and then you can do with it whatever you want.
__________________
Jack Bauer makes Chuck Norris cry
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to check page reload? fox1999 PHP 6 10-29-10 11:02 PM
transparent backgrounds? BMS Flash & ActionScript 1 04-23-07 09:21 PM
Page reload (Another is this possible) chrisrobertson HTML/XHTML/XML 0 07-31-06 07:30 PM
text/numerical code for transparent? kermit_criminal CSS 2 04-01-04 03:42 AM
alphanumeric code for transparent? kermit_criminal HTML/XHTML/XML 1 03-28-04 06:32 AM


All times are GMT -5. The time now is 11:26 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.