Remote Site Include - Is This Even Possible?

May 1, 2007

The boss wants to distribute a mini-site to partners but still maintain control of the site on our end. The initial thought was to just send them a Flash app but I'm not sure if that will be the most practical. Here's what I would like to be able to do. I don't know if it's even possible.

In this proof-of-concept model the mini site has three pages that all link to each other. Pages also include images and a form. The partner's site would have a bit a javascript on the page to set a unique ID parameter and then load our mini site.

I imagine this JS site importer would wind up spitting out a bunch of document.write() stuff to basically write our site into the page of the partner's site.

Am I even making sense?

The desired effect is to allow the partner's site to display our content within their shell. AND for us to be able to change the content at will. AND to be ble to shut off the partner's feed (via that unique ID parameter) if we need to.

I'm not asking for a complete pre-written solution (although it wouldn't be rejected!) Just for a shove in the right direction.

View 3 Replies


ADVERTISEMENT

JQuery :: Reading XML From Remote Site?

May 24, 2011

I am trying to read an XML file from a web source to display on my site. I can't get it to work ..GET seems to come up with an error - I tried crossDomain: true with no luck and have tried on a local and web server.

The code I am using is...

$(document).ready(function(){
$.ajax({
type: "POST",
url: "http://js.monster.com/query.ashx?cy=au&jcat=3975.11885&pp=20&tm=60d",

[Code]....

View 1 Replies View Related

Build Code Snippet And A Remote Script That Draws A Review Badge On Site?

Mar 8, 2010

How to build the code snippet that a 3rd party would add to their website page and the corresponding remote script that draws a review badge on a site similar to how tripadvisor does it?

You can see an example here if you scroll down to the bottom: http://www.hotel-grandmajestic.cz/en/about-hotel

Here is the source from that webpage code...

View 9 Replies View Related

Get Ip Address Of The Remote User Or Remote Web Browser?

May 4, 2009

I am new to javascript, I have one question, how can I use javascript to get the IP address of the remote user or remote web browser?

View 9 Replies View Related

Can JS Suss Out "on-site" Vs Off-site HTTP Requests?

Dec 5, 2006

this may be more of an "html" issue, but I'll wing it.

i've got a multi-language site, where the home-page of each language group
features a link to a popup window that offers background info on site
management. the popup is fired by a javascript function, when they click
the site management link. there's also a "window close" function button so
they can nuke it as they please.

now, oddly, people who search for my site in the chinese language on google,
are sent directly to the site management popup window, which of course,
opens in their "full" browser window, and which also has no links back to
the main site, because it's meant to open only as an "accessory" to the main
site.

my question is this: is there any way, with Javascript, that I could
determine if they arrived at this window from "off-site" (ie, a google
search), and therefore offer such "off-site" visitors a link back to the
principal site, a link that would be hidden for visitors who clicked the
popup window from my own site?

View 2 Replies View Related

Include ASP Using Javascript

Jul 23, 2005

I have an ASP script called blah.asp. I wanted to include it in
another ASP file on another server, without using <!--#include etc.

I had seen another script that looked similar to:
<script language="javascript"
src="http://www.mydomain.com/blah.asp"><script>

But when I tried it nothing showed up on the main ASP page. If I run
"http://www.mydomain.com/blah.asp" file on its own it runs fine. Can
anyone point me in the right direction?

View 3 Replies View Related

Include File

Jul 20, 2005

I'm having the folowing problem:

I'm getting an Array from an external source, the data in the array depents
on the get variables.

These get variables should be decided by the browser, after there decided I
can created the adres to get the file with the JavaScript Array.
How do I include this file?

Basicaly what I want in the script is something like:

View 5 Replies View Related

JS Comment Include

Jan 1, 2006

I am trying to do an include file that simply writes a comment in the code. Is this possible. The include below does not seem to work.

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

In ReadMe.js:
document.write('<!--');
document.write('//');
document.write('// Written By John Doe; 2006');
document.write('//-->');

View 2 Replies View Related

Javascript Include

Apr 18, 2001

Let's say I have 366 text files, one for each day of the year, the filenames being month-day.txt (eg: for today it would be 4-18.txt).

How do I get to include the day's text file with javascript?

View 6 Replies View Related

How I Can Include Another File.js

Apr 4, 2006

I making a web site with php
and i have alot of js files in it
and i need to use more than two files in every a one page

now i'm using for example:
<script type="text/javascript" src="file.js"></script>

i heard about can use one js file examle: global.js and call another files with it's functions (file.js, file2.js, lib.js) from this global.js
with XMLHttp

how i can make it step by step

View 2 Replies View Related

Include With Javascript

Jul 12, 2006

I'm having a file that needs to be included in several sites. And I can't say for sure that all of them can use php

I have a html file, and I'm wondering if there is an easy way using javascript to load that html file and print it out on all the sites?

View 3 Replies View Related

SetTimeout For A Php Include.

Nov 16, 2006

I know sometimes javascript and php can be used together. Anyone know how to add a javascript set timeout to this? So that this php include will re-execute after so much time? Or is there a php refresh command I can add to this code itself, not the page.

View 4 Replies View Related

How To Use A Php Include On My Asp Page

Jan 26, 2007

I'm kinda stuck I would like to use a php include on my asp page.

View 5 Replies View Related

Were Can I Put A Javascript Include?

Sep 4, 2002

I've got this line of code:

<script language="JavaScript" src="/_inc/styleswitcher.js" type="text/javascript"></script>

That I usually put into the <head> of my document.

Is it legal to put this file anyplace else?

View 1 Replies View Related

Include Javascript File

Jul 23, 2005

I am developing a series of web pages that use JS, and they are all
fairly similar except for some very small changes. What I am hoping to
do is create one page that accepts a parameter from location.search and
then uses that to include a JS file with the appropriate parts that are
different from the main page. I am aware that I could do this the other
way round (ie. several different pages that include a set of core
functions etc.), but that will not work for this project.

View 3 Replies View Related

How To Include Java In JS File

Jun 3, 2009

I have the following script in my jsp. I want to cut this script and include it in a .js file But it is not working with me.

Here is the script :
Code:
<script language="javascript">
function checkForUnaddeditems() {
var mainElement = document.forms.mainentry
var quatityValue = mainElement.<%=quantityelement%>.value
var productIDValue = mainElement.<%=productIDelement%>.value
var price = ""; .....

I copied the previous code into a check.js file and referred to it in the jsp by
Code:
<SCRIPT type="text/javascript" SRC="check.js"></SCRIPT>

View 2 Replies View Related

Include An Outside File Into Script?

Jun 16, 2010

I have this script and I want to take out the part below the / up to the buildMenu(); statement. I would dynamically create the menu list with php. Problem is I don't know javascript that well :(This is its own .js file not a script within the head section of the page.

[Code]...

View 10 Replies View Related

Enabling Different Targets With A JS Include

Jan 11, 2006

I have two pages that are both calling the same include file- essentially a form. They are identical. The problem is one is located in a pop up and one is on a full page. My Project Manager wants the pop up one to open in the same window- and the full one to open in a new window. As it does now.

The problem? She wants the logic to be pulled from the same page. Any clues whatsoever?

View 39 Replies View Related

Ajax :: PHP Can't Include / Query

Apr 21, 2010

Ok, I need to have a page where you hit an attack button and it displays your hitpoints after the battle, The problem is that I cannot get ajax to work with a php file if I query the database for the hitpoints.

here is the php [code]...

View 1 Replies View Related

If - Else Statement For .js File Include

Jan 14, 2009

I would like to include a .js file in my web page but ONLY if that .js file actually exists. Sounds strange, I know, but I really need to do it.

So instead of just doing a normal include like so:

I would like a script that goes:

View 6 Replies View Related

Remote Scripting & XML

Feb 13, 2007

I am remote scripting using javascript to an XML gateway, the XML file I get back changes state i.e. either the car registration number exists (and it includes certain fields in the XML) or it doesn't exist (and it doesn't include certain fields).

When my code tries to display the result I am getting the 'object required' error because I am trying to access an xml element which doesn't exist.

For example this line would break if the plate didnt exist but work perfectly if it did:

var fuel = response.getElementsByTagName('Fuel')[0].firstChild.data;

Is there anyway to stop it throwing an error if it doesn't exist and just set a regDoesntExist flag or something?

View 5 Replies View Related

Attempting Nested Javascript Include

Jul 23, 2005

I have been trying to include a js file from within another js file. I
can get this to work for firefox, but not i.e. What I have is a.html ...

<script language='JavaScript'
src='b.js'></script><script>Function();</script>
b.js ....
function Function() {
var s1 = "";
document.write("<sc" + s1+ "ript language='JavaScript'
src='c.js'></sc" +s1 + "ript>");
document.write("<sc" + s1+ "ript language='JavaScript'>Func2();</sc" +

s1 + "ript>");
}
and then c.js
I tried the s1="" from another googled post - no joy.
if I change a.html to
<script language='JavaScript' src='cb.js'></script>
<script language='JavaScript'
src='b.js'></script><script>Function();</script>
it works.

Is anyone able to get this to work with IE 6?

View 3 Replies View Related

Reference Active Page From Include

Jan 18, 2006

I have written a function that adds up numeric values from a multiple
textfields on a page and writes the sum to the total textfield. I would like
to move this from the page to an include so I can re-use on multiple pages.
How do i reference the active page in my script. This is an excerpt from the
function...

<script type="text/javascript">
function calctot(section)
{
if (section == "A")
{
/* Section A1 */
A = (document.frmSRData.A_BCI_RI_Public_Prod.value * 1) +
(document.frmSRData.A_BCI_RI_Public_Perf.value * 1);
document.frmSRData.A_BCI_RI_Public_SubTot.value = A;

B = (document.frmSRData.A_BCI_RI_Private_Prod.value * 1) +
(document.frmSRData.A_BCI_RI_Private_Perf.value * 1);
document.frmSRData.A_BCI_RI_Private_SubTot.value = B;
....

Do i need to pass a parameter to the function for the active page?

View 1 Replies View Related

Javascript Editor To Include It In Eclipse

Aug 20, 2007

I am looking for a good - if not THE BEST - Javascript Editor
available, prefarably to include it in Eclipse.

I found Aptana, but it still seems to be buggy, it had problems with
special german characters.

The best would be an editor similar to the Eclipse Java editor - I
want to be able to click on a function or variable to see how and were
it was defined..

View 4 Replies View Related

Javascript To Include Field On Next Form

Sep 29, 2007

I've got a short form--1 field and a submit button. I want someone to
enter their name in that field, hit submit, and have their name be in
the "name" field on the next page (which contains a form). Am I even
in the right forum?

View 2 Replies View Related

JQuery :: Possible To Include In Index.html

Nov 17, 2011

I am just wondering if jQuery has to be included within every .html file (considering the page does not use any CMS). Is it possible to include jQuery in index.html only but have it accessible in any other page?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved