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.
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.
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
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?
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?
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:
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
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.
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.
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>
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.
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?
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.
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?
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.
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;
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..
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?
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?