Advanced Web Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Iron Speed
 
Go Back   Dev Articles Community ForumsWeb DesignAdvanced Web Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old July 8th, 2007, 05:12 AM
jemthealmighty jemthealmighty is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2007
Posts: 3 jemthealmighty User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 20 sec
Reputation Power: 0
Scripted Page Create-onLoad Idea.. Need Help!

Hey guys,
I am recreating a friends webpage. It is base upon tropical fish species and their profiles. He has currently designed it so that each profile is on its own webpage created and edited individually. My idea is that i could use a javascript code to do it all... for example:
Instead of clicking on a link to: url/fishprofiles/betta.html
I wish to implement: url/profiles.html?type=fish&name=betta
This way i could run both fish profiles and plant profiles from the one page.
Now if you are still following, I have done that, and on the page 'profiles.html' I am not sure how I would go about setting it up to:
1) recieve the type and name from the URL [completed]
2)either
i)using the type and name create a path to, maybe text or xml document or some other sort of file that contians the information about the one profile [semi-completed]
ii)or just link directly to a table with all of the profile information for everything stored in it and search for the profile given the above name [no idea on doing that one]
3)then extract the profile information as one large string [definitely need help here]
4)then break up the large string into the information needed [completed]
5)then using the information returned as variables compile the page to be viewed. [semi-completed]

While doing all of this I am quite sure it is do-able although the real challenge is that I DO NOT want to venture past using javascript, vbscript or possibly other client side scripting languages. also i am trying to avoid using activeX object as they bring up warnings and what not.. use if the only way for me to do this is by using them can someone please tell me how to automatically accept the error?

I know this is a big ask but I am not asking you to actually write the script for me just to tell me what I could use to do it.
Thank you in advance!!
Jem.

Reply With Quote
  #2  
Old July 11th, 2007, 11:00 AM
Mittineague's Avatar
Mittineague Mittineague is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jul 2005
Location: West Springfield, Massachusetts
Posts: 530 Mittineague User rank is Private First Class (20 - 50 Reputation Level)Mittineague User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 21 h 4 m 40 sec
Reputation Power: 3
profile pages

Hi jemthealmighty, welcome to the forums,
I'm not 100% clear on what you want to do. You want to use javascript only (no server-side script) to create dynamic pages?

Reply With Quote
  #3  
Old July 12th, 2007, 05:45 AM
jemthealmighty jemthealmighty is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2007
Posts: 3 jemthealmighty User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 20 sec
Reputation Power: 0
well yeh i think it might be impossible without using something like php but i dont really want to learn that just yet!

any ideas? or maybe sites that can give me some quick and easy to follow tutorials on php?

Reply With Quote
  #4  
Old July 12th, 2007, 06:17 PM
Mittineague's Avatar
Mittineague Mittineague is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jul 2005
Location: West Springfield, Massachusetts
Posts: 530 Mittineague User rank is Private First Class (20 - 50 Reputation Level)Mittineague User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 21 h 4 m 40 sec
Reputation Power: 3
dynamic pages

I wouldn't say that it's impossible, just not very practical.
Preferably I would store the info in a database and use PHP to get the info and display the pages. And I would use Apache to "rewrite" the URLs.
If I had to use only javascript (not a good idea, what about non-js users and search bots?) I would keep the info in an XML file and parse out what I needed. eg.
  • user clicks link url/profiles.html?type=fish&name=betta
  • js on profiles page gets GET values from location prorperty
  • js AJAX makes HTTP request to XML file
  • js parses info and writes to the DOM

Reply With Quote
  #5  
Old July 13th, 2007, 08:26 AM
jemthealmighty jemthealmighty is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2007
Posts: 3 jemthealmighty User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 20 sec
Reputation Power: 0
thanks for your reply. I might look into doing it the js way with the xml and see how i go... do you think you could point me in the direction of somewhere gives examples of the last three steps you posted above?

Thanks in advance,
Jem

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignAdvanced Web Development > Scripted Page Create-onLoad Idea.. Need Help!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway