SEO | Link Popularity | Search Engine Consulting | SEO Tutorial | SEO Tools | SEO Forum
Closed Thread
 
Thread Tools Rating: Thread Rating: 11 votes, 5.00 average. Display Modes
  #1  
Old 06-19-2005, 10:16 AM
ja2bo2t ja2bo2t is offline
SEO Junior
 
Join Date: Jun 2005
Posts: 3 ja2bo2t is on a distinguished road
getting source from another site

Hey guys, i'm currently in the development of a new website with an affiliate program. They don't give the tools that i want so i decided that i would try to program my own.

They do have a way to search their site, through my site, using a <script language="javascript" src="link from the affiliate site">

My site is about cars, and car parts, so i have 4 pull down list menus to select their make, model, year, and what they want to buy. I then create a link using these things using a string array and just combining them together. The problem that i am having is that i dont know how to modify the <script language="javascript" src="THE LINK I HAVE">. It seems like you cant made this a variable, only a specific link. Is there any way to do this or am i just wasting my time?
Reply With Quote
  #2  
Old 06-19-2005, 11:11 AM
Paz's Avatar
Paz Paz is offline
SEO GUY Moderator
 
Join Date: Sep 2004
Location: Antalya, Turkey
Posts: 4,181 Paz has a spectacular aura aboutPaz has a spectacular aura about
Hi,

Is the javascript supplied by your affiliates? Also are you sure that editing the code doesn't break the terms of use?

If you like you can post the web site and we can have a look for you.

Cheers,
Paz.
__________________
10.3 million entries for Hotels in Turkey but I'm still chipping away.
Reply With Quote
  #3  
Old 06-19-2005, 11:35 AM
ja2bo2t ja2bo2t is offline
SEO Junior
 
Join Date: Jun 2005
Posts: 3 ja2bo2t is on a distinguished road
Alright i guess i can explain it further.

I am going through ebay to search for different parts, etc... They provide a way to put a search for a specific item on your site, but it must remain static. An example would be a search for a honda civic, they say to put a

<language="javascript" src="http:// REALY COMPLEX CODE +honda+civic+ MORE REALLY COMPLEX CODE">

and then it pops out on your screen nice and fancy in a table on my site, all the products for the search honda civic. I was hoping that the user would be able to edit the search, like find a sunbird or something, without having to exit my site and going to their site.
So i decided to let them choose what they wanted, through list menus (all the different makes, etc.) and used the original code (the complex stuff) and through the new information in it. The link that i create works great but i dont know how to change the src= without copying my link created and pasting it in the code, saving it, then loading it back up. I figured that there must be an easier way.

O an the editing violated terms of use... i dont know but if i make them money i dont see why they would care?
Reply With Quote
  #4  
Old 06-19-2005, 11:52 AM
ja2bo2t ja2bo2t is offline
SEO Junior
 
Join Date: Jun 2005
Posts: 3 ja2bo2t is on a distinguished road
O, i looked it up and changing it does not violate the terms of use.

Last edited by ja2bo2t : 06-19-2005 at 12:47 PM.
Reply With Quote
  #5  
Old 06-19-2005, 11:10 PM
Paz's Avatar
Paz Paz is offline
SEO GUY Moderator
 
Join Date: Sep 2004
Location: Antalya, Turkey
Posts: 4,181 Paz has a spectacular aura aboutPaz has a spectacular aura about
Hi,

it is possible, if I understand you correctly, though javascript may not be the best soloution. I would need to look at the site though to be sure I understand what you mean. If you like you can PM me with it.

Cheers,
Paz.
__________________
10.3 million entries for Hotels in Turkey but I'm still chipping away.
Reply With Quote
  #6  
Old 01-22-2007, 07:04 PM
BSolveIT's Avatar
BSolveIT BSolveIT is offline
SEO
 
Join Date: May 2005
Location: England, UK
Posts: 621 BSolveIT has a spectacular aura aboutBSolveIT has a spectacular aura about
Send a message via MSN to BSolveIT
Solution

Its hard to know exactly what your looking for without some additional context, but the code I wrote below should put you on the right track:

Code:
<head>
    <title>Some Page</title>
    <script type="text/javascript">
        function swapper()
        {
            //set this to whatever you want the src url to be
            var url = "http://www.xyz.com/someotherscript.js" 
            
            var headTag = document.getElementsByTagName("head").item(0); 
            var scriptTag = document.getElementById("myscript")
            scriptTag.src = url; 
            headTag.appendChild( scriptTag );            
        }
    </script>
    <script id="myscript" type="text/javascript" src="http://www.xyz.com/somescript.js"></script>
</head>

Let me know how you get on, or if you need anymore help?

Reply With Quote
  #7  
Old 01-25-2007, 01:36 PM
BSolveIT's Avatar
BSolveIT BSolveIT is offline
SEO
 
Join Date: May 2005
Location: England, UK
Posts: 621 BSolveIT has a spectacular aura aboutBSolveIT has a spectacular aura about
Send a message via MSN to BSolveIT
Ahhhh!! I've just realised that I've replied to an 18 month old thread.
D'oh!!
Reply With Quote
  #8  
Old 01-25-2007, 03:36 PM
jocelyn's Avatar
jocelyn jocelyn is offline
Moderator
 
Join Date: Mar 2004
Location: Montréal / Canada
Posts: 5,101 jocelyn has a spectacular aura aboutjocelyn has a spectacular aura aboutjocelyn has a spectacular aura about
Quote:
Originally Posted by BSolveIT
Ahhhh!! I've just realised that I've replied to an 18 month old thread.
D'oh!!
Well, a spammer had awaken it, and I deleted his post... so you did not dig it out...
__________________
Weblist -|- Easy salad recipes
Reply With Quote
  #9  
Old 01-25-2007, 07:30 PM
BSolveIT's Avatar
BSolveIT BSolveIT is offline
SEO
 
Join Date: May 2005
Location: England, UK
Posts: 621 BSolveIT has a spectacular aura aboutBSolveIT has a spectacular aura about
Send a message via MSN to BSolveIT
Ohhh! Well thats good then - means I'm not entirely losing my marbles yet. Well, not entirely anyway. hehe

Reply With Quote
Closed Thread


Thread Tools
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
Forum Jump


Login/Register
User Name
Password
Remember Me?

Forum Links
Forum Home
SEO Forum
Internet Marketing Forum
Web Design Forum
Web Hosting Forum
Programming Forum
SEO Chat

Quick Links
Forum Home
New Posts
Mark Forums Read
Open Buddy List
User Control Panel
Edit Avatar
Edit Profile
Edit Options
Miscellaneous
Subscribed Threads
My Profile

Search Forums

Advanced Search
All times are GMT -8. The time now is 12:01 AM.


Powered by: vBulletin Version 3.0.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.