Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Im not sure how to title this.....
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

redbrad0
Advanced Member

USA
3725 Posts

Posted - 29 September 2003 :  10:57:26  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
I am working on a site where the data of the site could be displayed on other sites. They have a blind website which will allow them to use it with there look if they do not have a website. Basically I just want to share the body of the site with other sites and allow them to change the color and stuff of the site. But if they use the blind site they reference there company by using....

http://www.blindsite.com/default.asp?d=12345

When they access this site it sets a cookie so they cant try to goto another dealers site by changing the number. Im not sure if I am even making any sense but what would be the best way to share this data? Thru a database? XML? any other way?

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets

redbrad0
Advanced Member

USA
3725 Posts

Posted - 30 September 2003 :  17:51:35  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
Does anyone understand what I am trying to do, or just nobody knows how to handle this?

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 30 September 2003 :  19:24:49  Show Profile
Not sure what you're trying to do. But I have a similar problem soon (nowhere near as complex as yours) and we're just using CSS so the (one) other site can format it the way they want. I'm still a little hazy on how it will work, but the other site manager thinks it will be fine .... I'll let you know
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 30 September 2003 :  20:54:03  Show Profile  Visit Gremlin's Homepage
yeah if they don't need to make any layout changes then CSS would probably work fine, XML would give them the ability to just take the raw data and format it however they like.

Kiwihosting.Net - The Forum Hosting Specialists
Go to Top of Page

Bullschmidt
New Member

USA
56 Posts

Posted - 30 September 2003 :  21:54:13  Show Profile  Visit Bullschmidt's Homepage
Just a hopefully related idea and it would perhaps be a little cumbersome for each page to do this (but on second thought you could just include a page that reads the querysting) but you could perhaps allow people to add a few designated things to the querysting.

So instead of just this:
http://www.blindsite.com/default.asp?d=12345

Allow this too:
http://www.blindsite.com/default.asp?d=12345&forecolor=black&backcolor=white

J. Paul Schmidt, Freelance ASP Web Developer
www.Bullschmidt.com
Classic ASP Design Tips, ASP Web Database Sample (Freely Downloadable)
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 30 September 2003 :  23:28:16  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
Well let me see if I can explain a little more...

There are only two sites built right now...
http://displayproducts.eznetideas.net/tradeshow/throw_covers.asp (main site)
http://fabricexhibits.eznetideas.net/tradeshow/throw_covers.asp (blind site)

The company sells products only to dealers which in turn the dealers sell to the customers. They want the dealers to be able to build there own site with there data that is on there site. If they have there own website it would be great if it could be inserted into there site, but if not I have it setup so they can insert html for a top and bottom of the page into the database and then it could be displayed like... http://fabricexhibits.eznetideas.net/tradeshow/throw_covers.asp?d=3

Here are the problems I am seeing with the current setup.
1. With the different categorties on the site that display different menu items they would have to insert into the database for each website section.
2. What if the Dealer that is trying to insert his site does not know CSS to integrate the site?
3. If they have a website they would have to use an external address and not use there own domain name unless they use 3rd level domain names.

Maybe you might see other problems, or maybe you have a solution. Anything would be greatful

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets
Go to Top of Page

Classicmotorcycling
Development Team Leader

Australia
2084 Posts

Posted - 30 September 2003 :  23:48:53  Show Profile
Could you not have a DB that has a field to say the HTTP_REFERER an what they are allowed to see from that domain.

As a rough guide:

<%

  Dim strD
  strd = Request.Querystring("d")
%>
(some Sql Statment)
<%
   if strd = HTTP_REFERER then
response.write "What ever"
   else
response.write "You need to Be a valid customer from a valid address"
   end if
%>


It may help to get started....

Cheers,

David Greening
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 01 October 2003 :  11:32:44  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
Well basically I will just be having them link to the address with filename.asp?d=dealnumber because as we found out with the policy.asp page of snitz, it doesnt always get the referer url for all browsing users.

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets
Go to Top of Page

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 01 October 2003 :  12:29:43  Show Profile  Visit D3mon's Homepage
couldn't the dealers just call a cross-domain include file which has the appropriate HTML in?
So the dealers site might look like:

<html>
<body>
....
dealer header HTML
....
<!--#include file="http://sourcedomain.com/dealer/1946293872374649284.htm" -->
....
dealer footer HTML
....
</body>
</html>

CSS could be used to style the HTML content from the dealer end.


Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod
"In war, the victorious strategist only seeks battle after the victory has been won"
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 01 October 2003 :  15:41:50  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
I didnt think you could include files on a different web server thru regular ASP

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets
Go to Top of Page

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 01 October 2003 :  16:13:58  Show Profile  Visit D3mon's Homepage
I've got to admit, I've never tried it, but since you can put a URL in the parameters, I can't see why not.


Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod
"In war, the victorious strategist only seeks battle after the victory has been won"
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 01 October 2003 :  16:23:08  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
Actually if you think about it, if they can include files on other sites I could include your forum files and then run a sql statment and delete your entire database since your include files hold you database info. Thats why I really do not think its possible because of security reasons.

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets
Go to Top of Page

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 01 October 2003 :  16:24:36  Show Profile  Visit D3mon's Homepage
Ah you're right, sorry. That would have been good too - well, perhaps not the deleted DB!
I guess I'd dump the HTML in a SQL DB and give the dealers unique user accounts to retrieve the data by OLEDB.
I suppose that way they could log into the source domain for a nice easy admin page to edit their CSS as well.


Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod
"In war, the victorious strategist only seeks battle after the victory has been won"

Edited by - D3mon on 01 October 2003 16:28:50
Go to Top of Page

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 01 October 2003 :  16:30:54  Show Profile  Visit D3mon's Homepage
Oh what am I saying! That relies on them having server-side processing like ASP or PHP accounts. Ignore me today, I'm rambling nonsense.


Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod
"In war, the victorious strategist only seeks battle after the victory has been won"
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 01 October 2003 :  20:21:51  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
Thats ok D3mon, thats why I am posting just to see if there could be a better way then what I am doing now.

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets
Go to Top of Page

sr_erick
Senior Member

USA
1318 Posts

Posted - 01 October 2003 :  22:50:51  Show Profile  Visit sr_erick's Homepage  Send sr_erick a Yahoo! Message
Interesting setup you got going there Brad. If I come up with an answer I will let you know.




Erick
Snowmobile Fanatics

Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.29 seconds. Powered By: Snitz Forums 2000 Version 3.4.07