SSI Call

They have: 7 posts

Joined: Jun 2004

Hi

Check below URL, i have called this URL as belwo in via JAVA script:-

http://tickettransaction.com/?bid=322&sitenumber=3&tid=general_results&kwds=sports&stype=0

<script LANGUAGE="JavaScript">
document.write('<script LANGUAGE="JavaScript" SRC="http://tickettransaction.com/?bid=322&sitenumber=3&tid=general_results&kwds=sports&stype=0"><\/SCRIPT>');
</script>

Whe i see the source, in sports.html page, it is not showig the contents of the called URL but is is showing all the contents in the HTML page.

Can anyone suggest me how can i have also content in the source as well as the HTML page. I have heard about SSI call, but i have also read much about this, how can i call this URL through SSI call or through any other metods so that i can get the contents in the source of the page as well as in the HTML page

Greg K's picture

He has: 2,145 posts

Joined: Nov 2003

What type of content is in http://tickettransaction.com/?bid=322&sitenumber=3&tid=general_results&kwds=sports&stype=0?

As you have it coded, you are telling the web browser that it is javascript code that is supposed to be processed by the browser.

If it is actual HTML code, PHP code, or ASP code, then this is not the way to call it.

Doing

&lt;script LANGUAGE="JavaScript"&gt;
document.write('&lt;script LANGUAGE="JavaScript" SRC="http://tickettransaction.com/?bid=322&sitenumber=3&tid=general_results&kwds=sports&stype=0"&gt;<\/SCRIPT>');
&lt;/script&gt;
' is not server-side scripting, it is client side, so you will not see the results included with the source code sent to the browser, the browser will internally get the page you specify and process it.

(additionally, the code you have could have (if it was right) be just written as &lt;script LANGUAGE="JavaScript" SRC="http://tickettransaction.com/?bid=322&sitenumber=3&tid=general_results&kwds=sports&stype=0"&gt;&lt;/script&gt;'

-Greg

They have: 7 posts

Joined: Jun 2004

hi

thanks. I am attaching some details and your help is needed. I need contents to be display in source code like the web site onlineseats.com

I am writing some details about plugins

There are two ways to call a plug-in on a web page in your website: using javascript or HTML. In either case, you must first formulate the URL that will be called to retrieve the plug-in code. There are four parts to the URL: the Plug-In Service, the Broker Id, the Template ID, and the Template Parameters.

The Plug-In Service and the Broker Id (bid) will always be the same (the former will always be tickettransaction.com and the latter is your TicketNetwork Exchange ID). The Template ID (tid) and the Template Parameters will vary, depending on the plug-in you wish to call. Both are listed under required parameters for each plug-in below.
Once you know the URL, retrieving the code for your page is simple: You may either use this URL as the src attribute for a <script language=?javascript?></script> tag, or you can call the URL using serverside code and write the HTML to your page before returning it to the browser. In the latter case, you will need to append the name/value pair "html=true" to the URL so that the code you receive will not be javascript, but html.

bid: [your broker id number]
tid: general_results or 301
kwds: [the words with which to perform the search]
stype: 0 | 1 | 2 [corresponding to the "search types" given above]

CptAwesome's picture

He has: 370 posts

Joined: Dec 2004

Well, if you want the results in the page source using php you can do:

<? readfile('http://etc'); ?>

As long as you have the server set to "fsockopen" I think, it's all documented on http://www.php.net, just look up the readfile function.

Just remember that if you plan to use php, you'll likely have to end your filenames in php, unless you know how to alter your Apache httpd conf

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.