| | |
pages
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
If you're really in a hurry and are willing to deal with a horde of angry, standards-wielding html-ers, you can look up this iframe article randomly Googled by yours truly.
But if you have more time, you can read about AJAX and PHP and 'dynamically' load certain pages or content into a portion/element of your index page.
But if you have more time, you can read about AJAX and PHP and 'dynamically' load certain pages or content into a portion/element of your index page.
If you know ASP, you can save other daniweb members from idiots like me by helping out in this forum.
Visit this thread if your username starts with one of the following letters: B D F H J L N P R T X Y Z.
Visit this thread if your username starts with one of the following letters: B D F H J L N P R T X Y Z.
AJAX isn't a new language, it's just based on javascript (but it somehow 'interacts' with the server because it can 'call' pages). So with what you want to do, the benefits of AJAX isn't very obvious. However, it's very useful to learn because of that being-able-to-call-pages functionality (and some really cool animation effects).
(So you won't curse the day I was born when you get stuck trying to learn it.)
Usually when a user clicks on a link or on a "submit" button, the whole page is "submitted" and a new page is loaded (HTML/PHP/ some other page).
Assuming you couldn't do it with an iframe, you can use AJAX to get the value of the link (or to just react if a certain link is clicked) and do something based on that action (link-clicking) which can be one of the ff:
- animate something
- call some php/html/.something page and get the value it returns
If you're already familiar with javascript, you can just read the uses or view some samples of AJAX in action:
- a bit of a serious article about AJAX
- a cool/easy-to-understand article demonstrating AJAX uses for designers - the page for the jQuery demos can be found here
jQuery is an AJAX library (just a .js file you include in your pages, like an external CSS file that allows you to start using AJAX instead of having to start from scratch using this W3schools tutorial.
As a last attempt to convert you (hehe), the being-able-to-call-pages functionality of AJAX allows you to connect to a database and dynamically change a portion of your page without having to reload the whole page (since you can call PHP pages and PHP can interact with your database).
An example of that is a registration form which, on clicking the submit form, uses AJAX to call a PHP script and check the database if the username is taken and stopping the submission process if so. Instead of having to submit the whole page and wait for everything to be processed before generating all the errors.
(So you won't curse the day I was born when you get stuck trying to learn it.)
Usually when a user clicks on a link or on a "submit" button, the whole page is "submitted" and a new page is loaded (HTML/PHP/ some other page).
Assuming you couldn't do it with an iframe, you can use AJAX to get the value of the link (or to just react if a certain link is clicked) and do something based on that action (link-clicking) which can be one of the ff:
- animate something
- call some php/html/.something page and get the value it returns
If you're already familiar with javascript, you can just read the uses or view some samples of AJAX in action:
- a bit of a serious article about AJAX
- a cool/easy-to-understand article demonstrating AJAX uses for designers - the page for the jQuery demos can be found here
jQuery is an AJAX library (just a .js file you include in your pages, like an external CSS file that allows you to start using AJAX instead of having to start from scratch using this W3schools tutorial.
As a last attempt to convert you (hehe), the being-able-to-call-pages functionality of AJAX allows you to connect to a database and dynamically change a portion of your page without having to reload the whole page (since you can call PHP pages and PHP can interact with your database).
An example of that is a registration form which, on clicking the submit form, uses AJAX to call a PHP script and check the database if the username is taken and stopping the submission process if so. Instead of having to submit the whole page and wait for everything to be processed before generating all the errors.
If you know ASP, you can save other daniweb members from idiots like me by helping out in this forum.
Visit this thread if your username starts with one of the following letters: B D F H J L N P R T X Y Z.
Visit this thread if your username starts with one of the following letters: B D F H J L N P R T X Y Z.
You're welcome. Hope you find it useful. =)
If you know ASP, you can save other daniweb members from idiots like me by helping out in this forum.
Visit this thread if your username starts with one of the following letters: B D F H J L N P R T X Y Z.
Visit this thread if your username starts with one of the following letters: B D F H J L N P R T X Y Z.
![]() |
Similar Threads
- Dynamic web pages? Which will exist? (IT Professionals' Lounge)
- Sams Teach Yourself Active Server Pages (ASP)
- Problem loading 'geocities' pages on my machine (Web Browsers)
- internet pages wont close (Web Browsers)
- Time out web pages w/text or drop boxes (Networking Hardware Configuration)
- IE 5.0 not displaying pages properly (Web Browsers)
- weird problem : Internet Explorer cannot load all geocities pages (Windows NT / 2000 / XP)
- Java Server Pages (JSP)
Other Threads in the HTML and CSS Forum
- Previous Thread: css positioning questions
- Next Thread: Do you know any good contact form script
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7





