Jump to content

Form Varible


emediastudios

Recommended Posts

Hi everyone!

I'll try to explain this in simple words. :)

 

I have a site im working on that lists properties with various photos and details that are drawn from an sql database.(no problems)

This show records page shows all properties and a few details with the option to see more about any particular property.

This link then takes you to a full details page that uses form varibles to populate the page, (no problem)

The problem is my client wants a add to favorite / shortlist link that lets him go back to this page and the selected property.

I did some code but does not work.

when you go back to that same page directly it doesnt carry the form varibles and has no content.

 

fav.js

 

// Bookmark this page

// copyright 12th February 2005, 21st June 2006

// Stephen Chapman, http://javascript.about.com

// Updated for Opera 9

// You have permission to copy and use this javascript provided that

// the copyright notice is included with the script

 

var chr = 'CTRL-D';

var agt=navigator.userAgent.toLowerCase();

if(agt.substr(agt.indexOf('opera')+6,1) < 9) chr = 'CTRL-T';

if (window.external) document.write('<a href="javascript:window.external.AddFavorite(self.location,document.title)"><img src="images/favourites.png" alt="add to favorites" border="0" /><\/a>');

else document.write('Press '+chr+' to bookmark this page.');   

 

and this is my link in my page

 

<script type="text/javascript" src="favlink.js">

</script>             

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.